

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 |
| UString & | operator= (const UString &rOther) |
| Assignment. | |
| UString & | operator+= (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 |
| UString::UString | ( | const UString & | rOther | ) |
| UString::UString | ( | intf_thread_t * | pIntf, | |
| const char * | pString | |||
| ) |
| UString::~UString | ( | ) |
| 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] |
Referenced by find(), TopWindow::onTooltipChange(), operator+=(), operator=(), operator==(), and substr().
| bool UString::operator== | ( | const UString & | rOther | ) | const |
| bool UString::operator!= | ( | const UString & | rOther | ) | const |
| bool UString::operator< | ( | const UString & | rOther | ) | const |
| bool UString::operator<= | ( | const UString & | rOther | ) | const |
| bool UString::operator> | ( | const UString & | rOther | ) | const |
| bool UString::operator>= | ( | const UString & | rOther | ) | const |
| 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 | |||
| ) |
References SkinObject::getIntf(), replace(), and UString().
| 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().
const uint32_t UString::npos = 0xffffffff [static] |
Referenced by find(), VarText::get(), and VarText::set().
1.5.6