parsercmd/src/configpar.cxx
// ===========================================================================
// Utility to help glue the SAX API to ASCII
//
Utility to help glue the SAX API to ASCII
Utility to help glue the SAX API to ASCII
string XMLsToString(const XMLCh *in) {
#ifdef ISO_CPP_HEADERS
    ostringstream result;
#else
    ostrstream result;
#endif
    if (in != NULL) {
        const XMLCh *p = in;
	while (*p != 0) {
	    result << (char)(*p);
	    p += 1;
	}
    }
#ifndef ISO_CPP_HEADERS
    result << ends;
#endif
    return result.str();
}
string XMLsToString ( const XMLCh * in ) { #ifdef ISO_CPP_HEADERS ostringstream result ; #else ostrstream result ; #endif if ( in != NULL ) { const XMLCh * p = in ; while ( * p != 0 ) { result << ( char ) ( * p ) ; p += 1 ; } } #ifndef ISO_CPP_HEADERS result << ends ; #endif return result . str ( ) ; }
Utility to help glue the SAX API to ASCII
Utility to help glue the SAX API to ASCII