| 397 | |
| 398 | |
| 399 | const char* XMLUtil::ReadBOM( const char* p, bool* bom ) |
| 400 | { |
| 401 | TIXMLASSERT( p ); |
| 402 | TIXMLASSERT( bom ); |
| 403 | *bom = false; |
| 404 | const unsigned char* pu = reinterpret_cast<const unsigned char*>(p); |
| 405 | // Check for BOM: |
| 406 | if ( *(pu+0) == TIXML_UTF_LEAD_0 |
| 407 | && *(pu+1) == TIXML_UTF_LEAD_1 |
| 408 | && *(pu+2) == TIXML_UTF_LEAD_2 ) { |
| 409 | *bom = true; |
| 410 | p += 3; |
| 411 | } |
| 412 | TIXMLASSERT( p ); |
| 413 | return p; |
| 414 | } |
| 415 | |
| 416 | |
| 417 | void XMLUtil::ConvertUTF32ToUTF8( unsigned long input, char* output, int* length ) |
nothing calls this directly
no outgoing calls
no test coverage detected