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.
| 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 |
nothing calls this directly
no test coverage detected