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