| 271 | // --------- XMLUtil ----------- // |
| 272 | |
| 273 | const char* XMLUtil::ReadBOM( const char* p, bool* bom ) { |
| 274 | TIXMLASSERT( p ); |
| 275 | TIXMLASSERT( bom ); |
| 276 | *bom = false; |
| 277 | const unsigned char* pu = reinterpret_cast<const unsigned char*>(p); |
| 278 | // Check for BOM: |
| 279 | if ( *(pu+0) == TIXML_UTF_LEAD_0 |
| 280 | && *(pu+1) == TIXML_UTF_LEAD_1 |
| 281 | && *(pu+2) == TIXML_UTF_LEAD_2 ) { |
| 282 | *bom = true; |
| 283 | p += 3; |
| 284 | } |
| 285 | TIXMLASSERT( p ); |
| 286 | return p; |
| 287 | } |
| 288 | |
| 289 | |
| 290 | void XMLUtil::ConvertUTF32ToUTF8( unsigned long input, char* output, int* length ) { |
nothing calls this directly
no outgoing calls
no test coverage detected