|
libxr
1.0
Want to be the best embedded framework
|
printf 风格前端,输出内部格式表示 / Printf-style frontend that emits the internal format representation More...
#include <printf.hpp>
Data Structures | |
| struct | Compiled |
| class | Compiler |
| 单个 printf 源字符串的编译期前端,负责解析并降为共享格式语义 / Compile-time printf frontend that parses and lowers one source string More... | |
Public Types | |
| enum class | Length : uint8_t { Default , Char , Short , Long , LongLong , IntMax , Size , PtrDiff , LongDouble } |
| 归一化后的 printf 长度修饰符 / Supported printf length modifiers after normalization More... | |
| enum class | Error : uint8_t { None , NumberOverflow , FloatPrecisionLimitExceeded , UnexpectedEnd , EmbeddedNul , MixedIndexing , PositionalArgumentDisabled , DynamicField , InvalidArgumentIndex , InvalidSpecifier , InvalidLength , ConflictingArgument , TextOffsetOverflow , TextSizeOverflow } |
| 通过 static_assert 暴露的编译期解析或构建失败类别 / Compile-time parse or build failure categories surfaced through static_assert More... | |
Static Public Member Functions | |
| template<Text Source> | |
| static consteval Compiled< Source > | Build () |
| 在编译期解析并校验 printf 格式串 / Parse and validate a printf format at compile time | |
| template<Text Source, typename... Args> | |
| static consteval bool | Matches () |
判断 Args... 是否与启用的转换项精确匹配 / Return whether Args... exactly match the enabled conversions | |
printf 风格前端,输出内部格式表示 / Printf-style frontend that emits the internal format representation
Definition at line 57 of file printf.hpp.
|
strong |
通过 static_assert 暴露的编译期解析或构建失败类别 / Compile-time parse or build failure categories surfaced through static_assert
Definition at line 81 of file printf.hpp.
|
strong |
归一化后的 printf 长度修饰符 / Supported printf length modifiers after normalization
Definition at line 64 of file printf.hpp.
|
inlinestaticnodiscardconsteval |
在编译期解析并校验 printf 格式串 / Parse and validate a printf format at compile time
| Source | printf 风格格式串字面量 / Printf-style format literal |
Definition at line 123 of file printf.hpp.
|
inlinestaticnodiscardconsteval |
判断 Args... 是否与启用的转换项精确匹配 / Return whether Args... exactly match the enabled conversions
| Source | printf 风格格式串字面量 / Printf-style format literal |
| Args | 待检查的 C++ 实参类型列表 / C++ argument types to test |
true,否则返回 false / Returns true when the enabled conversions match Args... exactly, otherwise false Definition at line 137 of file printf.hpp.