| 264 | } |
| 265 | |
| 266 | size_t string_first_not_of(const char* text, size_t start, size_t end, const char* delims) |
| 267 | { |
| 268 | for (auto index = start; index < end; index++) |
| 269 | { |
| 270 | bool found = false; |
| 271 | auto pDelim = delims; |
| 272 | while (*pDelim != 0) |
| 273 | { |
| 274 | if (text[index] == *pDelim++) |
| 275 | { |
| 276 | found = true; |
| 277 | break; |
| 278 | } |
| 279 | } |
| 280 | if (!found) |
| 281 | return index; |
| 282 | } |
| 283 | return std::string::npos; |
| 284 | } |
| 285 | |
| 286 | size_t string_first_of(const char* text, size_t start, size_t end, const char* delims) |
| 287 | { |