Namespace containing helper functions for formatting.
More...
|
template<typename... Args> |
std::string | ncformat (const std::locale &loc, std::string_view format, Args &&... args) |
| Helper to format using a non-const format string without needing to explicitly construct a format_args. More...
|
|
template<typename... Args> |
std::wstring | ncformat (const std::locale &loc, std::wstring_view format, Args &&... args) |
| Helper to format using a non-const format wide string without needing to explicitly construct a wformat_args. More...
|
|
Namespace containing helper functions for formatting.
◆ ncformat() [1/2]
template<typename... Args>
std::string ookii::format::ncformat |
( |
const std::locale & |
loc, |
|
|
std::string_view |
format, |
|
|
Args &&... |
args |
|
) |
| |
Helper to format using a non-const format string without needing to explicitly construct a format_args.
- Template Parameters
-
Args | The types of the format arguments. |
- Parameters
-
loc | The locale to use for formatting. |
format | The format string. |
args | The arguments |
- Returns
- The formatted string.
◆ ncformat() [2/2]
template<typename... Args>
std::wstring ookii::format::ncformat |
( |
const std::locale & |
loc, |
|
|
std::wstring_view |
format, |
|
|
Args &&... |
args |
|
) |
| |
Helper to format using a non-const format wide string without needing to explicitly construct a wformat_args.
- Template Parameters
-
Args | The types of the format arguments. |
- Parameters
-
loc | The locale to use for formatting. |
format | The format string. |
args | The arguments |
- Returns
- The formatted string.