|
libxr
Embedded C++ framework for bare-metal, RTOS and Linux
|
单个 printf 转换在降为共享格式前的解析结果 / One parsed printf conversion before lowering into the shared format More...
#include <printf_frontend_spec.hpp>
Public Member Functions | |
| constexpr uint8_t | FlagsByte () const |
将前端解析出的标志位打包成共享的 FormatFlag 字节 / Pack the parsed frontend flags into the shared FormatFlag byte | |
| constexpr uint8_t | PrecisionByte () const |
返回共享精度字节;若未显式指定精度则为 0xFF / Return the shared precision byte, or 0xFF when precision is absent | |
Public Attributes | |
| size_t | arg_index |
| 当前字段消耗的源参数索引 / source argument index consumed by this field | |
| ValueKind | type |
| 转换项归一化后的语义类别 / semantic conversion category | |
| Length | length = Length::Default |
| 已解析的长度修饰符 / parsed length modifier | |
| bool | left_align = false |
| 已解析的 - 标志 / parsed - flag | |
| bool | force_sign = false |
| 已解析的 + 标志 / parsed + flag | |
| bool | space_sign = false |
| 已解析的空格正号标志 / parsed space-sign flag | |
| bool | alternate = false |
| 已解析的 # 标志 / parsed # flag | |
| bool | zero_pad = false |
| 已解析的 0 标志 / parsed 0 flag | |
| bool | upper_case = false |
| 隐含的大写输出标志 / implied uppercase output | |
| bool | positional |
| arg_index 是否来自 n$ 语法 / whether arg_index came from n$ syntax | |
| uint8_t | width = 0 |
| 已解析的字段宽度 / parsed field width | |
| bool | has_precision |
| 是否显式提供了精度 / whether precision was explicitly provided | |
| uint8_t | precision = 0 |
| 已解析的精度值 / parsed precision value | |
单个 printf 转换在降为共享格式前的解析结果 / One parsed printf conversion before lowering into the shared format
Definition at line 34 of file printf_frontend_spec.hpp.
|
inlinenodiscardconstexpr |
将前端解析出的标志位打包成共享的 FormatFlag 字节 / Pack the parsed frontend flags into the shared FormatFlag byte
FormatFlag 字节 / Returns the packed shared FormatFlag byte Definition at line 60 of file printf_frontend_spec.hpp.
|
inlinenodiscardconstexpr |
返回共享精度字节;若未显式指定精度则为 0xFF / Return the shared precision byte, or 0xFF when precision is absent
Definition at line 96 of file printf_frontend_spec.hpp.
| bool Conversion::alternate = false |
已解析的 # 标志 / parsed # flag
Definition at line 44 of file printf_frontend_spec.hpp.
| size_t Conversion::arg_index |
当前字段消耗的源参数索引 / source argument index consumed by this field
Definition at line 36 of file printf_frontend_spec.hpp.
| bool Conversion::force_sign = false |
已解析的 + 标志 / parsed + flag
Definition at line 42 of file printf_frontend_spec.hpp.
| bool Conversion::has_precision |
是否显式提供了精度 / whether precision was explicitly provided
Definition at line 50 of file printf_frontend_spec.hpp.
| bool Conversion::left_align = false |
已解析的 - 标志 / parsed - flag
Definition at line 41 of file printf_frontend_spec.hpp.
| Length Conversion::length = Length::Default |
已解析的长度修饰符 / parsed length modifier
Definition at line 40 of file printf_frontend_spec.hpp.
| bool Conversion::positional |
arg_index 是否来自 n$ 语法 / whether arg_index came from n$ syntax
Definition at line 47 of file printf_frontend_spec.hpp.
| uint8_t Conversion::precision = 0 |
已解析的精度值 / parsed precision value
Definition at line 52 of file printf_frontend_spec.hpp.
| bool Conversion::space_sign = false |
已解析的空格正号标志 / parsed space-sign flag
Definition at line 43 of file printf_frontend_spec.hpp.
| ValueKind Conversion::type |
转换项归一化后的语义类别 / semantic conversion category
Definition at line 38 of file printf_frontend_spec.hpp.
| bool Conversion::upper_case = false |
隐含的大写输出标志 / implied uppercase output
Definition at line 46 of file printf_frontend_spec.hpp.
| uint8_t Conversion::width = 0 |
已解析的字段宽度 / parsed field width
Definition at line 49 of file printf_frontend_spec.hpp.
| bool Conversion::zero_pad = false |
已解析的 0 标志 / parsed 0 flag
Definition at line 45 of file printf_frontend_spec.hpp.