ICU 50.1.2  50.1.2
Public Member Functions | Static Public Member Functions
icu::StringList Class Reference

StringList. More...

#include <colldata.h>

Inheritance diagram for icu::StringList:
icu::UObject icu::UMemory

Public Member Functions

 StringList (UErrorCode &status)
 Construct an empty StringList More...
 
 ~StringList ()
 The destructor. More...
 
void add (const UnicodeString *string, UErrorCode &status)
 Add a string to the list. More...
 
void add (const UChar *chars, int32_t count, UErrorCode &status)
 Add an array of Unicode code points to the list. More...
 
const UnicodeStringget (int32_t index) const
 Get a particular string from the list. More...
 
int32_t size () const
 Get the number of stings in the list. More...
 
virtual UClassID getDynamicClassID () const
 the UObject glue... More...
 
- Public Member Functions inherited from icu::UObject
virtual ~UObject ()
 Destructor. More...
 

Static Public Member Functions

static UClassID getStaticClassID ()
 the UObject glue... More...
 

Detailed Description

StringList.

This object holds a list of UnicodeString objects.

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

Definition at line 167 of file colldata.h.

Constructor & Destructor Documentation

icu::StringList::StringList ( UErrorCode status)

Construct an empty StringList

Parameters
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
icu::StringList::~StringList ( )

The destructor.

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

Member Function Documentation

void icu::StringList::add ( const UnicodeString string,
UErrorCode status 
)

Add a string to the list.

Parameters
string- the string to add
status- will be set if any errors occur.
Internal:
Do not use. This API is for internal use only. ICU 4.0.1 technology preview
void icu::StringList::add ( const UChar chars,
int32_t  count,
UErrorCode status 
)

Add an array of Unicode code points to the list.

Parameters
chars- the address of the array of code points
count- the number of code points in the array
status- will be set if any errors occur.
Internal:
Do not use. This API is for internal use only. ICU 4.0.1 technology preview
const UnicodeString* icu::StringList::get ( int32_t  index) const

Get a particular string from the list.

Parameters
index- the index of the string
Returns
a pointer to the UnicodeString or NULL if index is out of bounds.
Internal:
Do not use. This API is for internal use only. ICU 4.0.1 technology preview
virtual UClassID icu::StringList::getDynamicClassID ( ) const
virtual

the UObject glue...

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

Implements icu::UObject.

static UClassID icu::StringList::getStaticClassID ( )
static

the UObject glue...

Internal:
Do not use. This API is for internal use only. ICU 4.0.1 technology preview
int32_t icu::StringList::size ( ) const

Get the number of stings in the list.

Returns
the number of strings 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: