| 261 | |
| 262 | |
| 263 | bool TiXmlBase::StringEqual( const TCHAR* p, |
| 264 | const TCHAR* tag, |
| 265 | bool ignoreCase ) |
| 266 | { |
| 267 | assert( p ); |
| 268 | if ( !p || !*p ) |
| 269 | { |
| 270 | assert( 0 ); |
| 271 | return false; |
| 272 | } |
| 273 | |
| 274 | if ( tolower( *p ) == tolower( *tag ) ) |
| 275 | { |
| 276 | const TCHAR* q = p; |
| 277 | |
| 278 | if (ignoreCase) |
| 279 | { |
| 280 | while ( *q && *tag && *q == *tag ) |
| 281 | { |
| 282 | ++q; |
| 283 | ++tag; |
| 284 | } |
| 285 | |
| 286 | if ( *tag == 0 ) // Have we found the end of the tag, and everything equal? |
| 287 | { |
| 288 | return true; |
| 289 | } |
| 290 | } |
| 291 | else |
| 292 | { |
| 293 | while ( *q && *tag && tolower( *q ) == tolower( *tag ) ) |
| 294 | { |
| 295 | ++q; |
| 296 | ++tag; |
| 297 | } |
| 298 | |
| 299 | if ( *tag == 0 ) |
| 300 | { |
| 301 | return true; |
| 302 | } |
| 303 | } |
| 304 | } |
| 305 | return false; |
| 306 | } |
| 307 | |
| 308 | const TCHAR* TiXmlBase::ReadText( const TCHAR* p, |
| 309 | TIXML_STRING * text, |
nothing calls this directly
no outgoing calls
no test coverage detected