| 448 | |
| 449 | struct JSONParser { |
| 450 | static bool isspace(const char c) |
| 451 | { |
| 452 | #ifdef CHAISCRIPT_MSVC |
| 453 | // MSVC warns on these line in some circumstances |
| 454 | #pragma warning(push) |
| 455 | #pragma warning(disable : 6330) |
| 456 | #endif |
| 457 | return ::isspace(c) != 0; |
| 458 | #ifdef CHAISCRIPT_MSVC |
| 459 | #pragma warning(pop) |
| 460 | #endif |
| 461 | |
| 462 | |
| 463 | } |
| 464 | |
| 465 | static void consume_ws( const std::string &str, size_t &offset ) { |
| 466 | while( isspace( str.at(offset) ) && offset <= str.size() ) { ++offset; } |
nothing calls this directly
no outgoing calls
no test coverage detected