Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

unistr.h File Reference

#include "unicode/rep.h"

Go to the source code of this file.

Compounds

class  UnicodeString
 UnicodeString is a string class that stores Unicode characters directly and provides similar functionality as the Java String and StringBuffer classes. More...


Defines

#define U_COMPARE_CODE_POINT_ORDER   0x8000
 Option bit for u_strCaseCompare, u_strcasecmp, unorm_compare, etc: Compare strings in code point order instead of code unit order. More...

#define UNICODE_STRING(cs, _length)   UnicodeString(TRUE, (const UChar *)L ## cs, _length)
 Unicode String literals in C++. More...

#define UNICODE_STRING_SIMPLE(cs)   UnicodeString(TRUE, (const UChar *)L ## cs, -1)
 Unicode String literals in C++. More...


Functions

int32_t u_strlen (const UChar *s)
 Determine the length of an array of UChar. More...

UnicodeString operator+ (const UnicodeString &s1, const UnicodeString &s2)
 Create a new UnicodeString with the concatenation of two others. More...

U_NAMESPACE_END void uprv_arrayCopy (const U_NAMESPACE_QUALIFIER UnicodeString *src, U_NAMESPACE_QUALIFIER UnicodeString *dst, int32_t count)
 Copy an array of UnicodeString OBJECTS (not pointers). More...

void uprv_arrayCopy (const U_NAMESPACE_QUALIFIER UnicodeString *src, int32_t srcStart, U_NAMESPACE_QUALIFIER UnicodeString *dst, int32_t dstStart, int32_t count)
 Copy an array of UnicodeString OBJECTS (not pointers). More...


Variables

U_NAMESPACE_BEGIN class Locale


Define Documentation

#define UNICODE_STRING cs,
_length       UnicodeString(TRUE, (const UChar *)L ## cs, _length)
 

Unicode String literals in C++.

Dependent on the platform properties, different UnicodeString constructors should be used to create a UnicodeString object from a string literal. The macros are defined for maximum performance. They work only for strings that contain "invariant characters", i.e., only latin letters, digits, and some punctuation. See utypes.h for details.

The string parameter must be a C string literal. The length of the string, not including the terminating NUL, must be specified as a constant. The U_STRING_DECL macro should be invoked exactly once for one such string variable before it is used.

Stable:
ICU 2.0

Definition at line 71 of file unistr.h.

#define UNICODE_STRING_SIMPLE cs       UnicodeString(TRUE, (const UChar *)L ## cs, -1)
 

Unicode String literals in C++.

Dependent on the platform properties, different UnicodeString constructors should be used to create a UnicodeString object from a string literal. The macros are defined for improved performance. They work only for strings that contain "invariant characters", i.e., only latin letters, digits, and some punctuation. See utypes.h for details.

The string parameter must be a C string literal.

Stable:
ICU 2.0

Definition at line 92 of file unistr.h.

#define U_COMPARE_CODE_POINT_ORDER   0x8000
 

Option bit for u_strCaseCompare, u_strcasecmp, unorm_compare, etc: Compare strings in code point order instead of code unit order.

Stable:
ICU 2.2

Definition at line 36 of file unistr.h.


Function Documentation

UnicodeString operator+ const UnicodeString   s1,
const UnicodeString   s2
[inline]
 

Create a new UnicodeString with the concatenation of two others.

Parameters:
s1  The first string to be copied to the new one.
s2  The second string to be copied to the new one, after s1.
Returns:
UnicodeString(s1).append(s2)
Draft:
This API has been introduced in ICU 2.8. It is still in draft state and may be modified in a future release.

Definition at line 4024 of file unistr.h.

int32_t u_strlen const UChar *    s
 

Determine the length of an array of UChar.

Parameters:
s  The array of UChars, NULL (U+0000) terminated.
Returns:
The number of UChars in chars, minus the terminator.
Stable:
ICU 2.0

void uprv_arrayCopy const U_NAMESPACE_QUALIFIER UnicodeString   src,
int32_t    srcStart,
U_NAMESPACE_QUALIFIER UnicodeString   dst,
int32_t    dstStart,
int32_t    count
[inline]
 

Copy an array of UnicodeString OBJECTS (not pointers).

Internal:
For internal use only.

Definition at line 3105 of file unistr.h.

U_NAMESPACE_END void uprv_arrayCopy const U_NAMESPACE_QUALIFIER UnicodeString   src,
U_NAMESPACE_QUALIFIER UnicodeString   dst,
int32_t    count
[inline]
 

Copy an array of UnicodeString OBJECTS (not pointers).

Internal:
For internal use only.

Definition at line 3097 of file unistr.h.


Variable Documentation

U_NAMESPACE_BEGIN class Locale
 

Definition at line 47 of file unistr.h.


Generated on Mon Nov 24 14:36:02 2003 for ICU 2.8 by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001