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