MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / SkipWhiteSpace

Method SkipWhiteSpace

sourcecommon/tinyxml2.h:519–524  ·  view source on GitHub ↗

Anything in the high order range of UTF-8 is assumed to not be whitespace. This isn't correct, but simple, and usually works.

Source from the content-addressed store, hash-verified

517 // Anything in the high order range of UTF-8 is assumed to not be whitespace. This isn't
518 // correct, but simple, and usually works.
519 static const char* SkipWhiteSpace( const char* p ) {
520 while( !IsUTF8Continuation(*p) && isspace( *reinterpret_cast<const unsigned char*>(p) ) ) {
521 ++p;
522 }
523 return p;
524 }
525 static char* SkipWhiteSpace( char* p ) {
526 return const_cast<char*>( SkipWhiteSpace( const_cast<const char*>(p) ) );
527 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected