chronon::observe::FormatSegment
Pre-parsed segment of a format string. More...
#include <FormatRegistry.hpp>
Public Types
| Name | |
|---|---|
| enum class uint8_t | Type { Placeholder, Literal} |
Public Attributes
| Name | |
|---|---|
| Type | type |
| uint16_t | start Offset into format_string. |
| uint16_t | length Literal length. |
| bool | hex Spec contains 'x'/'X' (pre-computed). |
| uint8_t | arg_index Placeholder argument index. |
Detailed Description
struct chronon::observe::FormatSegment;
Pre-parsed segment of a format string.
Format strings are parsed once into segments so reconstruction is O(segments) instead of re-scanning the format char-by-char per event.
Public Types Documentation
enum Type
| Enumerator | Value | Description |
|---|---|---|
| Placeholder | ||
| Literal |
Public Attributes Documentation
variable type
Type type;
variable start
uint16_t start;
Offset into format_string.
variable length
uint16_t length;
Literal length.
variable hex
bool hex;
Spec contains 'x'/'X' (pre-computed).
variable arg_index
uint8_t arg_index;
Placeholder argument index.
Updated on 2026-05-26 at 05:42:32 +0000