MCPcopy Create free account
hub / github.com/JayXon/Leanify / StringEqual

Method StringEqual

lib/tinyxml2/tinyxml2.h:583–597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

581 }
582
583 inline static bool StringEqual( const char* p, const char* q, int nChar=INT_MAX ) {
584 if ( p == q ) {
585 return true;
586 }
587 int n = 0;
588 while( *p && *q && *p == *q && n<nChar ) {
589 ++p;
590 ++q;
591 ++n;
592 }
593 if ( (n == nChar) || ( *p == 0 && *q == 0 ) ) {
594 return true;
595 }
596 return false;
597 }
598
599 inline static bool IsUTF8Continuation( const char p ) {
600 return ( p & 0x80 ) != 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected