static*/
| 363 | |
| 364 | #ifdef TIXML_USE_STL |
| 365 | /*static*/ bool TiXmlBase::StreamWhiteSpace( std::istream * in, TIXML_STRING * tag ) |
| 366 | { |
| 367 | for( ;; ) |
| 368 | { |
| 369 | if ( !in->good() ) return false; |
| 370 | |
| 371 | int c = in->peek(); |
| 372 | // At this scope, we can't get to a document. So fail silently. |
| 373 | if ( !IsWhiteSpace( c ) || c <= 0 ) |
| 374 | return true; |
| 375 | |
| 376 | *tag += (char) in->get(); |
| 377 | } |
| 378 | } |
| 379 | |
| 380 | /*static*/ bool TiXmlBase::StreamTo( std::istream * in, int character, TIXML_STRING * tag ) |
| 381 | { |