From 91bb3aaf06ada9ce2cbe29bcad5c1611fa962907 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 17 May 2019 15:42:00 -0700 Subject: [PATCH] fmtlib.net -> fmt.dev --- ChangeLog.rst | 22 +++++++++++----------- README.rst | 26 +++++++++++++------------- doc/_templates/layout.html | 2 +- support/rtd/index.rst | 2 +- support/rtd/theme/layout.html | 6 +++--- test/format | 22 +++++++++++----------- 6 files changed, 40 insertions(+), 40 deletions(-) diff --git a/ChangeLog.rst b/ChangeLog.rst index 423f3292..d43d0699 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -467,7 +467,7 @@ * Implemented ``constexpr`` parsing of format strings and `compile-time format string checks - `_. For + `_. For example .. code:: c++ @@ -528,7 +528,7 @@ throw format_error("invalid specifier"); * Added `iterator support - `_: + `_: .. code:: c++ @@ -539,7 +539,7 @@ fmt::format_to(std::back_inserter(out), "{}", 42); * Added the `format_to_n - `_ + `_ function that restricts the output to the specified number of characters (`#298 `_): @@ -550,7 +550,7 @@ // out == "1234" (without terminating '\0') * Added the `formatted_size - `_ + `_ function for computing the output size: .. code:: c++ @@ -560,7 +560,7 @@ auto size = fmt::formatted_size("{}", 12345); // size == 5 * Improved compile times by reducing dependencies on standard headers and - providing a lightweight `core API `_: + providing a lightweight `core API `_: .. code:: c++ @@ -572,7 +572,7 @@ `_. * Added the `make_format_args - `_ + `_ function for capturing formatting arguments: .. code:: c++ @@ -654,7 +654,7 @@ fmt::format("{} {two}", 1, fmt::arg("two", 2)); * Removed the write API in favor of the `format API - `_ with compile-time handling of + `_ with compile-time handling of format strings. * Disallowed formatting of multibyte strings into a wide character target @@ -1115,10 +1115,10 @@ Including ``format.h`` from the ``cppformat`` directory is deprecated but works via a proxy header which will be removed in the next major version. - The documentation is now available at http://fmtlib.net. + The documentation is now available at https://fmt.dev. * Added support for `strftime `_-like - `date and time formatting `_ + `date and time formatting `_ (`#283 `_): .. code:: c++ @@ -1150,7 +1150,7 @@ // s == "The date is 2012-12-9" * Added support for `custom argument formatters - `_ + `_ (`#235 `_). * Added support for locale-specific integer formatting with the ``n`` specifier @@ -1530,7 +1530,7 @@ Documentation * Added `Building the documentation - `_ + `_ section to the documentation. * Documentation build script is now compatible with Python 3 and newer pip versions. diff --git a/README.rst b/README.rst index c8229144..40ac8a44 100644 --- a/README.rst +++ b/README.rst @@ -14,23 +14,23 @@ **{fmt}** is an open-source formatting library for C++. It can be used as a safe and fast alternative to (s)printf and iostreams. -`Documentation `__ +`Documentation `__ Q&A: ask questions on `StackOverflow with the tag fmt `_. Features -------- -* Replacement-based `format API `_ with +* Replacement-based `format API `_ with positional arguments for localization. -* `Format string syntax `_ similar to the one +* `Format string syntax `_ similar to the one of `str.format `_ in Python. * Safe `printf implementation - `_ including + `_ including the POSIX extension for positional arguments. * Implementation of the ISO C++ standards proposal `P0645 - Text Formatting `__. + Text Formatting `__. * Support for user-defined types. * High performance: faster than common standard library implementations of `printf `_ and @@ -47,14 +47,14 @@ Features * Ease of use: small self-contained code base, no external dependencies, permissive BSD `license `_ -* `Portability `_ with +* `Portability `_ with consistent output across platforms and support for older compilers. * Clean warning-free codebase even on high warning levels (``-Wall -Wextra -pedantic``). * Support for wide strings. * Optional header-only configuration enabled with the ``FMT_HEADER_ONLY`` macro. -See the `documentation `_ for more details. +See the `documentation `_ for more details. Examples -------- @@ -107,7 +107,7 @@ Use {fmt} as a safe portable replacement for ``itoa`` // access the string with to_string(buf) or buf.data() Format objects of user-defined types via a simple `extension API -`_: +`_: .. code:: c++ @@ -132,8 +132,8 @@ Format objects of user-defined types via a simple `extension API // s == "The date is 2012-12-9" Create your own functions similar to `format -`_ and -`print `_ +`_ and +`print `_ which take arbitrary arguments (`godbolt `_): .. code:: c++ @@ -185,7 +185,7 @@ formatting (`dtoa-benchmark `_) and as fast as `double-conversion `_: .. image:: https://user-images.githubusercontent.com/576385/54883977-9fe8c000-4e28-11e9-8bde-272d122e7c52.jpg - :target: http://fmtlib.net/unknown_mac64_clang10.0.html + :target: https://fmt.dev/unknown_mac64_clang10.0.html Compile time and code bloat ~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -244,7 +244,7 @@ Running the tests Please refer to `Building the library`__ for the instructions on how to build the library and run the unit tests. -__ http://fmtlib.net/latest/usage.html#building-the-library +__ https://fmt.dev/latest/usage.html#building-the-library Benchmarks reside in a separate repository, `format-benchmarks `_, @@ -474,7 +474,7 @@ License `_. The `Format String Syntax -`_ +`_ section in the documentation is based on the one from Python `string module documentation `_ adapted for the current library. For this reason the documentation is diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html index 0ac2dec7..ed19bcd3 100644 --- a/doc/_templates/layout.html +++ b/doc/_templates/layout.html @@ -58,7 +58,7 @@ diff --git a/support/rtd/index.rst b/support/rtd/index.rst index 4a59e9be..7c88322f 100644 --- a/support/rtd/index.rst +++ b/support/rtd/index.rst @@ -1,2 +1,2 @@ If you are not redirected automatically, follow the -`link to the fmt documentation `_. +`link to the fmt documentation `_. diff --git a/support/rtd/theme/layout.html b/support/rtd/theme/layout.html index ee140868..29ebc55b 100644 --- a/support/rtd/theme/layout.html +++ b/support/rtd/theme/layout.html @@ -2,15 +2,15 @@ {% block extrahead %} - + Page Redirection {% endblock %} {% block document %} -If you are not redirected automatically, follow the link to the fmt documentation. +If you are not redirected automatically, follow the link to the fmt documentation. {% endblock %} {% block footer %} diff --git a/test/format b/test/format index 8c0bef75..f411c8c9 100644 --- a/test/format +++ b/test/format @@ -25,7 +25,7 @@ template using iter_difference_t = ptrdiff_t; } -// http://fmtlib.net/Text%20Formatting.html#format.syn +// https://fmt.dev/Text%20Formatting.html#format.syn namespace std { // [format.error], class format_error class format_error; @@ -105,7 +105,7 @@ namespace std { size_t formatted_size(wstring_view fmt, const Args&... args); } -// http://fmtlib.net/Text%20Formatting.html#format.error +// https://fmt.dev/Text%20Formatting.html#format.error namespace std { class format_error : public runtime_error { public: @@ -125,7 +125,7 @@ struct error_handler { } } -// http://fmtlib.net/Text%20Formatting.html#format.parse_context +// https://fmt.dev/Text%20Formatting.html#format.parse_context namespace std { template class basic_format_parse_context { @@ -199,7 +199,7 @@ constexpr void basic_format_parse_context::check_arg_id(size_t id) { } } -// http://fmtlib.net/Text%20Formatting.html#format.context +// https://fmt.dev/Text%20Formatting.html#format.context namespace std { template class basic_format_context { @@ -261,7 +261,7 @@ template struct formatter; } } -// http://fmtlib.net/Text%20Formatting.html#format.arg +// https://fmt.dev/Text%20Formatting.html#format.arg namespace std { template class basic_format_arg { @@ -422,14 +422,14 @@ void basic_format_arg::handle::format(basic_format_parse_context auto visit_format_arg(Visitor&& vis, basic_format_arg arg) { return visit(vis, get_value(arg)); } } -// http://fmtlib.net/Text%20Formatting.html#format.store +// https://fmt.dev/Text%20Formatting.html#format.store namespace std { template struct format_arg_store { // exposition only @@ -437,7 +437,7 @@ namespace std { }; } -// http://fmtlib.net/Text%20Formatting.html#format.basic_args +// https://fmt.dev/Text%20Formatting.html#format.basic_args namespace std { template class basic_format_args { @@ -471,13 +471,13 @@ basic_format_arg basic_format_args::get(size_t i) const noexce } namespace std { -// http://fmtlib.net/Text%20Formatting.html#format.make_args +// https://fmt.dev/Text%20Formatting.html#format.make_args template format_arg_store make_format_args(const Args&... args) { return {basic_format_arg(args)...}; } -// http://fmtlib.net/Text%20Formatting.html#format.make_wargs +// https://fmt.dev/Text%20Formatting.html#format.make_wargs template format_arg_store make_wformat_args(const Args&... args) { return make_format_args(args...); @@ -708,7 +708,7 @@ struct formatter { }; } // namespace detail -// http://fmtlib.net/Text%20Formatting.html#format.functions +// https://fmt.dev/Text%20Formatting.html#format.functions template string format(string_view fmt, const Args&... args) { return vformat(fmt, make_format_args(args...));