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

Method StringEqual

sourcecommon/tinyxml2.h:545–559  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

543 }
544
545 inline static bool StringEqual( const char* p, const char* q, int nChar=INT_MAX ) {
546 int n = 0;
547 if ( p == q ) {
548 return true;
549 }
550 while( *p && *q && *p == *q && n<nChar ) {
551 ++p;
552 ++q;
553 ++n;
554 }
555 if ( (n == nChar) || ( *p == 0 && *q == 0 ) ) {
556 return true;
557 }
558 return false;
559 }
560
561 inline static bool IsUTF8Continuation( const char p ) {
562 return ( p & 0x80 ) != 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected