Skip to main content

chronon::observe::FormatSegment

Pre-parsed segment of a format string. More...

#include <FormatRegistry.hpp>

Public Types

Name
enum class uint8_tType { Placeholder, Literal}

Public Attributes

Name
Typetype
uint16_tstart
Offset into format_string.
uint16_tlength
Literal length.
boolhex
Spec contains 'x'/'X' (pre-computed).
uint8_targ_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

EnumeratorValueDescription
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