ICU 4.8.1.1  4.8.1.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions
CEList Class Reference

This object holds a list of CEs generated from a particular UnicodeString More...

#include <colldata.h>

Inheritance diagram for CEList:
UObject UMemory

Public Member Functions

 CEList (UCollator *coll, const UnicodeString &string, UErrorCode &status)
 Construct a CEList object. More...
 
 ~CEList ()
 The destructor. More...
 
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_toperator[] (int32_t index) const
 The index operator. More...
 
virtual UClassID getDynamicClassID () const
 UObject glue... More...
 
- Public Member Functions inherited from UObject
virtual ~UObject ()
 Destructor. More...
 

Static Public Member Functions

static UClassID getStaticClassID ()
 UObject glue... More...
 
- Static Public Member Functions inherited from UMemory
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...
 

Detailed Description

This object holds a list of CEs generated from a particular UnicodeString

Internal:
Do not use. This API is for internal use only. ICU 4.0.1 technology preview

Definition at line 66 of file colldata.h.

Constructor & Destructor Documentation

CEList::CEList ( UCollator coll,
const UnicodeString string,
UErrorCode status 
)

Construct a CEList object.

Parameters
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.

Internal:
Do not use. This API is for internal use only. ICU 4.0.1 technology preview
CEList::~CEList ( )

The destructor.

Internal:
Do not use. This API is for internal use only. ICU 4.0.1 technology preview

Member Function Documentation

uint32_t CEList::get ( int32_t  index) const

Get a particular CE from the list.

Parameters
index- the index of the CE to return
Returns
the CE, or 0 if index is out of range
Internal:
Do not use. This API is for internal use only. ICU 4.0.1 technology preview
virtual UClassID CEList::getDynamicClassID ( ) const
virtual

UObject glue...

Internal:
Do not use. This API is for internal use only. ICU 4.0.1 technology preview

Implements UObject.

static UClassID CEList::getStaticClassID ( )
static

UObject glue...

Internal:
Do not use. This API is for internal use only. ICU 4.0.1 technology preview
UBool CEList::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.

Parameters
offset- the offset of the suffix
other- the other CEList
Returns
TRUE if the CEs match, FALSE otherwise.
Internal:
Do not use. This API is for internal use only. ICU 4.0.1 technology preview
uint32_t& CEList::operator[] ( int32_t  index) const

The index operator.

Parameters
index- the index
Returns
a reference to the given CE in the list
Internal:
Do not use. This API is for internal use only. ICU 4.0.1 technology preview
int32_t CEList::size ( ) const

Return the number of CEs in the list.

Returns
the number of CEs in the list.
Internal:
Do not use. This API is for internal use only. ICU 4.0.1 technology preview

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