| 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; |
nothing calls this directly
no outgoing calls
no test coverage detected