Public Member Functions | Private Attributes

UT_String Class Reference

#include <ut_string_class.h>

List of all members.

Public Member Functions

 UT_String ()
 UT_String (const char *sz, size_t n=0)
 UT_String (const UT_String &rhs)
 UT_String (const std::basic_string< char > &s)
 ~UT_String ()
size_t size () const
size_t length () const
void reserve (size_t n)
bool empty () const
void clear () const
UT_String substr (size_t iStart, size_t nChars) const
UT_Stringoperator= (const UT_String &rhs)
UT_Stringoperator= (const char *rhs)
UT_Stringoperator= (const std::basic_string< char > &rhs)
UT_Stringoperator+= (const UT_String &rhs)
UT_Stringoperator+= (const char *rhs)
UT_Stringoperator+= (char rhs)
char operator[] (size_t iPos) const
char & operator[] (size_t iPos)
void swap (UT_String &rhs)
const char * c_str () const

Private Attributes

class UT_StringImpl< char > * pimpl

Constructor & Destructor Documentation

UT_String::UT_String (  ) 

Referenced by substr().

UT_String::UT_String ( const char *  sz,
size_t  n = 0 
)
UT_String::UT_String ( const UT_String rhs  ) 
UT_String::UT_String ( const std::basic_string< char > &  s  ) 
UT_String::~UT_String (  ) 

References pimpl.


Member Function Documentation

const char * UT_String::c_str (  )  const

References UT_StringImpl< char_type >::data(), pimpl, pszEmpty, and UT_StringImpl< char_type >::size().

