Class that represents a ustring primitive type. More...

#include <SPL/Runtime/Type/UString.h>

List of all members.


Detailed Description

Class that represents a ustring primitive type.


Constructor & Destructor Documentation

Default constructor

Constructor

Parameters:

Constructor

Parameters:

Constructor

Parameters:

Constructor

Parameters:

Constructor

Parameters:

Constructor

Parameters:

Constructor

Parameters:

Constructor

Parameters:

Constructor

Parameters:

Copy Contrstructor

Parameters:

Destructor.


Member Function Documentation

Assignment operator

Parameters:
Returns:
reference to this

Return the length of a ustring in UChars

Returns:
the number of UChar units in a ustring

Return a pointer to the ustring as a series of UChars

Returns:
a pointer to the UChars representing the ustring

Compare two unicode strings for equality

Parameters:
Returns:
true if the strings are equal

Compare two unicode strings for inequality

Parameters:
Returns:
true if the strings are not equal

Compare two unicode strings for greater than

Parameters:
Returns:
true if this ustring is greater than the rhs

Compare two unicode strings for greater than or equal

Parameters:
Returns:
true if this ustring is greater than or equal to the rhs

Compare two unicode strings for less than

Parameters:
Returns:
true if this ustring is less than the rhs

Compare two unicode strings for less than or equal

Parameters:
Returns:
true if this ustring is less than or equal to the rhs

Append a character to a ustring

Parameters:
Returns:
a reference to this

Append a character to a ustring

Parameters:
Returns:
a reference to this

Append a ustring to a ustring

Parameters:
Returns:
a reference to this

Append a ustring to a ustring

Parameters:
Returns:
a reference to this

Select one character from a unicode string

Parameters:
Returns:
a ustring consisting of the logical character at position index
Exceptions:

Create from UTF-8

Parameters:
Returns:
resulting ustring
Exceptions:

Create from UTF-8

Parameters:
Returns:
resulting ustring
Exceptions:

Create from UTF-8

Parameters:
Returns:
resulting ustring
Exceptions:

Create from UTF-8

Parameters:
Returns:
resulting ustring
Exceptions:

Convert to UTF-8

Parameters:
Returns:
UTF-8 string

Get the size in bytes when serialized

Returns:
size in bytes when serialized

Get the hash code

Returns:
hash code

Locate in this the first occurrence of the characters in text, using bitwise comparison

Parameters:
Returns:
The offset into this of the start of text, or -1 if not found

Locate in this the first occurrence of the characters in text, using bitwise comparison

Parameters:
Returns:
The offset into this of the start of text, or -1 if not found

Locate in this the last occurrence of the characters in text, using bitwise comparison

Parameters:
Returns:
The offset into this of the start of text, or -1 if not found

Locate in this the last occurrence of the characters in text, using bitwise comparison

Parameters:
Returns:
The offset into this of the start of text, or -1 if not found

Is this string empty?

Returns:
'true' if the string is empty, else 'false'

Return the code unit at offset offset

Parameters:
Returns:
the code unit at offset offset or 0xffff if the offset is not valid for this string

Return the UChar at offset offset

Parameters:
Returns:
the code unit at offset offset or 0xffff if the offset is not valid for this string

Return the UChar at offset offset

Parameters:
Returns:
the code unit at offset offset or 0xffff if the offset is not valid for this string

Move the code unit index along the string by delta code points.

Parameters:
Returns:
the resulting code unit index

Count Unicode code points in the length UChar code units of the string

Parameters:
Returns:
the number of code points in the specified code units

Convert to lower case

Returns:
a reference to this

Convert to upper case

Returns:
a reference to this

Extract UChars from a ustring into a char buffer Copy the characters in the range [start, start + length) into the array dst

Parameters:
Returns:
the length of the output string, not counting the terminaling NUL

Extract UChars from a ustring into a char buffer Copy the characters in the range [start, start + length) into the array dst

Parameters:
Returns:
the length of the output string, not counting the terminaling NUL

Extract UChars from a ustring into a ustring Copy the characters in the range [start, start + length) into the target

Parameters:

Remove all the characters in a ustring.

Remove characters in a ustring

Parameters:

Truncate this ustring to the targetLength

Parameters:
template<class T >

Convert an SPL value to ustring

Parameters:
Returns:
ustring representation

Compare two ustrings in code point order

Parameters:
Returns:
a negative/zero/positive integer corresponding to whether this string is less than/equal to/greater than the second one in code point order

Compare two ustrings in code point order

Parameters:
Returns:
a negative/zero/positive integer corresponding to whether this string is less than/equal to/greater than the second one in code point order

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