mrdocs::StringList

A list of strings that accepts several input forms.

Synopsis

struct StringList;

Description

A configuration option of this type can be written as a single scalar (generator: xml), a YAML sequence (generator: [xml, adoc]), or a comma‐separated scalar (generator: "xml,adoc"). All three forms normalize to the same list of strings.

The type models a range of std::string, so generic configuration code (normalization, DOM exposure) treats it like any other list of strings.

Member Functions

Name

Description

StringList [constructor]

Constructors

begin

begin overloads

empty

Return true if the list has no strings.

end

end overloads

size

Return the number of strings.

splitCommaSeparated

Expand comma‐separated entries in place.

Data Members

Name

Description

values

The individual strings, in order.

Created with MrDocs