Referenced by IE_Imp_WordPerfect::_appendSection(), IE_Imp_MsWord_97::_beginChar(), IE_Imp_MsWord_97::_beginPara(), IE_Imp_MsWord_97::_beginSect(), XAP_Win32Dialog_FileOpenSaveAs::_buildFilterList(), XAP_Win32DialogBase::_callHelp(), IE_Imp_MsWord_97::_cell_open(), FV_View::_changeCellAttach(), FV_View::_changeCellParams(), FV_View::_changeCellTo(), s_KWord_1_Listener::_closeBlock(), GR_Win32USPGraphics::_constructorCommonCode(), XAP_Frame::_createAutoSaveTimer(), IE_Imp_OPML::_createBullet(), pt_PieceTable::_deleteHdrFtrsFromSectionStruxIfPresent(), AP_TopRuler::_displayStatusMessage(), IE_Exp_Text::_doEncodingDialog(), ODi_Frame_ListenerState::_drawImage(), ODi_Frame_ListenerState::_drawInlineImage(), ODi_Frame_ListenerState::_drawObject(), _errorSAXFunc(), _ev_GetLabelName(), AP_Dialog_Tab::_event_Set(), AP_Dialog_Tab::_event_somethingChanged(), AP_Dialog_Tab::_event_Update(), s_RTF_ListenerWriteDoc::_export_AbiWord_Cell_props(), s_RTF_ListenerWriteDoc::_export_AbiWord_Table_props(), s_RTF_ListenerWriteDoc::_exportCellProps(), _fatalErrorSAXFunc(), IE_Exp_HTML_Listener::_fillColWidthsVector(), IE_Imp_MsWord_97::_flush(), IE_Exp_RTF::_generate_level_Text(), IE_Imp_MsWord_97::_generateCharProps(), IE_Exp_RTF::_get_LeftRight_Side(), _getPassword(), AP_Dialog_FormatTable::_getToggleButtonStatus(), AP_Dialog_FormatFrame::_getToggleButtonStatus(), AP_UnixDialog_PageSetup::_getWidget(), AP_UnixDialog_FormatTOC::_getWidget(), s_AbiWord_1_Listener::_handleAuthors(), IE_Imp_MsWord_97::_handleCommandField(), IE_Imp_MsWord_97::_handleImage(), s_AbiWord_1_Listener::_handleMetaData(), IE_Imp_MsWord_97::_handleNotes(), IE_Imp_MsWord_97::_handleNotesText(), IE_Imp_MsWord_97::_handlePositionedImage(), ODi_StreamListener::_handleStateAction(), IE_Imp_MsWord_97::_handleStyleSheet(), fl_DocSectionLayout::_HdrFtrChangeCallback(), FV_View::_insertCellAt(), IE_Imp_MsWord_97::_insertEndnote(), IE_Imp_MsWord_97::_insertFootnote(), IE_Imp_MsWord_97::_insertHeaderSection(), OpenWriter_ContentStream_Listener::_insertImage(), IE_Imp_Text::_insertSpan(), OpenWriter_ContentStream_Listener::_insureInSection(), _rtf_font_info::_is_same(), IE_Imp_StarOffice::_loadFile(), IE_Imp_PDF::_loadFile(), fl_TableLayout::_lookupMarginProperties(), fl_BlockLayout::_lookupMarginProperties(), fp_ImageRun::_lookupProperties(), fl_TableLayout::_lookupProperties(), fl_BlockLayout::_lookupProperties(), s_RTF_ListenerWriteDoc::_newRow(), AP_Win32Dialog_Styles::_onCommand(), AP_Win32Dialog_FormatTOC_General::_onCommand(), AP_Win32Dialog_Styles::_onInitDialog(), AP_Win32Dialog_New::_onInitDialog(), OpenWriter_ContentStream_Listener::_openCell(), s_RTF_ListenerWriteDoc::_openFrame(), s_RTF_ListenerWriteDoc::_openTag(), s_AbiWord_1_Listener::_openTag(), IE_Exp_RTF::_output_LevelText(), IE_Exp_RTF::_output_ListRTF(), IE_Exp_RTF::_output_revision(), s_LaTeX_Listener::_outputData(), s_HRText_Listener::_outputData(), s_Applix_Listener::_outputData(), XAP_Dictionary::_outputUTF8(), ODi_Style_Style::_parse_style_background_image(), ODi_Style_PageLayout::_parseBackgroundImage(), IE_Imp_Component::_parseStream(), AP_Dialog_Styles::_populateAbiPreview(), AP_UnixDialog_Styles::_populateModify(), AP_Dialog_Styles::_populatePreviews(), FL_DocLayout::_prefsListener(), XAP_Frame::_removeAutoSaveFile(), FV_View::_restoreCellParams(), AD_Document::_restoreVersion(), s_RTF_ListenerWriteDoc::_rtf_docfmt(), s_RTF_ListenerWriteDoc::_rtf_open_section(), IE_Imp_PDF::_runConversion(), AP_Win32Dialog_Options::_setAutoSaveFileExt(), AP_UnixDialog_Options::_setAutoSaveFileExt(), AP_CocoaDialog_Options::_setAutoSaveFileExt, AP_Win32Dialog_Options::_setAutoSaveFilePeriod(), AP_UnixDialog_Options::_setAutoSaveFilePeriod(), AP_CocoaDialog_Options::_setAutoSaveFilePeriod, AP_Win32Dialog_New::_setFileName(), AP_TopRuler::_setTabStops(), AP_Win32Dialog_Options::_setUILanguage(), fp_RDFAnchorRun::_setValue(), fp_AnnotationRun::_setValue(), AP_Dialog_Options::_storeDataForControl(), AP_Dialog_Options::_storeWindowData(), IE_Imp_MsWord_97::_table_close(), IE_Exp_WordPerfect::_UT_String_overwrite(), IE_Exp_S5::_write(), IE_Imp_T602::_write_fh(), IE_Exp_RTF::_write_parafmt(), IE_Exp_WordPerfect::_writeDocument(), s_RTF_ListenerWriteDoc::_writeEmbedData(), s_RTF_ListenerWriteDoc::_writeImageInRTF(), s_KWord_1_Listener::_writeMarginSize(), IE_Imp_T602::_writePP(), IE_Imp_T602::_writeSP(), IE_Imp_T602::_writeTP(), abiDialogNew(), abiDialogSetTitle(), AbiGimp_invoke(), IE_Imp_GDA::addCell(), OO_StylesWriter::addFontDecls(), ODi_Abi_Data::addImageDataItem(), EV_Menu::addMenuItem(), ODi_Abi_Data::addObjectDataItem(), fl_DocSectionLayout::addOwnedPage(), IE_Imp_XHTML::appendFmt(), PD_Document::appendSpan(), AP_Dialog_FormatFrame::applyChanges(), AP_Dialog_Styles::applyModifiedStyleToDoc(), AP_Dialog_FormatTable::askForGraphicPathName(), BabelFish_invoke(), XAP_Frame::backup(), TOCEntry::calculateLabel(), fp_FieldEndnoteRefRun::calculateValue(), fp_FieldEndnoteAnchorRun::calculateValue(), fp_FieldFootnoteAnchorRun::calculateValue(), fp_FieldFootnoteRefRun::calculateValue(), fp_FieldTOCNumRun::calculateValue(), changed_cb(), IE_MailMerge_XML_Listener::charData(), FV_View::cmdCharDelete(), FV_View::cmdDeleteCol(), FV_View::cmdDeleteRow(), FV_View::cmdInsertCol(), FV_View::cmdInsertPositionedGraphic(), FV_View::cmdInsertRow(), FV_View::cmdInsertTable(), FV_View::cmdSplitCells(), FV_View::cmdTextToTable(), FV_View::convertPositionedToInLine(), AP_Convert::convertTo(), SpellChecker::couldNotLoadDictionary(), GR_Win32Image::createImageSegment(), AP_Dialog_Styles::createNewStyle(), fl_AutoNum::dec2roman(), Defun(), Defun0(), Defun1(), fl_BlockLayout::doclistener_insertBlock(), AP_Win32App::doWindowlessArgs(), Presentation::end(), IE_Imp_KWord_1::endElement(), ev_EditMethod_exists(), ev_EditMethod_invoke(), ev_EditMethod_lookup(), AP_UnixDialog_FormatTOC::event_Apply(), AP_UnixDialog_FormatTOC::event_HasHeadingChanged(), AP_UnixDialog_FormatTOC::event_HasLabelChanged(), XAP_Win32Dialog_PluginManager::event_Load(), XAP_UnixDialog_PluginManager::event_Load(), XAP_UnixDialog_FileOpenSaveAs::fileTypeChanged(), IE_MailMerge::fileTypeForSuffixes(), IE_Imp::fileTypeForSuffixes(), IE_Exp::fileTypeForSuffixes(), UT_GenericStringMap< T >::find_slot(), GR_Win32Graphics::fixDevMode(), OO_PageStyle::getAbiSectionProps(), OO_Style::getAbiStyle(), PP_Revision::getAttrsString(), XAP_Dialog_Language::getAvailableDictionaries(), FV_View::getCellFormat(), AP_Win32Dialog_Styles::getCurrentStyle(), AD_Document::getEncodingName(), getExportFileType(), XAP_Dialog_History::getHeaderValue(), XAP_Dialog_Image::getHeightString(), AP_Dialog_Columns::getHeightString(), getImportFileType(), EV_Menu_LabelSet::getLabel(), EV_Menu_LabelSet::getLanguage(), XAP_Dialog_History::getListValue(), EV_Menu_Label::getMenuLabel(), EV_Menu_Label::getMenuStatusMessage(), EV_Menu_Layout::getName(), AP_Frame::getNewZoom(), XAP_PrefsScheme::getNthValue(), IE_ExpSniffer::getPreferredSuffix(), XAP_Prefs::getPrefsValue(), PP_Revision::getPropsString(), XAP_Dialog_DocComparison::getResultValue(), XAP_Draw_Symbol::getSelectedFont(), AP_Dialog_Columns::getSpaceAfterString(), XAP_Toolbar_Factory_vec::getToolbarName(), FV_View::getTopRulerInfo(), XAP_Dialog_Image::getWidthString(), PP_RevisionAttr::getXMLstring(), helpLocalizeAndOpenURL(), XAP_Dialog_Image::incrementHeight(), AP_Dialog_Columns::incrementMaxHeight(), AP_Dialog_Columns::incrementSpaceAfter(), XAP_Dialog_Image::incrementWidth(), _rtf_font_info::init(), XAP_Frame::initialize(), XAP_EncodingManager::initialize(), AP_Win32App::initialize(), AP_UnixApp::initialize(), IE_Imp_TableHelper::Inline(), FV_View::insertHeaderFooter(), UT_GenericStringMap< T >::list(), BarbarismChecker::load(), AP_UnixApp::loadAllPlugins(), AP_UnixApp::loadStringsFromDisk(), XAP_AppImpl::localizeHelpUrl(), XAP_Log::log(), AP_UnixApp::main(), AP_QtApp::main(), XAP_Frame::makeBackupName(), Markup(), AP_Dialog_Styles::ModifyFont(), AP_TopRuler::mousePress(), FV_VisualInlineImage::mouseRelease(), FV_FrameEdit::mouseRelease(), AP_TopRuler::mouseRelease(), AP_LeftRuler::mouseRelease(), OO_WriterImpl::OO_WriterImpl(), IE_Imp_WordPerfect::openEndnote(), IE_Imp_WordPerfect::openFootnote(), IE_Imp_WordPerfect::openListElement(), IE_Imp_WordPerfect::openParagraph(), IE_Imp_WordPerfect::openSpan(), IE_Imp_WordPerfect::openTable(), IE_Imp_WordPerfect::openTableCell(), XAP_Win32AppImpl::openURL(), operator<(), operator==(), UT_GenericStringMap< T >::pick(), OO_StylesContainer::pickBlockAtts(), PP_setDefaultFontFamily(), IE_Imp_MSWrite::read_pap(), IE_Imp_MSWrite::read_pic(), IE_Imp_MSWrite::read_sep(), IE_Imp_MSWrite::read_txt(), GR_PangoFont::reloadFont(), GR_RSVGVectorImage::renderToSurface(), SpellManager::requestDictionary(), XAP_Toolbar_Factory::restoreToolbarLayout(), XAP_Toolbar_Factory::restoreToolbarsFromCurrentScheme(), XAP_Win32Dialog_FileOpenSaveAs::runModal(), XAP_UnixDialog_MessageBox::runModal(), s_AbiWord_1_Listener::s_AbiWord_1_Listener(), s_append_font_size(), s_check_changedDetails(), s_doFontDlg(), s_doFormatImageDlg(), s_doInsertTableDlg(), s_LoadingCursorCallback(), s_makePath(), AP_UnixDialog_FormatTOC::s_NumType_changed(), s_props_append(), s_string_to_url(), s_TabLeader_changed(), s_Text_changed(), AP_Win32Dialog_FormatTOC_Layout::saveCtrlsValuesForDetailsLevel(), XAP_Toolbar_Factory::saveToolbarsInCurrentScheme(), sDoHelp(), AP_Dialog_FormatTable::setBackgroundColor(), AP_Dialog_FormatFrame::setBGColor(), FV_View::setBlockIndents(), AP_Dialog_FormatTable::setBorderColor(), AP_Dialog_Border_Shading::setBorderColor(), AP_Dialog_FormatFrame::setBorderColorBottom(), AP_Dialog_FormatFrame::setBorderColorLeft(), AP_Dialog_FormatFrame::setBorderColorRight(), AP_Dialog_FormatFrame::setBorderColorTop(), AP_Dialog_Border_Shading::setBorderThickness(), FV_View::setCellFormat(), AP_Dialog_Border_Shading::setCurBlockProps(), AP_Dialog_FormatTable::setCurCellProps(), AP_Dialog_FormatFrame::setCurFrameProps(), XAP_App::setDefaultGraphicsId(), XAP_Dialog_FontChooser::setFontDecoration(), XAP_Draw_Symbol::setFontToGC(), AP_Win32Dialog_Insert_DateTime::SetFormatsList(), GR_Image::setName(), SDWCryptor::SetPassword(), AP_Dialog_Border_Shading::setShadingColor(), AP_Win32Dialog_FormatTOC::setStyle(), AP_UnixDialog_FormatTOC::setStyle(), XAP_Frame::setZoomPercentage(), sFormatDouble(), GR_CairoGraphics::shape(), AP_Dialog_FormatTable::ShowErrorBox(), AD_Document::showHistory(), ODi_TextContent_ListenerState::startElement(), IE_Imp_XHTML::startElement(), IE_Imp_KWord_1::startElement(), IE_Imp_TableHelper::tdStart(), TFTEST_MAIN(), AP_Dialog_FormatTable::toggleLineType(), AP_Dialog_FormatFrame::toggleLineType(), AP_Dialog_Border_Shading::toggleLineType(), AP_Win32Dialog_MetaData_Permissions::transferData(), AP_Win32Dialog_MetaData_Summary::transferData(), AP_Win32Dialog_MetaData_General::transferData(), GOComponentView::update(), AP_Dialog_Styles::updateCurrentStyle(), AP_Dialog_FormatFootnotes::updateDocWithValues(), URLDict_invoke(), UT_String_addPropertyString(), UT_String_getPropVal(), UT_String_removeProperty(), UT_String_vprintf(), UT_untgz(), UT_UTF8String_sprintf(), UT_validXML(), UT_XML_Decode(), Wikipedia_invoke(), IE_Exp::write(), ie_imp_cell::writeCellPropsInDoc(), writeString(), ie_imp_table::writeTablePropsInDoc(), XAP_Log::XAP_Log(), XAP_Win32App::XAP_Win32App(), and s_HRText_Listener::~s_HRText_Listener().

