cesium-native 0.52.0
Loading...
Searching...
No Matches
CesiumUtility::StringHelpers::SplitOptions Struct Reference

Options that control the behavior of splitOnCharacter. More...

#include <CesiumUtility/StringHelpers.h>

Public Attributes

bool trimWhitespace {true}
 If this option is specified, whitespace (spaces and tabs) will be trimmed from each part before it is added to the result.
 
bool omitEmptyParts {true}
 If this option is specified, empty parts will be omitted from the result.
 

Detailed Description

Options that control the behavior of splitOnCharacter.

Definition at line 32 of file StringHelpers.h.

Member Data Documentation

◆ omitEmptyParts

bool CesiumUtility::StringHelpers::SplitOptions::omitEmptyParts {true}

If this option is specified, empty parts will be omitted from the result.

For example, splitting the string ",a,,b," on ',' would yield the parts "a" and "b" if this option is specified, but it would yield "", "a", "", "b", and "" if this option is not specified.

Definition at line 47 of file StringHelpers.h.

◆ trimWhitespace

bool CesiumUtility::StringHelpers::SplitOptions::trimWhitespace {true}

If this option is specified, whitespace (spaces and tabs) will be trimmed from each part before it is added to the result.

Definition at line 37 of file StringHelpers.h.


The documentation for this struct was generated from the following file: