Array<byte> StringReader::convertData( ) const { auto string = this->getString( ); wxString output = string.utf8_str( ); // Convert string to byte array Array<byte> outputData( output.length( ) ); ::memcpy( outputData.GetPointer( ), output.utf8_str( ), output.length( ) ); return outputData; }
void UT_UTF8String::dump (void) const { #if DEBUG char line[120]; UT_sint32 i =0; const char * psz = utf8_str(); while(psz && *psz) { for(i=0; (i< 60) && (*psz != 0); i++) { line[i] = *psz; psz++; } line[i] = 0; UT_DEBUGMSG(("%s \n",line)); if(*psz == 0) { break; } } #endif }