void UT_String::clear ( void   )  const

References UT_StringImpl< char_type >::clear(), and pimpl.

Referenced by IE_Imp_MsWord_97::_beginChar(), IE_Imp_MsWord_97::_beginPara(), s_RTF_ListenerWriteDoc::_export_AbiWord_Cell_props(), s_RTF_ListenerWriteDoc::_export_AbiWord_Table_props(), AP_Dialog_Options::_gatherUILanguage(), IE_Exp_RTF::_generate_level_Text(), IE_Exp_RTF::_get_LeftRight_Side(), s_RTF_ListenerWriteDoc::_getPropString(), IE_Imp_MsWord_97::_handleStyleSheet(), fl_DocSectionLayout::_HdrFtrChangeCallback(), fl_DocSectionLayout::_lookupProperties(), AP_Dialog_Styles::_populateAbiPreview(), AP_Dialog_Styles::_populatePreviews(), PP_RevisionAttr::_refreshString(), PP_Revision::_refreshString(), AP_Dialog_Styles::applyModifiedStyleToDoc(), AP_Dialog_FormatTable::askForGraphicPathName(), ODi_ListenerStateAction::bringUpPostponedElements(), TOCEntry::calculateLabel(), AP_Dialog_FormatTable::clearImage(), AP_Dialog_Styles::createNewStyle(), IE_Imp_KWord_1::endElement(), fl_DocSectionLayout::fl_DocSectionLayout(), FV_View::getCellFormat(), ie_imp_cell::ie_imp_cell(), ie_imp_table::ie_imp_table(), ODi_ListenerStateAction::ignoreElement(), AP_Dialog_Styles::ModifyFont(), AP_TopRuler::mouseRelease(), ODi_ListenerStateAction::popState(), ODi_ListenerStateAction::postponeElementParsing(), ODi_ListenerStateAction::pushState(), ODi_ListenerStateAction::repeatElement(), ODi_ListenerStateAction::reset(), s_AskForScriptName(), s_doFontDlg(), AP_Dialog_FormatTable::setCurCellProps(), XAP_Dialog_FontChooser::setFontDecoration(), fl_DocSectionLayout::setPaperColor(), IE_Imp_KWord_1::startElement(), TFTEST_MAIN(), AP_Dialog_Styles::updateCurrentStyle(), UT_String_removeProperty(), and ie_imp_table::writeTablePropsInDoc().

bool UT_String::empty (  )  const
size_t UT_String::length (  )  const [inline]
UT_String & UT_String::operator+= ( const UT_String rhs  ) 
UT_String & UT_String::operator+= ( const char *  rhs  ) 
UT_String & UT_String::operator+= ( char  rhs  ) 
UT_String & UT_String::operator= ( const char *  rhs  ) 
UT_String & UT_String::operator= ( const std::basic_string< char > &  rhs  ) 
UT_String & UT_String::operator= ( const UT_String rhs  ) 

References pimpl.

char UT_String::operator[] ( size_t  iPos  )  const
char & UT_String::operator[] ( size_t  iPos  ) 
void UT_String::reserve ( size_t  n  ) 
size_t UT_String::size (  )  const

References pimpl, and UT_StringImpl< char_type >::size().

Referenced by IE_Imp_MsWord_97::_beginPara(), XAP_Win32DialogBase::_callHelp(), _catPath(), s_RTF_ListenerWriteDoc::_exportCellProps(), IE_Exp_HTML_Listener::_fillColWidthsVector(), s_RTF_ListenerWriteDoc::_fillTableProps(), IE_Imp_MsWord_97::_flush(), IE_Exp_RTF::_generate_level_Text(), IE_Imp_MsWord_97::_generateParaProps(), _getTranslationCode(), s_AbiWord_1_Listener::_handleMetaData(), IE_Imp_MsWord_97::_handleStyleSheet(), IE_Imp_MsWord_97::_insertHeaderSection(), _rtf_font_info::_is_same(), fl_TableLayout::_lookupProperties(), s_RTF_ListenerWriteDoc::_newRow(), s_RTF_ListenerWriteDoc::_openFrame(), s_RTF_ListenerWriteDoc::_openTag(), s_LaTeX_Listener::_outputData(), s_HRText_Listener::_outputData(), s_Applix_Listener::_outputData(), XAP_Dictionary::_outputUTF8(), AP_UnixDialog_Options::_setAutoSaveFileExt(), AP_Win32Dialog_Options::_setUILanguage(), IE_Exp_S5::_write(), s_RTF_ListenerWriteDoc::_writeEmbedData(), s_RTF_ListenerWriteDoc::_writeImageInRTF(), fl_DocSectionLayout::addOwnedPage(), AP_Dialog_FormatTable::askForGraphicPathName(), BabelFish_invoke(), XAP_Frame::backup(), fl_AutoNum::dec2roman(), Defun(), Defun1(), Presentation::end(), IE_Imp_KWord_1::endElement(), ev_EditMethod_invoke(), AP_Win32Dialog_Styles::getCurrentStyle(), AD_Document::getEncodingName(), IE_ExpSniffer::getPreferredSuffix(), EV_Menu::invokeMenuMethod(), AP_UnixApp::loadStringsFromDisk(), FV_VisualInlineImage::mouseRelease(), AP_TopRuler::mouseRelease(), XAP_Win32AppImpl::openURL(), operator==(), operator[](), OO_Style::parse(), OO_PageStyle::parse(), sAddHelpButton(), sDoHelp(), IE_Imp_KWord_1::startElement(), TFTEST_MAIN(), UT_String_addPropertyString(), UT_String_findCh(), UT_String_findRCh(), UT_String_removeProperty(), UT_String_setProperty(), UT_XML_Decode(), IE_Exp::write(), and ie_imp_table::writeTablePropsInDoc().

UT_String UT_String::substr ( size_t  iStart,
size_t  nChars 
) const
void UT_String::swap ( UT_String rhs  ) 

References pimpl.

Referenced by TFTEST_MAIN().


Member Data Documentation

class UT_StringImpl< char >* UT_String::pimpl [private]

The documentation for this class was generated from the following files: