ICU 4.2.1
|
Define this to enable the StringList
objects to collect statistics.
More...
#include <colldata.h>
Public Member Functions | |
CEList (UCollator *coll, const UnicodeString &string, UErrorCode &status) | |
Construct a CEList object. More... | |
~CEList () | |
The destructor. | |
int32_t | size () const |
Return the number of CEs in the list. More... | |
uint32_t | get (int32_t index) const |
Get a particular CE from the list. More... | |
UBool | matchesAt (int32_t offset, const CEList *other) const |
Check if the CEs in another CEList match the suffix of this list starting at a give offset. More... | |
uint32_t & | operator[] (int32_t index) const |
The index operator. More... | |
virtual UClassID | getDynamicClassID () const |
UObject glue... | |
![]() | |
virtual | ~UObject () |
Destructor. More... | |
Static Public Member Functions | |
static UClassID | getStaticClassID () |
UObject glue... | |
![]() | |
static void * | operator new (size_t size) |
Override for ICU4C C++ memory management. More... | |
static void * | operator new[] (size_t size) |
Override for ICU4C C++ memory management. More... | |
static void | operator delete (void *p) |
Override for ICU4C C++ memory management. More... | |
static void | operator delete[] (void *p) |
Override for ICU4C C++ memory management. More... | |
static void * | operator new (size_t, void *ptr) |
Override for ICU4C C++ memory management for STL. More... | |
static void | operator delete (void *, void *) |
Override for ICU4C C++ memory management for STL. More... | |
Define this to enable the StringList
objects to collect statistics.
This object holds a list of CEs generated from a particular UnicodeString
Definition at line 59 of file colldata.h.
CEList::CEList | ( | UCollator * | coll, |
const UnicodeString & | string, | ||
UErrorCode & | status | ||
) |
Construct a CEList
object.
coll | - the Collator used to collect the CEs. |
string | - the string for which to collect the CEs. |
status | - will be set if any errors occur. |
Note: if on return, status is set to an error code, the only safe thing to do with this object is to call the destructor.
Get a particular CE from the list.
index | - the index of the CE to return |
0
if index
is out of rangeThe index operator.
index | - the index |
int32_t CEList::size | ( | ) | const |
Return the number of CEs in the list.