UnicodeStringRef
provides support for non zero-terminated strings that are presented as pointers to Unicode character arrays with an associated length.
As this type of string is supposed to be used only as string reference into read-only buffers, the string pointer is constant. The member functions are named to implement the icu::UnicodeString interface but only providing const member functions This class is a quick ,light-weight, shallow string (internally it consists only of a pointer and a length) which can be copied by value without performance penalty. It allows references into other string buffers to be treated like real string objects. Since it does not own it's string memory care must be taken to make sure the lifetime of an UnicodeStringRef object does not exceed the lifetime of the Unicode character buffer it references.
Public Member Functions | |
UnicodeStringRef (void) | |
Default Constructor. | |
UnicodeStringRef (const icu::UnicodeString &crUniString) | |
Constructor from icu::UnicodeString. | |
UnicodeStringRef (UChar const *cpacString) | |
Constructor from zero terminated string. | |
UnicodeStringRef (UChar const *cpacString, int32_t uiLength) | |
Constructor from string and length. | |
UnicodeStringRef (UChar const *paucStringBegin, UChar const *paucStringEnd) | |
Constructor from a two pointers (begin/end). | |
int32_t | getSizeInBytes (void) const |
Accessor for the number of bytes occupied by this string. | |
UChar const * | getBuffer (void) const |
CONST Accessor for the string content (NOT ZERO DELIMITED!). | |
UnicodeStringRef & | operator= (UnicodeStringRef const &crclRHS) |
Assignment operator. | |
int | operator== (const UnicodeStringRef &crclRHS) const |
Equality operator. | |
int | operator!= (const UnicodeStringRef &crclRHS) const |
Inequality operator. | |
bool | operator< (UnicodeStringRef const &text) const |
less operator | |
bool | operator<= (UnicodeStringRef const &text) const |
less equal operator | |
bool | operator> (UnicodeStringRef const &text) const |
greater operator | |
bool | operator>= (UnicodeStringRef const &text) const |
greater equal operator | |
int8_t | compare (const UnicodeStringRef &text) const |
Compare the characters bitwise in this UnicodeStringRef to the characters in text . | |
int8_t | compare (const icu::UnicodeString &text) const |
Compare the characters bitwise in this UnicodeStringRef to the characters in text . | |
int8_t | compare (int32_t start, int32_t length, const UnicodeStringRef &srcText) const |
Compare the characters bitwise in the range [start , start + length ) with the characters in srcText . | |
int8_t | compare (int32_t start, int32_t length, const UnicodeStringRef &srcText, int32_t srcStart, int32_t srcLength) const |
Compare the characters bitwise in the range [start , start + length ) with the characters in srcText in the range [srcStart , srcStart + srcLength ). | |
int8_t | compare (UChar const *srcChars, int32_t srcLength) const |
Compare the characters bitwise in this UnicodeStringRef with the first srcLength characters in srcChars . | |
int8_t | compare (int32_t start, int32_t length, UChar const *srcChars) const |
Compare the characters bitwise in the range [start , start + length ) with the first length characters in srcChars . | |
int8_t | compare (int32_t start, int32_t length, UChar const *srcChars, int32_t srcStart, int32_t srcLength) const |
Compare the characters bitwise in the range [start , start + length ) with the characters in srcChars in the range [srcStart , srcStart + srcLength ). | |
int8_t | compareBetween (int32_t start, int32_t limit, const UnicodeStringRef &srcText, int32_t srcStart, int32_t srcLimit) const |
Compare the characters bitwise in the range [start , limit ) with the characters in srcText in the range [srcStart , srcLimit ). | |
int8_t | compareCodePointOrder (const UnicodeStringRef &text) const |
Compare two Unicode strings in code point order. | |
int8_t | compareCodePointOrder (int32_t start, int32_t length, const UnicodeStringRef &srcText) const |
Compare two Unicode strings in code point order. | |
int8_t | compareCodePointOrder (int32_t start, int32_t length, const UnicodeStringRef &srcText, int32_t srcStart, int32_t srcLength) const |
Compare two Unicode strings in code point order. | |
int8_t | compareCodePointOrder (UChar const *srcChars, int32_t srcLength) const |
Compare two Unicode strings in code point order. | |
int8_t | compareCodePointOrder (int32_t start, int32_t length, UChar const *srcChars) const |
Compare two Unicode strings in code point order. | |
int8_t | compareCodePointOrder (int32_t start, int32_t length, UChar const *srcChars, int32_t srcStart, int32_t srcLength) const |
Compare two Unicode strings in code point order. | |
int8_t | compareCodePointOrderBetween (int32_t start, int32_t limit, const UnicodeStringRef &srcText, int32_t srcStart, int32_t srcLimit) const |
Compare two Unicode strings in code point order. | |
int8_t | caseCompare (const UnicodeStringRef &text, uint32_t options) const |
Compare two strings case-insensitively using full case folding. | |
int8_t | caseCompare (int32_t start, int32_t length, const UnicodeStringRef &srcText, uint32_t options) const |
Compare two strings case-insensitively using full case folding. | |
int8_t | caseCompare (int32_t start, int32_t length, const UnicodeStringRef &srcText, int32_t srcStart, int32_t srcLength, uint32_t options) const |
Compare two strings case-insensitively using full case folding. | |
int8_t | caseCompare (UChar const *srcChars, int32_t srcLength, uint32_t options) const |
Compare two strings case-insensitively using full case folding. | |
int8_t | caseCompare (int32_t start, int32_t length, UChar const *srcChars, uint32_t options) const |
Compare two strings case-insensitively using full case folding. | |
int8_t | caseCompare (int32_t start, int32_t length, UChar const *srcChars, int32_t srcStart, int32_t srcLength, uint32_t options) const |
Compare two strings case-insensitively using full case folding. | |
int8_t | caseCompareBetween (int32_t start, int32_t limit, const UnicodeStringRef &srcText, int32_t srcStart, int32_t srcLimit, uint32_t options) const |
Compare two strings case-insensitively using full case folding. | |
bool | startsWith (const UnicodeStringRef &text) const |
Determine if this starts with the characters in text . | |
bool | startsWith (const UnicodeStringRef &srcText, int32_t srcStart, int32_t srcLength) const |
Determine if this starts with the characters in srcText in the range [srcStart , srcStart + srcLength ). | |
bool | startsWith (UChar const *srcChars, int32_t srcLength) const |
Determine if this starts with the characters in srcChars . | |
bool | startsWith (UChar const *srcChars, int32_t srcStart, int32_t srcLength) const |
Determine if this starts with the characters in srcChars in the range [srcStart , srcStart + srcLength ). | |
bool | endsWith (const UnicodeStringRef &text) const |
Determine if this ends with the characters in text . | |
bool | endsWith (const UnicodeStringRef &srcText, int32_t srcStart, int32_t srcLength) const |
Determine if this ends with the characters in srcText in the range [srcStart , srcStart + srcLength ). | |
bool | endsWith (UChar const *srcChars, int32_t srcLength) const |
Determine if this ends with the characters in srcChars . | |
bool | endsWith (UChar const *srcChars, int32_t srcStart, int32_t srcLength) const |
Determine if this ends with the characters in srcChars in the range [srcStart , srcStart + srcLength ). | |
int32_t | indexOf (const UnicodeStringRef &text) const |
Locate in this the first occurrence of the characters in text , using bitwise comparison. | |
int32_t | indexOf (const UnicodeStringRef &text, int32_t start) const |
Locate in this the first occurrence of the characters in text starting at offset start , using bitwise comparison. | |
int32_t | indexOf (const UnicodeStringRef &text, int32_t start, int32_t length) const |
Locate in this the first occurrence in the range [start , start + length ) of the characters in text , using bitwise comparison. | |
int32_t | indexOf (const UnicodeStringRef &srcText, int32_t srcStart, int32_t srcLength, int32_t start, int32_t length) const |
Locate in this the first occurrence in the range [start , start + length ) of the characters in srcText in the range [srcStart , srcStart + srcLength ), using bitwise comparison. | |
int32_t | indexOf (UChar const *srcChars, int32_t srcLength, int32_t start) const |
Locate in this the first occurrence of the characters in srcChars starting at offset start , using bitwise comparison. | |
int32_t | indexOf (UChar const *srcChars, int32_t srcLength, int32_t start, int32_t length) const |
Locate in this the first occurrence in the range [start , start + length ) of the characters in srcChars , using bitwise comparison. | |
int32_t | indexOf (UChar const *srcChars, int32_t srcStart, int32_t srcLength, int32_t start, int32_t length) const |
Locate in this the first occurrence in the range [start , start + length ) of the characters in srcChars in the range [srcStart , srcStart + srcLength ), using bitwise comparison. | |
int32_t | indexOf (UChar c) const |
Locate in this the first occurrence of the code unit c , using bitwise comparison. | |
int32_t | indexOf (UChar32 c) const |
Locate in this the first occurrence of the code point c , using bitwise comparison. | |
int32_t | indexOf (UChar c, int32_t start) const |
Locate in this the first occurrence of the code unit c starting at offset start , using bitwise comparison. | |
int32_t | indexOf (UChar32 c, int32_t start) const |
Locate in this the first occurrence of the code point c starting at offset start , using bitwise comparison. | |
int32_t | indexOf (UChar c, int32_t start, int32_t length) const |
Locate in this the first occurrence of the code unit c in the range [start , start + length ), using bitwise comparison. | |
int32_t | indexOf (UChar32 c, int32_t start, int32_t length) const |
Locate in this the first occurrence of the code point c in the range [start , start + length ), using bitwise comparison. | |
int32_t | lastIndexOf (const UnicodeStringRef &text) const |
Locate in this the last occurrence of the characters in text , using bitwise comparison. | |
int32_t | lastIndexOf (const UnicodeStringRef &text, int32_t start) const |
Locate in this the last occurrence of the characters in text starting at offset start , using bitwise comparison. | |
int32_t | lastIndexOf (const UnicodeStringRef &text, int32_t start, int32_t length) const |
Locate in this the last occurrence in the range [start , start + length ) of the characters in text , using bitwise comparison. | |
int32_t | lastIndexOf (const UnicodeStringRef &srcText, int32_t srcStart, int32_t srcLength, int32_t start, int32_t length) const |
Locate in this the last occurrence in the range [start , start + length ) of the characters in srcText in the range [srcStart , srcStart + srcLength ), using bitwise comparison. | |
int32_t | lastIndexOf (UChar const *srcChars, int32_t srcLength, int32_t start) const |
Locate in this the last occurrence of the characters in srcChars starting at offset start , using bitwise comparison. | |
int32_t | lastIndexOf (UChar const *srcChars, int32_t srcLength, int32_t start, int32_t length) const |
Locate in this the last occurrence in the range [start , start + length ) of the characters in srcChars , using bitwise comparison. | |
int32_t | lastIndexOf (UChar const *srcChars, int32_t srcStart, int32_t srcLength, int32_t start, int32_t length) const |
Locate in this the last occurrence in the range [start , start + length ) of the characters in srcChars in the range [srcStart , srcStart + srcLength ), using bitwise comparison. | |
int32_t | lastIndexOf (UChar c) const |
Locate in this the last occurrence of the code unit c , using bitwise comparison. | |
int32_t | lastIndexOf (UChar32 c) const |
Locate in this the last occurrence of the code point c , using bitwise comparison. | |
int32_t | lastIndexOf (UChar c, int32_t start) const |
Locate in this the last occurrence of the code unit c starting at offset start , using bitwise comparison. | |
int32_t | lastIndexOf (UChar32 c, int32_t start) const |
Locate in this the last occurrence of the code point c starting at offset start , using bitwise comparison. | |
int32_t | lastIndexOf (UChar c, int32_t start, int32_t length) const |
Locate in this the last occurrence of the code unit c in the range [start , start + length ), using bitwise comparison. | |
int32_t | lastIndexOf (UChar32 c, int32_t start, int32_t length) const |
Locate in this the last occurrence of the code point c in the range [start , start + length ), using bitwise comparison. | |
UChar | charAt (int32_t offset) const |
Return the code unit at offset offset . | |
UChar | operator[] (int32_t offset) const |
Return the code unit at offset offset . | |
UChar32 | char32At (int32_t offset) const |
Return the code point that contains the code unit at offset offset . | |
int32_t | getChar32Start (int32_t offset) const |
Adjust a random-access offset so that it points to the beginning of a Unicode character. | |
int32_t | getChar32Limit (int32_t offset) const |
Adjust a random-access offset so that it points behind a Unicode character. | |
int32_t | moveIndex32 (int32_t index, int32_t delta) const |
Move the code unit index along the string by delta code points. | |
void | extract (int32_t start, int32_t length, UChar *dst, int32_t dstStart=0) const |
Copy the characters in the range [start , start + length ) into the array dst , beginning at dstStart . | |
void | extractBetween (int32_t start, int32_t limit, UChar *dst, int32_t dstStart=0) const |
Copy the characters in the range [start , limit ) into the array dst , beginning at dstStart . | |
int32_t | extract (UChar *dst, int32_t dstCapacity, UErrorCode &errorCode) const |
Copy the contents of the string into dst. | |
void | extract (int32_t start, int32_t length, UnicodeString &dst) const |
Copy the characters in the range [start , start + length ) into the UnicodeString dst . | |
void | extractBetween (int32_t start, int32_t limit, UnicodeString &dst) const |
Copy the characters in the range [start , limit ) into the UnicodeString dst . | |
int32_t | extract (int32_t start, int32_t startLength, char *target, const char *codepage=0) const |
Copy the characters in the range [start , start + length ) into an array of characters in a specified codepage. | |
int32_t | extract (int32_t start, int32_t startLength, char *target, uint32_t targetLength, const char *codepage=0) const |
Copy the characters in the range [start , start + length ) into an array of characters in a specified codepage. | |
int32_t | extract (char *target, int32_t targetCapacity, UConverter *cnv, UErrorCode &errorCode) const |
Convert the UnicodeStringRef into a codepage string using an existing UConverter. | |
int32_t | extract (int32_t start, int32_t startLength, std::string &target, const char *codepage=0) const |
Copy the characters in the range [start , start + length ) into a std::string object in a specified codepage. | |
int32_t | extract (std::string &target, const char *codepage=0) const |
Copy all the characters in the string into an std::string object in a specified codepage. | |
int32_t | extractUTF8 (std::string &target) const |
Copy all the characters in the string into an std::string object in UTF-8. | |
std::string | asUTF8 (void) const |
Convert to a UTF8 string. | |
int32_t | length (void) const |
Return the length of the UnicodeStringRef object. | |
int32_t | countChar32 (int32_t start=0, int32_t length=0x7fffffff) const |
Count Unicode code points in the length UChar code units of the string. | |
bool | isEmpty (void) const |
Determine if this string is empty. | |
UnicodeStringRef & | setTo (const UnicodeStringRef &srcText) |
Set the text in the UnicodeString object to the characters in srcText . | |
UnicodeStringRef & | setTo (const UnicodeString &srcText) |
Set the text in the UnicodeString object to the characters in srcText . | |
UnicodeStringRef & | setTo (const UChar *srcChars, int32_t srcLength) |
Set the characters in the UnicodeString object to the characters in srcChars . | |
void | toSingleByteStream (std::ostream &outStream) const |
Print a single byte version to outStream. | |
Static Public Member Functions | |
void | release (std::string &target) |
Release contents of string container allocated by extract methods Useful when caller and callee use different heaps, e.g. |
|
Default Constructor.
|
|
Constructor from icu::UnicodeString.
|
|
Constructor from zero terminated string.
|
|
Constructor from string and length.
|
|
Constructor from a two pointers (begin/end). Note: end points to the first char behind the string.
|
|
Accessor for the number of bytes occupied by this string.
|
|
CONST Accessor for the string content (NOT ZERO DELIMITED!).
|
|
Assignment operator.
|
|
Equality operator.
|
|
Inequality operator.
|
|
less operator
|
|
less equal operator
|
|
greater operator
|
|
greater equal operator
|
|
Compare the characters bitwise in this UnicodeStringRef to the characters in
|
|
Compare the characters bitwise in this UnicodeStringRef to the characters in
|
|
Compare the characters bitwise in the range [
|
|
Compare the characters bitwise in the range [
|
|
Compare the characters bitwise in this UnicodeStringRef with the first
|
|
Compare the characters bitwise in the range [
|
|
Compare the characters bitwise in the range [
|
|
Compare the characters bitwise in the range [
|
|
Compare two Unicode strings in code point order. This is different in UTF-16 from how compare(), operator==, startsWith() etc. work if supplementary characters are present: In UTF-16, supplementary characters (with code points U+10000 and above) are stored with pairs of surrogate code units. These have values from 0xd800 to 0xdfff, which means that they compare as less than some other BMP characters like U+feff. This function compares Unicode strings in code point order. If either of the UTF-16 strings is malformed (i.e., it contains unpaired surrogates), then the result is not defined.
|
|
Compare two Unicode strings in code point order. This is different in UTF-16 from how compare(), operator==, startsWith() etc. work if supplementary characters are present: In UTF-16, supplementary characters (with code points U+10000 and above) are stored with pairs of surrogate code units. These have values from 0xd800 to 0xdfff, which means that they compare as less than some other BMP characters like U+feff. This function compares Unicode strings in code point order. If either of the UTF-16 strings is malformed (i.e., it contains unpaired surrogates), then the result is not defined.
|
|
Compare two Unicode strings in code point order. This is different in UTF-16 from how compare(), operator==, startsWith() etc. work if supplementary characters are present: In UTF-16, supplementary characters (with code points U+10000 and above) are stored with pairs of surrogate code units. These have values from 0xd800 to 0xdfff, which means that they compare as less than some other BMP characters like U+feff. This function compares Unicode strings in code point order. If either of the UTF-16 strings is malformed (i.e., it contains unpaired surrogates), then the result is not defined.
|
|
Compare two Unicode strings in code point order. This is different in UTF-16 from how compare(), operator==, startsWith() etc. work if supplementary characters are present: In UTF-16, supplementary characters (with code points U+10000 and above) are stored with pairs of surrogate code units. These have values from 0xd800 to 0xdfff, which means that they compare as less than some other BMP characters like U+feff. This function compares Unicode strings in code point order. If either of the UTF-16 strings is malformed (i.e., it contains unpaired surrogates), then the result is not defined.
|
|
Compare two Unicode strings in code point order. This is different in UTF-16 from how compare(), operator==, startsWith() etc. work if supplementary characters are present: In UTF-16, supplementary characters (with code points U+10000 and above) are stored with pairs of surrogate code units. These have values from 0xd800 to 0xdfff, which means that they compare as less than some other BMP characters like U+feff. This function compares Unicode strings in code point order. If either of the UTF-16 strings is malformed (i.e., it contains unpaired surrogates), then the result is not defined.
|
|
Compare two Unicode strings in code point order. This is different in UTF-16 from how compare(), operator==, startsWith() etc. work if supplementary characters are present: In UTF-16, supplementary characters (with code points U+10000 and above) are stored with pairs of surrogate code units. These have values from 0xd800 to 0xdfff, which means that they compare as less than some other BMP characters like U+feff. This function compares Unicode strings in code point order. If either of the UTF-16 strings is malformed (i.e., it contains unpaired surrogates), then the result is not defined.
|
|
Compare two Unicode strings in code point order. This is different in UTF-16 from how compare(), operator==, startsWith() etc. work if supplementary characters are present: In UTF-16, supplementary characters (with code points U+10000 and above) are stored with pairs of surrogate code units. These have values from 0xd800 to 0xdfff, which means that they compare as less than some other BMP characters like U+feff. This function compares Unicode strings in code point order. If either of the UTF-16 strings is malformed (i.e., it contains unpaired surrogates), then the result is not defined.
|
|
Compare two strings case-insensitively using full case folding. This is equivalent to this->foldCase(options).compare(text.foldCase(options)).
|
|
Compare two strings case-insensitively using full case folding. This is equivalent to this->foldCase(options).compare(srcText.foldCase(options)).
|
|
Compare two strings case-insensitively using full case folding. This is equivalent to this->foldCase(options).compare(srcText.foldCase(options)).
|
|
Compare two strings case-insensitively using full case folding. This is equivalent to this->foldCase(options).compare(srcChars.foldCase(options)).
|
|
Compare two strings case-insensitively using full case folding. This is equivalent to this->foldCase(options).compare(srcChars.foldCase(options)).
|
|
Compare two strings case-insensitively using full case folding. This is equivalent to this->foldCase(options).compare(srcChars.foldCase(options)).
|
|
Compare two strings case-insensitively using full case folding. This is equivalent to this->foldCase(options).compareBetween(text.foldCase(options)).
|
|
Determine if this starts with the characters in
|
|
Determine if this starts with the characters in
|
|
Determine if this starts with the characters in
|
|
Determine if this starts with the characters in
|
|
Determine if this ends with the characters in
|
|
Determine if this ends with the characters in
|
|
Determine if this ends with the characters in
|
|
Determine if this ends with the characters in
|
|
Locate in this the first occurrence of the characters in
|
|
Locate in this the first occurrence of the characters in
|
|
Locate in this the first occurrence in the range [
|
|
Locate in this the first occurrence in the range [
|
|
Locate in this the first occurrence of the characters in
|
|
Locate in this the first occurrence in the range [
|
|
Locate in this the first occurrence in the range [
|
|
Locate in this the first occurrence of the code unit
|
|
Locate in this the first occurrence of the code point
|
|
Locate in this the first occurrence of the code unit
|
|
Locate in this the first occurrence of the code point
|
|
Locate in this the first occurrence of the code unit
|
|
Locate in this the first occurrence of the code point
|
|
Locate in this the last occurrence of the characters in
|
|
Locate in this the last occurrence of the characters in
|
|
Locate in this the last occurrence in the range [
|
|
Locate in this the last occurrence in the range [
|
|
Locate in this the last occurrence of the characters in
|
|
Locate in this the last occurrence in the range [
|
|
Locate in this the last occurrence in the range [
|
|
Locate in this the last occurrence of the code unit
|
|
Locate in this the last occurrence of the code point
|
|
Locate in this the last occurrence of the code unit
|
|
Locate in this the last occurrence of the code point
|
|
Locate in this the last occurrence of the code unit
|
|
Locate in this the last occurrence of the code point
|
|
Return the code unit at offset
|
|
Return the code unit at offset
|
|
Return the code point that contains the code unit at offset
|
|
Adjust a random-access offset so that it points to the beginning of a Unicode character. The offset that is passed in points to any code unit of a code point, while the returned offset will point to the first code unit of the same code point. In UTF-16, if the input offset points to a iv_uiLength surrogate of a surrogate pair, then the returned offset will point to the first surrogate.
|
|
Adjust a random-access offset so that it points behind a Unicode character. The offset that is passed in points behind any code unit of a code point, while the returned offset will point behind the last code unit of the same code point. In UTF-16, if the input offset points behind the first surrogate (i.e., to the iv_uiLength surrogate) of a surrogate pair, then the returned offset will point behind the iv_uiLength surrogate (i.e., to the first surrogate).
|
|
Move the code unit index along the string by delta code points. Interpret the input index as a code unit-based offset into the string, move the index forward or backward by delta code points, and return the resulting index. The input index should point to the first code unit of a code point, if there is more than one. Both input and output indexes are code unit-based as for all string indexes/offsets in ICU (and other libraries, like MBCS char*). If delta<0 then the index is moved backward (toward the start of the string). If delta>0 then the index is moved forward (toward the end of the string). This behaves like CharacterIterator::move32(delta, kCurrent).
Examples:
|
|
Copy the characters in the range [
If the string aliases to
|
|
Copy the characters in the range [
|
|
Copy the contents of the string into dst. This is a convenience function that checks if there is enough space in dst, extracts the entire string if possible, and NUL-terminates dst if possible. If the string fits into dst but cannot be NUL-terminated (length()==dstCapacity) then the error code is set to U_STRING_NOT_TERMINATED_WARNING. If the string itself does not fit into dst (length()>dstCapacity) then the error code is set to U_BUFFER_OVERFLOW_ERROR.
If the string aliases to
|
|
Copy the characters in the range [
|
|
Copy the characters in the range [
|
|
Copy the characters in the range [ The output string is NUL-terminated.
|
|
Copy the characters in the range [
This function does not write any more than
|
|
Convert the UnicodeStringRef into a codepage string using an existing UConverter. The output string is NUL-terminated if possible. This function avoids the overhead of opening and closing a converter if multiple strings are extracted.
|
|
Copy the characters in the range [ The output string is NUL-terminated.
|
|
Copy all the characters in the string into an std::string object in a specified codepage. Equivalent to extract(0, length(), target, codepage)
|
|
Copy all the characters in the string into an std::string object in UTF-8. Slightly more efficient than asUTF8() as avoids one copy.
|
|
Convert to a UTF8 string.
|
|
Release contents of string container allocated by extract methods Useful when caller and callee use different heaps, e.g.
when debug code uses a release library. Is static so can be called on the |
|
Return the length of the UnicodeStringRef object. The length is the number of characters in the text.
|
|
Count Unicode code points in the length UChar code units of the string. A code point may occupy either one or two UChar code units. Counting code points involves reading all code units. This functions is basically the inverse of moveIndex32().
|
|
Determine if this string is empty.
|
|
Set the text in the UnicodeString object to the characters in
|
|
Set the text in the UnicodeString object to the characters in
|
|
Set the characters in the UnicodeString object to the characters in
|
|
Print a single byte version to outStream. The encoding is UTF-8 if outStream is directed to disk, if outStream is cout our cerr the encoding is a Console-CCSID that will allow most character to be readable in a shell/command window. |