|
NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
|
字符串格式化功能 更多...
#include "NeForce/core/string/to_string.hpp"#include "NeForce/core/system/locale.hpp"#include "NeForce/core/utility/tuple.hpp"类 | |
| struct | neforce::format_options |
| 格式选项 更多... | |
| struct | neforce::formatter< T, enable_if_t< is_floating_point_v< T > > > |
| 浮点数类型的格式化器特化 更多... | |
| struct | neforce::formatter< T, enable_if_t< is_standard_integral_v< T > &&is_signed_v< T > > > |
| 有符号整数类型的格式化器特化 更多... | |
| struct | neforce::formatter< T, enable_if_t< is_standard_integral_v< T > &&is_unsigned_v< T > > > |
| 无符号整数类型的格式化器特化 更多... | |
| struct | neforce::formatter< char > |
| 单个字符的格式化器特化 更多... | |
| struct | neforce::formatter< bool > |
| 布尔类型的格式化器特化 更多... | |
| struct | neforce::formatter< string > |
| 字符串类型的格式化器特化 更多... | |
| struct | neforce::formatter< string_view > |
| 字符串视图的格式化器特化 更多... | |
| struct | neforce::formatter< const char * > |
| C风格字符串的格式化器特化 更多... | |
| struct | neforce::formatter< nullptr_t > |
| nullptr_t 格式化器 更多... | |
| struct | neforce::formatter< T *, enable_if_t<!is_cstring_v< T * > > > |
| 指针格式化器 更多... | |
| struct | neforce::formatter< char * > |
| 非const C风格字符串的格式化器特化 更多... | |
枚举 | |
| enum class | neforce::format_align { format_align::DEFAULT , format_align::LEFT , format_align::RIGHT , format_align::CENTER , format_align::NUMERIC } |
| 对齐方式枚举 更多... | |
| enum class | neforce::format_type : uint8_t { format_type::DEFAULT , format_type::DECIMAL , format_type::BINARY , format_type::OCTAL , format_type::HEX , format_type::SCIENTIFIC , format_type::FIXED , format_type::GENERAL , format_type::CHAR } |
| 数值类型格式枚举 更多... | |
函数 | |
| template<typename... Args, enable_if_t<(sizeof...(Args) > 0), int > = 0> | |
| constexpr string | neforce::format (const string_view fmt, Args &&... args) |
| 格式化字符串 | |
| template<size_t N, typename... Args, enable_if_t<(sizeof...(Args) > 0), int > = 0> | |
| constexpr string | neforce::format (const char(&fmt)[N], Args &&... args) |
| 格式化字符串 | |
| constexpr string | neforce::format_named (const string_view fmt, const std::initializer_list< pair< const char *, string_view > > params) |
| 命名参数格式化 | |
| template<typename... Args, enable_if_t<(sizeof...(Args) > 0), int > = 0> | |
| string | neforce::format (const locale &loc, const string_view fmt, Args &&... args) |
| locale 感知的格式化 | |