libs/stream_message/src/minisax.cxx
// ===========================================================================
// Parse a quoted string. Should be fixed eventually to correspond
// better to the attribute values in XML.
//
Parse a quoted string. Should be fixed eventually to correspond
better to the attribute values in XML.
Parse a quoted string . Should be fixed eventually to correspond better to the attribute values in XML .
bool ActualParser::getQuotedValue(string &val_out) {
    if (!matchChar('"')) {
	return false;
    }
#ifdef ISO_CPP_HEADERS
    ostringstream val;
#else
    ostrstream val;
#endif
    char ch;
    for (;;) {
	if (!matchChar(&is_any_char, ch)) {
	    error("bad quoted attribute value");
	    return false;
	}
	if (ch == '"') {
	    break;
	}
	val << ch;
    }
#ifndef ISO_CPP_HEADERS
    val << ends;
#endif
    val_out = val.str();
    return true;
}
bool ActualParser :: getQuotedValue ( string & val_out ) { if ( ! matchChar ( ' ' ) ) { return false ; } #ifdef ISO_CPP_HEADERS ostringstream val ; #else ostrstream val ; #endif char ch ; for ( ; ; ) { if ( ! matchChar ( & is_any_char , ch ) ) { error ( " " ) ; return false ; } if ( ch == ' ' ) { break ; } val << ch ; } #ifndef ISO_CPP_HEADERS val << ends ; #endif val_out = val . str ( ) ; return true ; }
Parse a quoted string.
Parse a quoted string .