LLUIString Class Reference

#include <lluistring.h>

Collaboration diagram for LLUIString:

Collaboration graph
[legend]

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 61 of file lluistring.h.


Constructor & Destructor Documentation

LLUIString::LLUIString (  )  [inline]

Definition at line 66 of file lluistring.h.

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

Definition at line 38 of file lluistring.cpp.

References format().

Here is the call graph for this function:

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

Definition at line 68 of file lluistring.h.

References assign().

Here is the call graph for this function:


Member Function Documentation

void LLUIString::assign ( const LLString instring  ) 

Definition at line 45 of file lluistring.cpp.

References format(), and mOrig.

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 71 of file lluistring.h.

References assign().

Here is the call graph for this function:

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

Definition at line 51 of file lluistring.cpp.

References format(), and mArgs.

Referenced by LLIMMgr::addSystemMessage(), LLPanel::getString(), and LLView::setToolTipArgs().

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

LLUIString::operator LLString (  )  const [inline]

Definition at line 77 of file lluistring.h.

References mResult.

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

LLUIString::operator LLWString (  )  const [inline]

Definition at line 80 of file lluistring.h.

References mWResult.

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

Definition at line 82 of file lluistring.h.

References mWResult.

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

Here is the caller graph for this function:

S32 LLUIString::length ( void   )  const [inline]

void LLUIString::clear ( void   ) 

void LLUIString::clearArgs (  )  [inline]

Definition at line 86 of file lluistring.h.

References mArgs.

void LLUIString::truncate ( S32  maxchars  ) 

Definition at line 63 of file lluistring.cpp.

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

Here is the call graph for this function:

void LLUIString::erase ( S32  charidx,
S32  len 
)

Definition at line 72 of file lluistring.cpp.

References mResult, mWResult, and wstring_to_utf8str().

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 78 of file lluistring.cpp.

References mResult, mWResult, and wstring_to_utf8str().

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

Here is the call graph for this function:

Here is the caller graph for this function:

void LLUIString::replace ( S32  charidx,
llwchar  wc 
)

Definition at line 84 of file lluistring.cpp.

References mResult, mWResult, and wstring_to_utf8str().

Here is the call graph for this function:

void LLUIString::format (  )  [private]

Definition at line 98 of file lluistring.cpp.

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

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

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 95 of file lluistring.h.

Definition at line 100 of file lluistring.h.

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

Definition at line 101 of file lluistring.h.

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

Definition at line 103 of file lluistring.h.

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


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

Generated on Fri May 16 09:19:57 2008 for SecondLife by  doxygen 1.5.5