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