ddn.data.cdm.format

CDM formatting metadata for roundtrip fidelity.

This module provides the CdmFormat struct which captures formatting details from source text to enable faithful roundtrip conversion.

struct CdmFormat

Types 1

structCdmFormat

Formatting metadata for roundtrip fidelity.

CdmFormat captures how a value was originally formatted in source text, enabling parsers to preserve the exact representation when writing back.

Examples

CdmFormat fmt;
fmt.quoteStyle = CdmFormat.QuoteStyle.DOUBLE;
fmt.indentation = "    ";
fmt.blankLinesBefore = 2;
Fields
QuoteStyle quoteStyle
NumberFormat numberFormat
KeyValueSep keyValueSep
SeparatorStyle separator
BracketStyle bracketStyle
string rawText
string indentation
ubyte blankLinesBefore
Nested Templates
QuoteStyleString quoting style.
NumberFormatNumber representation format.
KeyValueSepKey-value separator style.
SeparatorStyleElement separator style.
BracketStyleContainer bracket style.