MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / IsWhiteSpace

Function IsWhiteSpace

externals/tinyxml2/tinyxml2.h:568–570  ·  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

566 // Anything in the high order range of UTF-8 is assumed to not be whitespace. This isn't
567 // correct, but simple, and usually works.
568 static bool IsWhiteSpace( char p ) {
569 return !IsUTF8Continuation(p) && isspace( static_cast<unsigned char>(p) );
570 }
571
572 inline static bool IsNameStartChar( unsigned char ch ) {
573 if ( ch >= 128 ) {

Callers 2

tinyxml2.hFile · 0.85
CollapseWhitespaceMethod · 0.85

Calls 1

IsUTF8ContinuationFunction · 0.85

Tested by

no test coverage detected