libs/stream_message/src/minixml.cxx
// ===========================================================================
// Utility to help glue the SAX API to ASCII
// Replicate an XMLCh string as a char string in dynamic storage.
// Caller must eventually free the storage.
//
Utility to help glue the SAX API to ASCII
Replicate an XMLCh string as a char string in dynamic storage.
Caller must eventually free the storage.
Utility to help glue the SAX API to ASCII Replicate an XMLCh string as a char string in dynamic storage . Caller must eventually free the storage .
char *XMLsToChars(const XMLCh *str) {
    if (str == NULL) {
	return NULL;
    }
    int len = XMLs_len(str);
    char *result = new char[len + 1];
    if (result != NULL) {
	for (int i = 0; i <= len; i += 1) {
    	    result[i] = (char)str[i];
	}
    }
    return result;
}
char * XMLsToChars ( const XMLCh * str ) { if ( str == NULL ) { return NULL ; } int len = XMLs_len ( str ) ; char * result = new char [ len + 1 ] ; if ( result != NULL ) { for ( int i = 0 ; i <= len ; i += 1 ) { result [ i ] = ( char ) str [ i ] ; } } return result ; }
Utility to help glue the SAX API to ASCII
Replicate an XMLCh string as a char string in dynamic storage.
Utility to help glue the SAX API to ASCII Replicate an XMLCh string as a char string in dynamic storage .