MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / isspace

Method isspace

include/chaiscript/utility/json.hpp:450–463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

448
449struct 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; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected