|
libxr
1.0
Want to be the best embedded framework
|
brace 前端共享的参数分类与字段形状构造辅助函数 / Shared brace-frontend argument classification and field-shape helpers More...
Functions | |
| template<typename Arg > | |
| consteval ArgumentSummary | ClassifyArgument () |
| 将一个 C++ 参数类型归类到 brace 前端使用的本地参数类别 / Classify one C++ argument type into the brace frontend's local category | |
| template<typename... Args> | |
| consteval auto | ClassifyArguments () |
| 为 brace 前端归类整组 C++ 参数类型 / Classify one full C++ argument list for the brace frontend | |
| constexpr bool | HasSignOption (const ParsedField &field) |
| 判断某个已解析字段是否请求了显式符号策略 / Return whether one parsed field requested an explicit sign policy | |
| constexpr uint8_t | UnspecifiedPrecision () |
| 返回“未指定精度”的本地哨兵值 / Return the local sentinel meaning "precision not specified" | |
| constexpr uint8_t | BuildFlags (const ParsedField &parsed, bool upper_case) |
根据一个已解析 brace 字段构造共享 FormatFlag 位集合 / Build the shared FormatFlag bitset from one parsed brace field | |
| constexpr FormatField | MakeField (const ParsedField &parsed, FormatType type, FormatPackKind pack, bool upper_case=false) |
根据 brace 字段属性构造一条共享 FormatField 记录 / Build one shared FormatField record from parsed brace-field properties | |
| constexpr bool | IsDefaultOr (char presentation, char expected) |
| 判断展示字符是否缺省或等于目标字符 / Return whether the presentation is absent or matches the expected token | |
| constexpr bool | IsNonDecimalPresentation (char presentation) |
| 判断展示字符是否选择了非十进制整数族 / Return whether the presentation selects one non-decimal integer family | |
| constexpr char | DefaultFloatPresentation () |
| 在当前功能开关下选择前端默认浮点展示字符 / Choose the frontend default float presentation under current feature gates | |
| consteval ResolvedField | ResolveFloatField (const ParsedField &parsed, ArgumentKind kind) |
| 针对 float、double 或 long double 参数解析一个已解析的 brace 字段 / Resolve one parsed brace field for a float, double, or long double argument | |
| template<typename... Args> | |
| consteval ResolvedField | ResolveField (const ParsedField &parsed) |
| 先判断一个已解析 brace 字段指向哪类参数,再选择匹配的字段构造逻辑 / Check which argument family a parsed brace field points to, then choose the matching field builder | |
| consteval ResolvedField | ResolveIntegerField (const ParsedField &parsed, bool signed_decimal, bool uses_64bit_storage) |
| 针对整数类参数解析一个已解析的 brace 字段 / Resolve one parsed brace field for an integer-like argument | |
| consteval ResolvedField | ResolveBoolField (const ParsedField &parsed) |
| 针对 bool 参数解析一个已解析的 brace 字段 / Resolve one parsed brace field for a bool argument | |
| consteval ResolvedField | ResolveCharacterField (const ParsedField &parsed) |
| 针对字符参数解析一个已解析的 brace 字段 / Resolve one parsed brace field for a character argument | |
| consteval ResolvedField | ResolveStringField (const ParsedField &parsed) |
| 针对字符串类参数解析一个已解析的 brace 字段 / Resolve one parsed brace field for a string-like argument | |
| consteval ResolvedField | ResolvePointerField (const ParsedField &parsed) |
| 针对指针类参数解析一个已解析的 brace 字段 / Resolve one parsed brace field for a pointer-like argument | |
brace 前端共享的参数分类与字段形状构造辅助函数 / Shared brace-frontend argument classification and field-shape helpers
brace 前端里处理 bool、整数、字符、字符串与指针参数字段的辅助函数 / Brace-frontend helpers for fields that point to bool, integer, character, string, and pointer arguments
brace 前端里处理浮点参数字段的辅助函数 / Brace-frontend helpers for fields that point to float arguments
|
nodiscardconstexpr |
根据一个已解析 brace 字段构造共享 FormatFlag 位集合 / Build the shared FormatFlag bitset from one parsed brace field
| parsed | 已解析的 brace 字段 / Parsed brace field |
| upper_case | 最终展示是否使用大写字母 / Whether the final presentation should use uppercase letters |
FormatFlag 位集合 / Returns the shared FormatFlag bitset for this field Definition at line 105 of file format_frontend_binding_base.hpp.
|
nodiscardconsteval |
将一个 C++ 参数类型归类到 brace 前端使用的本地参数类别 / Classify one C++ argument type into the brace frontend's local category
| Arg | 待归类的 C++ 参数类型 / C++ argument type to classify |
Definition at line 15 of file format_frontend_binding_base.hpp.
|
nodiscardconsteval |
为 brace 前端归类整组 C++ 参数类型 / Classify one full C++ argument list for the brace frontend
| Args | 待归类的 C++ 实参类型列表 / C++ argument types to classify |
ArgumentSummary / Returns one ArgumentSummary per argument in source order Definition at line 75 of file format_frontend_binding_base.hpp.
|
nodiscardconstexpr |
在当前功能开关下选择前端默认浮点展示字符 / Choose the frontend default float presentation under current feature gates
Definition at line 187 of file format_frontend_binding_base.hpp.
|
nodiscardconstexpr |
判断某个已解析字段是否请求了显式符号策略 / Return whether one parsed field requested an explicit sign policy
| field | 待检查的已解析字段 / Parsed field to inspect |
+ 或空格符号策略则返回 true,否则返回 false / Returns true when + or space-sign was requested, otherwise false Definition at line 85 of file format_frontend_binding_base.hpp.
|
nodiscardconstexpr |
判断展示字符是否缺省或等于目标字符 / Return whether the presentation is absent or matches the expected token
| presentation | 已解析展示字符;缺省时为 0 / Parsed presentation token, or zero when absent |
| expected | 期望的展示字符 / Expected presentation token |
expected 则返回 true / Returns true when the presentation is absent or matches expected Definition at line 167 of file format_frontend_binding_base.hpp.
|
nodiscardconstexpr |
判断展示字符是否选择了非十进制整数族 / Return whether the presentation selects one non-decimal integer family
| presentation | 已解析展示字符 / Parsed presentation token |
true,否则返回 false / Returns true for binary, octal, or hex presentations, otherwise false Definition at line 177 of file format_frontend_binding_base.hpp.
|
nodiscardconstexpr |
根据 brace 字段属性构造一条共享 FormatField 记录 / Build one shared FormatField record from parsed brace-field properties
| parsed | 已解析的 brace 字段 / Parsed brace field |
| type | 共享运行期字段类型 / Shared runtime field type |
| pack | 运行期参数打包类型 / Runtime packed-argument kind |
| upper_case | 最终展示是否使用大写字母 / Whether the final presentation should use uppercase letters |
FormatField 记录 / Returns the shared FormatField record consumed by the compile-time backend Definition at line 147 of file format_frontend_binding_base.hpp.
|
nodiscardconsteval |
针对 bool 参数解析一个已解析的 brace 字段 / Resolve one parsed brace field for a bool argument
| parsed | 已解析的 brace 字段 / Parsed brace field |
Definition at line 127 of file format_frontend_binding_integer.hpp.
|
nodiscardconsteval |
针对字符参数解析一个已解析的 brace 字段 / Resolve one parsed brace field for a character argument
| parsed | 已解析的 brace 字段 / Parsed brace field |
Definition at line 141 of file format_frontend_binding_integer.hpp.
|
nodiscardconsteval |
先判断一个已解析 brace 字段指向哪类参数,再选择匹配的字段构造逻辑 / Check which argument family a parsed brace field points to, then choose the matching field builder
| Args | 已绑定的 C++ 实参类型列表 / Bound C++ argument types |
| parsed | 已解析的 brace 字段 / Parsed brace field |
Definition at line 103 of file format_frontend_binding_float.hpp.
|
nodiscardconsteval |
针对 float、double 或 long double 参数解析一个已解析的 brace 字段 / Resolve one parsed brace field for a float, double, or long double argument
| parsed | 已解析的 brace 字段 / Parsed brace field |
| kind | 当前字段选中的前端参数类别 / Frontend-side argument family selected for this field |
Definition at line 15 of file format_frontend_binding_float.hpp.
|
nodiscardconsteval |
针对整数类参数解析一个已解析的 brace 字段 / Resolve one parsed brace field for an integer-like argument
| parsed | 已解析的 brace 字段 / Parsed brace field |
| signed_decimal | 选中的参数是否按有符号十进制族处理 / Whether the selected argument should be treated as a signed decimal family |
| uses_64bit_storage | 选中的参数是否需要 64 位打包存储 / Whether the selected argument requires 64-bit packed storage |
Definition at line 16 of file format_frontend_binding_integer.hpp.
|
nodiscardconsteval |
针对指针类参数解析一个已解析的 brace 字段 / Resolve one parsed brace field for a pointer-like argument
| parsed | 已解析的 brace 字段 / Parsed brace field |
Definition at line 201 of file format_frontend_binding_integer.hpp.
|
nodiscardconsteval |
针对字符串类参数解析一个已解析的 brace 字段 / Resolve one parsed brace field for a string-like argument
| parsed | 已解析的 brace 字段 / Parsed brace field |
Definition at line 171 of file format_frontend_binding_integer.hpp.
|
nodiscardconstexpr |
返回“未指定精度”的本地哨兵值 / Return the local sentinel meaning "precision not specified"
Definition at line 94 of file format_frontend_binding_base.hpp.