---------------------- cast String to nested types ------------------------------ //
| 178 | |
| 179 | // ---------------------- cast String to nested types ------------------------------ // |
| 180 | static void skipWhitespace(const char*& input, const char* end) { |
| 181 | while (input < end) { |
| 182 | if (*input & 0x80) { |
| 183 | // We only skip ASCII white spaces there. |
| 184 | break; |
| 185 | } else { |
| 186 | DASSERT(*input >= -1); |
| 187 | if (!isspace(*input)) { |
| 188 | break; |
| 189 | } |
| 190 | } |
| 191 | input++; |
| 192 | } |
| 193 | } |
| 194 | |
| 195 | static void trimRightWhitespace(const char* input, const char*& end) { |
| 196 | while (input < end && isspace(*(end - 1))) { |
no outgoing calls
no test coverage detected