mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-28 06:36:02 +00:00
Update docs
This commit is contained in:
parent
d142579e97
commit
aa09e0f5dd
@ -535,7 +535,8 @@
|
|||||||
`#2321 <https://github.com/fmtlib/fmt/pull/2321>`_,
|
`#2321 <https://github.com/fmtlib/fmt/pull/2321>`_,
|
||||||
`#2323 <https://github.com/fmtlib/fmt/pull/2323>`_,
|
`#2323 <https://github.com/fmtlib/fmt/pull/2323>`_,
|
||||||
`#2328 <https://github.com/fmtlib/fmt/issues/2328>`_,
|
`#2328 <https://github.com/fmtlib/fmt/issues/2328>`_,
|
||||||
`#2329 <https://github.com/fmtlib/fmt/pull/2329>`_).
|
`#2329 <https://github.com/fmtlib/fmt/pull/2329>`_,
|
||||||
|
`#2333 <https://github.com/fmtlib/fmt/pull/2333>`_).
|
||||||
Thanks `@darklukee <https://github.com/darklukee>`_,
|
Thanks `@darklukee <https://github.com/darklukee>`_,
|
||||||
`@fagg (Ashton Fagg) <https://github.com/fagg>`_,
|
`@fagg (Ashton Fagg) <https://github.com/fagg>`_,
|
||||||
`@killerbot242 (Lieven de Cock) <https://github.com/killerbot242>`_,
|
`@killerbot242 (Lieven de Cock) <https://github.com/killerbot242>`_,
|
||||||
|
33
doc/api.rst
33
doc/api.rst
@ -305,18 +305,17 @@ Utilities
|
|||||||
|
|
||||||
.. doxygentypedef:: fmt::char_t
|
.. doxygentypedef:: fmt::char_t
|
||||||
|
|
||||||
.. doxygenfunction:: fmt::ptr(const T *p)
|
.. doxygenfunction:: fmt::ptr(T p)
|
||||||
.. doxygenfunction:: fmt::ptr(const std::unique_ptr<T> &p)
|
.. doxygenfunction:: fmt::ptr(const std::unique_ptr<T> &p)
|
||||||
.. doxygenfunction:: fmt::ptr(const std::shared_ptr<T> &p)
|
.. doxygenfunction:: fmt::ptr(const std::shared_ptr<T> &p)
|
||||||
.. doxygenfunction:: fmt::ptr(T (*fn)(Args...))
|
|
||||||
|
|
||||||
.. doxygenfunction:: fmt::to_string(const T &value)
|
.. doxygenfunction:: fmt::to_string(const T &value)
|
||||||
|
|
||||||
.. doxygenfunction:: fmt::to_string_view(const Char *s)
|
.. doxygenfunction:: fmt::to_string_view(const Char *s) -> basic_string_view<Char>
|
||||||
|
|
||||||
.. doxygenfunction:: fmt::join(Range &&range, string_view sep)
|
.. doxygenfunction:: fmt::join(Range &&range, string_view sep) -> join_view<detail::iterator_t<Range>, detail::sentinel_t<Range>>
|
||||||
|
|
||||||
.. doxygenfunction:: fmt::join(It begin, Sentinel end, string_view sep)
|
.. doxygenfunction:: fmt::join(It begin, Sentinel end, string_view sep) -> join_view<It, Sentinel>
|
||||||
|
|
||||||
.. doxygenclass:: fmt::detail::buffer
|
.. doxygenclass:: fmt::detail::buffer
|
||||||
:members:
|
:members:
|
||||||
@ -328,18 +327,14 @@ Utilities
|
|||||||
System Errors
|
System Errors
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
fmt does not use ``errno`` to communicate errors to the user, but it may call
|
{fmt} does not use ``errno`` to communicate errors to the user, but it may call
|
||||||
system functions which set ``errno``. Users should not make any assumptions about
|
system functions which set ``errno``. Users should not make any assumptions
|
||||||
the value of ``errno`` being preserved by library functions.
|
about the value of ``errno`` being preserved by library functions.
|
||||||
|
|
||||||
.. doxygenclass:: fmt::system_error
|
.. doxygenfunction:: fmt::system_error
|
||||||
:members:
|
|
||||||
|
|
||||||
.. doxygenfunction:: fmt::format_system_error
|
.. doxygenfunction:: fmt::format_system_error
|
||||||
|
|
||||||
.. doxygenclass:: fmt::windows_error
|
|
||||||
:members:
|
|
||||||
|
|
||||||
Custom Allocators
|
Custom Allocators
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
@ -473,6 +468,9 @@ System APIs
|
|||||||
.. doxygenclass:: fmt::ostream
|
.. doxygenclass:: fmt::ostream
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
|
.. doxygenfunction:: fmt::windows_error
|
||||||
|
:members:
|
||||||
|
|
||||||
.. _ostream-api:
|
.. _ostream-api:
|
||||||
|
|
||||||
``std::ostream`` Support
|
``std::ostream`` Support
|
||||||
@ -515,12 +513,12 @@ argument type doesn't match its format specification.
|
|||||||
|
|
||||||
.. doxygenfunction:: printf(const S &format_str, const Args&... args)
|
.. doxygenfunction:: printf(const S &format_str, const Args&... args)
|
||||||
|
|
||||||
.. doxygenfunction:: fprintf(std::FILE *f, const S &format, const Args&... args)
|
.. doxygenfunction:: fprintf(std::FILE *f, const S &format, const Args&... args) -> int
|
||||||
|
|
||||||
.. doxygenfunction:: fprintf(std::basic_ostream<Char> &os, const S &format_str, const Args&... args)
|
|
||||||
|
|
||||||
.. doxygenfunction:: sprintf(const S&, const Args&...)
|
.. doxygenfunction:: sprintf(const S&, const Args&...)
|
||||||
|
|
||||||
|
.. _xchar-api:
|
||||||
|
|
||||||
``wchar_t`` Support
|
``wchar_t`` Support
|
||||||
===================
|
===================
|
||||||
|
|
||||||
@ -546,5 +544,4 @@ differences:
|
|||||||
collisions with standard library implementations.
|
collisions with standard library implementations.
|
||||||
* Width calculation doesn't use grapheme clusterization. The latter has been
|
* Width calculation doesn't use grapheme clusterization. The latter has been
|
||||||
implemented in a separate branch but hasn't been integrated yet.
|
implemented in a separate branch but hasn't been integrated yet.
|
||||||
* Chrono formatting doesn't support C++20 date types since they are not provided
|
* Most C++20 chrono types are not supported yet.
|
||||||
by standard library implementations.
|
|
||||||
|
Loading…
Reference in New Issue
Block a user