/*! * Conversion helper. */ char * AP_UnixDialog_Spell::_convertToMB (const UT_UCSChar *wword, UT_sint32 iLength) { UT_UCS4String ucs4(wword, iLength); return g_strdup(ucs4.utf8_str()); }
/*! * Conversion helper. */ UT_UCSChar * AP_UnixDialog_Spell::_convertFromMB (const char *word) { UT_UCS4Char * str = 0; UT_UCS4String ucs4(word); UT_UCS4_cloneString(&str, ucs4.ucs4_str()); return str; }
void IE_Imp_WordPerfect::insertText(const librevenge::RVNGString &text) { if (m_bHdrFtrOpenCount) return; // HACK if (text.len()) { UT_DEBUGMSG(("AbiWordPerfect: insertText\n")); UT_UCS4String ucs4(text.cstr()); X_CheckDocumentError(appendSpan(ucs4.ucs4_str(), ucs4.length())); } }