|
HikoGUI
A low latency retained GUI
|
#include <ttauri/l10n.hpp>
Public Member Functions | |
| l10n_args (l10n_args &&) noexcept=default | |
| l10n_args (l10n_args const &) noexcept=default | |
| l10n_args & | operator= (l10n_args &&) noexcept=default |
| l10n_args & | operator= (l10n_args const &) noexcept=default |
| template<typename... Args> | |
| l10n_args (Args const &...args) noexcept | |
| Construct a l10n arguments. | |
| std::unique_ptr< l10n_args_base > | unique_copy () const noexcept |
| Make a unique copy of the arguments. | |
| virtual bool | equal_to (l10n_args_base const &rhs) const noexcept |
| std::string | format (std::string_view fmt) const noexcept override |
| Format text from the arguments and the given format string. | |
| std::string | format (std::locale const &loc, std::string_view fmt) const noexcept override |
| Format text from the arguments and the given format string. | |
| template<size_t I> | |
| long long | n_recurse () const noexcept |
| long long | n () const noexcept override |
| The numeric value of the first numeric argument. | |
Public Member Functions inherited from tt::detail::l10n_args_base | |
| bool friend | operator== (l10n_args_base const &lhs, l10n_args_base const &rhs) noexcept |
Delayed formatting.
This class will capture all the arguments so that it may be passed to another thread. Then call the function operator to do the actual formatting.
|
inlinenoexcept |
Construct a l10n arguments.
All arguments are passed by forwarding-references so that values can be moved into the storage of the l10n object.
Arguments passed by reference will be copied. Arguments passed by std::string_view or std::span will be copied into a std::string or std::vector.
Literal strings will not be copied, instead a pointer is taken.
| args | The parameters to std::format excluding format string and locale. |
|
inlinevirtualnoexcept |
Implements tt::detail::l10n_args_base.
|
inlineoverridevirtualnoexcept |
Format text from the arguments and the given format string.
@patam loc The locale to use when formatting.
| fmt | The format string. |
Implements tt::detail::l10n_args_base.
|
inlineoverridevirtualnoexcept |
Format text from the arguments and the given format string.
| fmt | The format string. |
Implements tt::detail::l10n_args_base.
|
inlineoverridevirtualnoexcept |
The numeric value of the first numeric argument.
Implements tt::detail::l10n_args_base.
|
inlinevirtualnoexcept |
Make a unique copy of the arguments.
Implements tt::detail::l10n_args_base.