|
libxr
1.0
Want to be the best embedded framework
|
Printf-style frontend that emits the internal format representation. More...
#include <printf.hpp>
Data Structures | |
| struct | Compiled |
| class | Compiler |
| 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 } |
| Supported printf length modifiers after normalization. More... | |
| enum class | Error : uint8_t { None , NumberOverflow , UnexpectedEnd , EmbeddedNul , MixedIndexing , PositionalArgumentDisabled , DynamicField , InvalidArgumentIndex , InvalidSpecifier , InvalidLength , ConflictingArgument , TextOffsetOverflow , TextSizeOverflow } |
| Compile-time parse/build failure categories surfaced through static_assert. More... | |
Static Public Member Functions | |
| template<Text Source> | |
| static consteval Compiled< Source > | Build () |
| Parses and validates a printf format at compile time. | |
| template<Text Source, typename... Args> | |
| static consteval bool | Matches () |
| Returns true when Args... exactly match the enabled conversions. | |
Printf-style frontend that emits the internal format representation.
printf 风格前端,输出内部格式表示。
Definition at line 43 of file printf.hpp.
|
strong |
Compile-time parse/build failure categories surfaced through static_assert.
通过 static_assert 暴露的编译期解析/构建失败类别。
Definition at line 67 of file printf.hpp.
|
strong |
Supported printf length modifiers after normalization.
归一化后的 printf 长度修饰符。
Definition at line 50 of file printf.hpp.
|
inlinestaticnodiscardconsteval |
Parses and validates a printf format at compile time.
在编译期解析并校验 printf 格式串。
Definition at line 95 of file printf.hpp.
|
inlinestaticnodiscardconsteval |
Returns true when Args... exactly match the enabled conversions.
当 Args... 与启用的转换项精确匹配时返回 true。
Definition at line 105 of file printf.hpp.