LLUIString Class Reference

#include <lluistring.h>

Collaboration diagram for LLUIString:

Collaboration graph
List of all members.

Public Member Functions

 LLUIString ()
 LLUIString (const LLString &instring, const LLString::format_map_t &args)
 LLUIString (const LLString &instring)
void assign (const LLString &instring)
LLUIStringoperator= (const LLString &s)
void setArgList (const LLString::format_map_t &args)
void setArg (const LLString &key, const LLString &replacement)
const LLStringgetString () const
 operator LLString () const
const LLWStringgetWString () const
 operator LLWString () const
bool empty () const
S32 length () const
void clear ()
void clearArgs ()
void truncate (S32 maxchars)
void erase (S32 charidx, S32 len)
void insert (S32 charidx, const LLWString &wchars)
void replace (S32 charidx, llwchar wc)

Static Public Attributes

static const LLString::format_map_t sNullArgs

Private Member Functions

void format ()

Private Attributes

LLString mOrig
LLString mResult
LLWString mWResult
LLString::format_map_t mArgs

Detailed Description

Definition at line 67 of file lluistring.h.

Constructor & Destructor Documentation

LLUIString::LLUIString (  )  [inline]

Definition at line 72 of file lluistring.h.

LLUIString::LLUIString ( const LLString instring,
const LLString::format_map_t args 

Definition at line 41 of file lluistring.cpp.

References format().

LLUIString::LLUIString ( const LLString instring  )  [inline]

Definition at line 74 of file lluistring.h.

References assign().

Member Function Documentation

void LLUIString::assign ( const LLString instring  ) 

Definition at line 48 of file lluistring.cpp.

References format(), mOrig, and s.

Referenced by LLLineEditor::handleSpecialKey(), LLUIString(), operator=(), LLTextBox::setText(), and LLLineEditor::setText().

void LLUIString::clear (  ) 

Definition at line 93 of file lluistring.cpp.

References mOrig, mResult, and mWResult.

Referenced by LLPieMenuBranch::buildDrawLabel(), LLMenuItemBranchDownGL::buildDrawLabel(), LLMenuItemBranchGL::buildDrawLabel(), LLMenuItemToggleGL::buildDrawLabel(), LLMenuItemCheckGL::buildDrawLabel(), LLMenuItemGL::buildDrawLabel(), LLLineEditor::clear(), and LLMenuItemCheckGL::handleEvent().

void LLUIString::clearArgs (  ) 

Definition at line 101 of file lluistring.cpp.

References mArgs.

bool LLUIString::empty ( void   )  const [inline]

Definition at line 88 of file lluistring.h.

References mWResult.

Referenced by LLMenuItemGL::draw(), LLButton::draw(), and LLLineEditor::getXML().

void LLUIString::erase ( S32  charidx,
S32  len 

Definition at line 75 of file lluistring.cpp.

References mResult, mWResult, and wstring_to_utf8str().

Referenced by LLLineEditor::addChar(), LLLineEditor::deleteSelection(), and LLLineEditor::removeChar().

void LLUIString::format (  )  [private]

Definition at line 108 of file lluistring.cpp.

References LLStringBase< char >::format(), mArgs, mOrig, mResult, mWResult, and utf8str_to_wstring().

Referenced by assign(), LLUIString(), setArg(), and setArgList().

const LLString& LLUIString::getString (  )  const [inline]

Definition at line 82 of file lluistring.h.

References mResult.

Referenced by LLLineEditor::addChar(), LLIMMgr::addSystemMessage(), LLMenuItemGL::buildDrawLabel(), LLMenuItemBranchDownGL::draw(), LLMenuItemGL::draw(), LLLineEditor::draw(), LLScrollListText::drawToWidth(), LLMenuGL::getLabel(), LLMenuItemGL::getLabel(), LLTextBox::getText(), LLScrollListText::getText(), LLLineEditor::getText(), LLLineEditor::getXML(), LLLineEditor::handleKeyHere(), LLLineEditor::handleSpecialKey(), LLLineEditor::isDirty(), notify_cautioned_script_question(), LLLineEditor::onFocusLost(), LLFloaterAnimPreview::postBuild(), LLPanelLandGeneral::refresh(), LLLineEditor::resetDirty(), LLPanelGroupVoting::impl::setEnableVoteProposal(), LLLineEditor::setText(), and LLColumnHeader::showList().

const LLWString& LLUIString::getWString (  )  const [inline]

Definition at line 85 of file lluistring.h.

References mWResult.

Referenced by LLLineEditor::copy(), LLLineEditor::cut(), LLLineEditor::doDelete(), LLMenuItemBranchDownGL::draw(), LLMenuItemGL::draw(), LLLineEditor::draw(), LLTextBox::drawText(), LLScrollListText::drawToWidth(), LLLineEditor::findPixelNearestPos(), LLMenuItemBranchDownGL::getNominalWidth(), LLMenuItemGL::getNominalWidth(), LLTextBox::getTextPixelWidth(), LLLineEditor::getWText(), LLLineEditor::handleDoubleClick(), LLLineEditor::handleKeyHere(), LLLineEditor::handleUnicodeCharHere(), LLLineEditor::nextWordPos(), LLLineEditor::paste(), LLLineEditor::prevWordPos(), LLLineEditor::setCursor(), LLLineEditor::setCursorAtLocalPos(), and LLTextBox::setLineLengths().

void LLUIString::insert ( S32  charidx,
const LLWString wchars 

Definition at line 81 of file lluistring.cpp.

References mResult, mWResult, and wstring_to_utf8str().

Referenced by LLLineEditor::addChar(), and LLLineEditor::paste().

S32 LLUIString::length (  )  const [inline]

Definition at line 89 of file lluistring.h.

References mWResult.

Referenced by LLLineEditor::addChar(), LLLineEditor::canDoDelete(), LLLineEditor::doDelete(), LLLineEditor::draw(), LLScrollListText::drawToWidth(), LLLineEditor::getLength(), LLLineEditor::handleDoubleClick(), LLLineEditor::handleHover(), LLLineEditor::handleSelectionKey(), LLLineEditor::handleSpecialKey(), LLLineEditor::LLLineEditor(), LLLineEditor::paste(), LLLineEditor::selectAll(), LLLineEditor::setCursor(), LLLineEditor::setCursorAtLocalPos(), LLLineEditor::setCursorToEnd(), LLLineEditor::setSelection(), LLLineEditor::setText(), and LLLineEditor::updateHistory().

LLUIString::operator LLString (  )  const [inline]

Definition at line 83 of file lluistring.h.

References mResult.

LLUIString::operator LLWString (  )  const [inline]

Definition at line 86 of file lluistring.h.

References mWResult.

LLUIString& LLUIString::operator= ( const LLString s  )  [inline]

Definition at line 77 of file lluistring.h.

References assign(), and s.

void LLUIString::replace ( S32  charidx,
llwchar  wc 

Definition at line 87 of file lluistring.cpp.

References mResult, mWResult, and wstring_to_utf8str().

void LLUIString::setArg ( const LLString key,
const LLString replacement 

Definition at line 60 of file lluistring.cpp.

References format(), and mArgs.

Referenced by LLFloaterBump::add(), LLFloaterNewIM::addAgent(), LLFloaterIMPanel::addTypingIndicator(), LLCurrencyUIManager::buy(), LLFloaterIMPanel::init(), LLFloaterAbout::LLFloaterAbout(), LLIMMgr::noteOfflineUsers(), notify_cautioned_script_question(), LLScriptEdCore::onHelpComboCommit(), LLPanelDisplay::postBuild(), LLFloaterLandHoldings::postBuild(), LLFloaterAnimPreview::postBuild(), LLPanelPlace::processParcelInfoReply(), LLPanelLandGeneral::refresh(), LLPanelGroupVoting::impl::setEnableVoteProposal(), LLScriptEdCore::setHelpPage(), LLMenuItemGL::setLabelArg(), LLLineEditor::setLabelArg(), LLButton::setLabelArg(), LLTextBox::setTextArg(), LLLineEditor::setTextArg(), LLFloaterBuy::show(), LLFloaterJoystick::show(), and LLColumnHeader::showList().

void LLUIString::setArgList ( const LLString::format_map_t args  ) 

Definition at line 54 of file lluistring.cpp.

References format(), and mArgs.

Referenced by LLIMMgr::addSystemMessage().

void LLUIString::truncate ( S32  maxchars  ) 

Definition at line 66 of file lluistring.cpp.

References mResult, mWResult, LLStringBase< T >::truncate(), and wstring_to_utf8str().

Referenced by LLLineEditor::setText().

Member Data Documentation

LLString::format_map_t LLUIString::mArgs [private]

Definition at line 109 of file lluistring.h.

Referenced by clearArgs(), format(), setArg(), and setArgList().

LLString LLUIString::mOrig [private]

Definition at line 106 of file lluistring.h.

Referenced by assign(), clear(), and format().

LLString LLUIString::mResult [private]

Definition at line 107 of file lluistring.h.

Referenced by clear(), erase(), format(), getString(), insert(), operator LLString(), replace(), and truncate().

LLWString LLUIString::mWResult [private]

Definition at line 108 of file lluistring.h.

Referenced by clear(), empty(), erase(), format(), getWString(), insert(), length(), operator LLWString(), replace(), and truncate().

const LLString::format_map_t LLUIString::sNullArgs [static]

Definition at line 101 of file lluistring.h.

The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:55 2010 for Second Life Viewer by  doxygen 1.4.7