libs/stream_message/src/minisax.cxx
// ===========================================================================
// Parse an alphabetic name. Should be fixed eventually to correspond
// better to the valid tag names in XML.
//
Parse an alphabetic name. Should be fixed eventually to correspond
better to the valid tag names in XML.
Parse an alphabetic name . Should be fixed eventually to correspond better to the valid tag names in XML .
bool ActualParser::getName(string &name) {
    char ch;
    if (!matchChar(&is_name_char, ch)) {
	return false;
    }
#ifdef ISO_CPP_HEADERS
    ostringstream nm;
#else
    ostrstream nm;
#endif
    nm << ch;
    for (;;) {
	if (!matchChar(&is_name_char, ch)) {
	    break;
	}
	nm << ch;
    }
#ifndef ISO_CPP_HEADERS
    nm << ends;
#endif
    name = nm.str();
    return true;
}
bool ActualParser :: getName ( string & name ) { char ch ; if ( ! matchChar ( & is_name_char , ch ) ) { return false ; } #ifdef ISO_CPP_HEADERS ostringstream nm ; #else ostrstream nm ; #endif nm << ch ; for ( ; ; ) { if ( ! matchChar ( & is_name_char , ch ) ) { break ; } nm << ch ; } #ifndef ISO_CPP_HEADERS nm << ends ; #endif name = nm . str ( ) ; return true ; }
Parse an alphabetic name.
Parse an alphabetic name .