libs/stream_message/src/minisax.cxx
// ===========================================================================
// Parse a character that meets a test.
Parse a character that meets a test.
Parse a character that meets a test .
bool ActualParser::matchChar(bool (*test)(char), char &matched) {
    char inch;
    input->get(inch);
    if (input->eof()) {
	return false;
    }
    bool success = test(inch);
    if (!success) {
	input->putback(inch);
    }
    else {
	matched = inch;
	accountChar(inch);
    }
    return success;
}
bool ActualParser :: matchChar ( bool ( * test ) ( char ) , char & matched ) { char inch ; input -> get ( inch ) ; if ( input -> eof ( ) ) { return false ; } bool success = test ( inch ) ; if ( ! success ) { input -> putback ( inch ) ; } else { matched = inch ; accountChar ( inch ) ; } return success ; }
Parse a character that meets a test.
Parse a character that meets a test .