MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / GetAdvancedTextTokens

Function GetAdvancedTextTokens

GTE/Mathematics/StringUtility.h:122–138  ·  view source on GitHub ↗

For advanced text extraction, choose 'whiteSpace' to be ASCII values 0x00-0x20,0x7F in GetTokens(...). Any special characters for ASCII values 0x80 or larger are retained as text.

Source from the content-addressed store, hash-verified

120 // 0x00-0x20,0x7F in GetTokens(...). Any special characters for ASCII
121 // values 0x80 or larger are retained as text.
122 inline void GetAdvancedTextTokens(std::string const& input,
123 std::vector<std::string>& tokens)
124 {
125 static std::string const whiteSpace = []
126 {
127 std::string temp;
128 for (int32_t i = 0; i <= 32; ++i)
129 {
130 temp += static_cast<char>(i);
131 }
132 temp += static_cast<char>(127);
133 return temp;
134 }
135 ();
136
137 GetTokens(input, whiteSpace, tokens);
138 }
139}
140
141

Callers

nothing calls this directly

Calls 1

GetTokensFunction · 0.85

Tested by

no test coverage detected