MCPcopy Create free account
hub / github.com/NanoMichael/MicroTeX / StringEqual

Method StringEqual

src/xml/tinyxml2.h:575–589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

573 }
574
575 inline static bool StringEqual( const char* p, const char* q, int nChar=INT_MAX ) {
576 if ( p == q ) {
577 return true;
578 }
579 int n = 0;
580 while( *p && *q && *p == *q && n<nChar ) {
581 ++p;
582 ++q;
583 ++n;
584 }
585 if ( (n == nChar) || ( *p == 0 && *q == 0 ) ) {
586 return true;
587 }
588 return false;
589 }
590
591 inline static bool IsUTF8Continuation( const char p ) {
592 return ( p & 0x80 ) != 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected