#include <ut_string_class.h>
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_String & | operator= (const UT_String &rhs) |
UT_String & | operator= (const char *rhs) |
UT_String & | operator= (const std::basic_string< char > &rhs) |
UT_String & | operator+= (const UT_String &rhs) |
UT_String & | operator+= (const char *rhs) |
UT_String & | operator+= (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 |
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.
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(), s_KWord_1_Listener::_closeBlock(), GR_Win32USPGraphics::_constructorCommonCode(), XAP_Frame::_createAutoSaveTimer(), 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::_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(), AP_UnixDialog_PageSetup::_getWidget(), AP_UnixDialog_FormatTOC::_getWidget(), s_AbiWord_1_Listener::_handleMetaData(), IE_Imp_MsWord_97::_handleNotesText(), IE_Imp_MsWord_97::_handlePositionedImage(), ODi_StreamListener::_handleStateAction(), IE_Imp_MsWord_97::_handleStyleSheet(), IE_Imp_MsWord_97::_insertEndnote(), IE_Imp_MsWord_97::_insertFootnote(), IE_Imp_MsWord_97::_insertHeaderSection(), OpenWriter_ContentStream_Listener::_insertImage(), OpenWriter_ContentStream_Listener::_insureInSection(), _rtf_font_info::_is_same(), 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(), s_RTF_ListenerWriteDoc::_openFrame(), s_RTF_ListenerWriteDoc::_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(), FL_DocLayout::_prefsListener(), XAP_Frame::_removeAutoSaveFile(), 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::_writeSP(), IE_Imp_T602::_writeTP(), abiDialogSetTitle(), AbiGimp_invoke(), IE_Imp_GDA::addCell(), OO_StylesWriter::addFontDecls(), ODi_Abi_Data::addImageDataItem(), EV_Menu::addMenuItem(), ODi_Abi_Data::addObjectDataItem(), AP_Dialog_FormatFrame::applyChanges(), 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(), FV_View::cmdCharDelete(), AP_Convert::convertTo(), SpellChecker::couldNotLoadDictionary(), GR_Win32Image::createImageSegment(), 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_UnixDialog_FileOpenSaveAs::fileTypeChanged(), 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(), 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(), 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(), FV_FrameEdit::mouseRelease(), AP_TopRuler::mouseRelease(), AP_LeftRuler::mouseRelease(), OO_WriterImpl::OO_WriterImpl(), 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_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(), s_check_changedDetails(), s_LoadingCursorCallback(), AP_UnixDialog_FormatTOC::s_NumType_changed(), s_string_to_url(), s_TabLeader_changed(), s_Text_changed(), AP_Win32Dialog_FormatTOC_Layout::saveCtrlsValuesForDetailsLevel(), XAP_Toolbar_Factory::saveToolbarsInCurrentScheme(), sDoHelp(), AP_Dialog_FormatTable::setBackgroundColor(), FV_View::setBlockIndents(), FV_View::setCellFormat(), AP_Dialog_FormatTable::setCurCellProps(), XAP_App::setDefaultGraphicsId(), XAP_Dialog_FontChooser::setFontDecoration(), XAP_Draw_Symbol::setFontToGC(), AP_Win32Dialog_Insert_DateTime::SetFormatsList(), GR_Image::setName(), SDWCryptor::SetPassword(), 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_KWord_1::startElement(), TFTEST_MAIN(), AP_Win32Dialog_MetaData_Permissions::transferData(), AP_Win32Dialog_MetaData_Summary::transferData(), AP_Win32Dialog_MetaData_General::transferData(), GOComponentView::update(), 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(), writeString(), 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(), AP_Dialog_Options::_gatherUILanguage(), IE_Exp_RTF::_generate_level_Text(), IE_Exp_RTF::_get_LeftRight_Side(), IE_Imp_MsWord_97::_handleStyleSheet(), PP_RevisionAttr::_refreshString(), PP_Revision::_refreshString(), AP_Dialog_FormatTable::askForGraphicPathName(), ODi_ListenerStateAction::bringUpPostponedElements(), TOCEntry::calculateLabel(), AP_Dialog_FormatTable::clearImage(), IE_Imp_KWord_1::endElement(), ODi_ListenerStateAction::ignoreElement(), AP_TopRuler::mouseRelease(), ODi_ListenerStateAction::popState(), ODi_ListenerStateAction::postponeElementParsing(), ODi_ListenerStateAction::pushState(), ODi_ListenerStateAction::repeatElement(), ODi_ListenerStateAction::reset(), s_AskForScriptName(), AP_Dialog_FormatTable::setCurCellProps(), XAP_Dialog_FontChooser::setFontDecoration(), IE_Imp_KWord_1::startElement(), TFTEST_MAIN(), and UT_String_removeProperty().
bool UT_String::empty | ( | ) | const |
References UT_StringImpl< char_type >::empty(), and pimpl.
Referenced by XAP_Win32Dialog_FileOpenSaveAs::_buildFilterList(), XAP_Frame::_createAutoSaveTimer(), _ev_GetLabelName(), ODi_StreamListener::_handleStateAction(), IE_Imp_MsWord_97::_insertFootnote(), PP_RevisionAttr::_refreshString(), AP_TopRuler::_setTabStops(), ODi_Abi_Data::addObjectDataItem(), AP_Convert::convertTo(), Defun1(), TFTEST_MAIN(), and XAP_Frame::~XAP_Frame().
size_t UT_String::length | ( | ) | const [inline] |
References size.
Referenced by ODi_Frame_ListenerState::_drawObject(), ODi_Abi_Data::_splitDirectoryAndFileName(), AP_Dialog_Options::_storeWindowData(), IE_Exp_WordPerfect::_writeDocument(), IE_Exp_WordPerfect::_writeHeader(), ODi_Abi_Data::addObjectDataItem(), XAP_UnixDialog_FileOpenSaveAs::fileTypeChanged(), XAP_Win32AppImpl::openURL(), TFTEST_MAIN(), UT_validXML(), and writeString().
References UT_StringImpl< char_type >::append(), and pimpl.
UT_String & UT_String::operator+= | ( | const char * | rhs | ) |
References UT_StringImpl< char_type >::append(), pimpl, and UT_return_val_if_fail.
UT_String & UT_String::operator+= | ( | char | rhs | ) |
References UT_StringImpl< char_type >::append(), and pimpl.
UT_String & UT_String::operator= | ( | const char * | rhs | ) |
References UT_StringImpl< char_type >::assign(), UT_StringImpl< char_type >::clear(), and pimpl.
UT_String & UT_String::operator= | ( | const std::basic_string< char > & | rhs | ) |
References UT_StringImpl< char_type >::assign(), and pimpl.
char UT_String::operator[] | ( | size_t | iPos | ) | const |
References UT_StringImpl< char_type >::data(), pimpl, size(), and UT_ASSERT.
char & UT_String::operator[] | ( | size_t | iPos | ) |
References UT_StringImpl< char_type >::data(), pimpl, size(), and UT_ASSERT.
void UT_String::reserve | ( | size_t | n | ) |
References pimpl, and UT_StringImpl< char_type >::reserve().
Referenced by s_LaTeX_Listener::_outputData(), s_HRText_Listener::_outputData(), s_Applix_Listener::_outputData(), and UT_validXML().
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(), IE_Exp_HTML_Listener::_fillColWidthsVector(), IE_Imp_MsWord_97::_flush(), IE_Exp_RTF::_generate_level_Text(), IE_Imp_MsWord_97::_generateParaProps(), 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(), 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(), 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(), and IE_Exp::write().
UT_String UT_String::substr | ( | size_t | iStart, | |
size_t | nChars | |||
) | const |
References UT_StringImpl< char_type >::data(), pimpl, UT_StringImpl< char_type >::size(), and UT_String().
Referenced by ODi_Frame_ListenerState::_drawObject(), IE_Exp_RTF::_get_LeftRight_Side(), s_AbiWord_1_Listener::_handleMetaData(), ODi_Abi_Data::_splitDirectoryAndFileName(), ODi_Abi_Data::addObjectDataItem(), XAP_UnixDialog_FileOpenSaveAs::fileTypeChanged(), IE_Imp::fileTypeForSuffixes(), IE_Exp::fileTypeForSuffixes(), IE_ExpSniffer::getPreferredSuffix(), XAP_Win32AppImpl::openURL(), UT_String_addPropertyString(), UT_String_getPropVal(), and UT_String_removeProperty().
void UT_String::swap | ( | UT_String & | rhs | ) |
References pimpl.
Referenced by TFTEST_MAIN().
class UT_StringImpl< char >* UT_String::pimpl [private] |
Referenced by c_str(), clear(), empty(), operator+=(), operator=(), operator[](), reserve(), size(), substr(), swap(), and ~UT_String().