ICU 64.2
64.2
|
Immutable, thread-safe version of AlphabeticIndex. More...
#include <alphaindex.h>
Public Member Functions | |
virtual | ~ImmutableIndex () |
Destructor. More... | |
int32_t | getBucketCount () const |
Returns the number of index buckets and labels, including underflow/inflow/overflow. More... | |
int32_t | getBucketIndex (const UnicodeString &name, UErrorCode &errorCode) const |
Finds the index bucket for the given name and returns the number of that bucket. More... | |
const Bucket * | getBucket (int32_t index) const |
Returns the index-th bucket. More... | |
Public Member Functions inherited from icu::UObject | |
virtual | ~UObject () |
Destructor. More... | |
virtual UClassID | getDynamicClassID () const |
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class. More... | |
Friends | |
class | AlphabeticIndex |
Immutable, thread-safe version of AlphabeticIndex.
This class provides thread-safe methods for bucketing, and random access to buckets and their properties, but does not offer adding records to the index.
The ImmutableIndex class is not intended for public subclassing.
Definition at line 248 of file alphaindex.h.
|
virtual |
Destructor.
const Bucket* icu::AlphabeticIndex::ImmutableIndex::getBucket | ( | int32_t | index | ) | const |
Returns the index-th bucket.
Returns NULL if the index is out of range.
index | bucket number |
int32_t icu::AlphabeticIndex::ImmutableIndex::getBucketCount | ( | ) | const |
Returns the number of index buckets and labels, including underflow/inflow/overflow.
int32_t icu::AlphabeticIndex::ImmutableIndex::getBucketIndex | ( | const UnicodeString & | name, |
UErrorCode & | errorCode | ||
) | const |
Finds the index bucket for the given name and returns the number of that bucket.
Use getBucket() to get the bucket's properties.
name | the string to be sorted into an index bucket |
errorCode | Error code, will be set with the reason if the operation fails. |