UString Class Reference

Inheritance diagram for UString:

Inheritance graph
[legend]
Collaboration diagram for UString:

Collaboration graph
[legend]

Public Member Functions

 UString (const UString &rOther)
 Copy constructor.
 UString (intf_thread_t *pIntf, const char *pString)
 Create a new unicode string from an UTF8 string.
 ~UString ()
const uint32_t * u_str () const
 Get the unicode string.
uint32_t length () const
 Get the length of the string.
uint32_t size () const
bool operator== (const UString &rOther) const
 Comparison.
bool operator!= (const UString &rOther) const
bool operator< (const UString &rOther) const
bool operator<= (const UString &rOther) const
bool operator> (const UString &rOther) const
bool operator>= (const UString &rOther) const
UStringoperator= (const UString &rOther)
 Assignment.
UStringoperator+= (const UString &rOther)
 Concatenation with assignment.
const UString operator+ (const UString &rOther) const
 Concatenation.
const UString operator+ (const char *pString) const
uint32_t find (const UString &str, uint32_t position=0) const
 Search for the first occurance of the substring specified by str in this string, starting at position.
uint32_t find (const char *pString, uint32_t position=0) const
void replace (uint32_t position, uint32_t n1, const UString &str)
 Insert elements of str in place of n1 elements in this string, starting at position position.
void replace (uint32_t position, uint32_t n1, const char *pString)
UString substr (uint32_t position=0, uint32_t n=npos) const
 Returns a string composed of copies of the lesser of n and size() characters in this string starting at index position.

Static Public Member Functions

static UString fromInt (intf_thread_t *pIntf, int number)
 Build a string from an integer.

Static Public Attributes

static const uint32_t npos = 0xffffffff

Constructor & Destructor Documentation

UString::UString ( const UString rOther  ) 

Copy constructor.

References m_length, and m_pString.

Referenced by fromInt(), and replace().

UString::UString ( intf_thread_t pIntf,
const char *  pString 
)

Create a new unicode string from an UTF8 string.

References i, and msg_Err.

UString::~UString (  ) 


Member Function Documentation

const uint32_t* UString::u_str (  )  const [inline]

Get the unicode string.

Referenced by FT2Font::drawString(), BitmapFont::drawString(), and operator<().

uint32_t UString::length (  )  const [inline]

Get the length of the string.

Referenced by FT2Font::drawString(), TopWindow::onControlRelease(), operator+=(), and operator<().

uint32_t UString::size (  )  const [inline]

bool UString::operator== ( const UString rOther  )  const

Comparison.

References i, m_pString, and size().

bool UString::operator!= ( const UString rOther  )  const

bool UString::operator< ( const UString rOther  )  const

References __MIN, i, length(), and u_str().

bool UString::operator<= ( const UString rOther  )  const

bool UString::operator> ( const UString rOther  )  const

bool UString::operator>= ( const UString rOther  )  const

UString & UString::operator= ( const UString rOther  ) 

Assignment.

References i, m_length, m_pString, and size().

UString & UString::operator+= ( const UString rOther  ) 

Concatenation with assignment.

References i, length(), m_pString, and size().

const UString UString::operator+ ( const UString rOther  )  const

Concatenation.

const UString UString::operator+ ( const char *  pString  )  const

References SkinObject::getIntf().

uint32_t UString::find ( const UString str,
uint32_t  position = 0 
) const

Search for the first occurance of the substring specified by str in this string, starting at position.

If found, it returns the index of the first character of the matching substring. If not found, it returns npos

References i, m_pString, npos, and size().

Referenced by find(), VarText::get(), and VarText::set().

uint32_t UString::find ( const char *  pString,
uint32_t  position = 0 
) const

References find(), and SkinObject::getIntf().

void UString::replace ( uint32_t  position,
uint32_t  n1,
const UString str 
)

Insert elements of str in place of n1 elements in this string, starting at position position.

References substr().

Referenced by VarText::get(), and replace().

void UString::replace ( uint32_t  position,
uint32_t  n1,
const char *  pString 
)

UString UString::substr ( uint32_t  position = 0,
uint32_t  n = npos 
) const

Returns a string composed of copies of the lesser of n and size() characters in this string starting at index position.

References SkinObject::getIntf(), i, m_length, m_pString, msg_Err, and size().

Referenced by replace().

UString UString::fromInt ( intf_thread_t pIntf,
int  number 
) [static]

Build a string from an integer.

References UString().

Referenced by VlcProc::on_bit_rate_changed(), and VlcProc::on_sample_rate_changed().


Field Documentation

const uint32_t UString::npos = 0xffffffff [static]

Referenced by find(), VarText::get(), and VarText::set().


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

Generated on Tue May 25 08:06:28 2010 for VLC by  doxygen 1.5.6