Iterator for all of the (string, value) pairs in a UCharsTrie.
More...
#include <ucharstrie.h>
Additional Inherited Members |
static void * | operator new (size_t size) |
| Override for ICU4C C++ memory management.
|
static void * | operator new[] (size_t size) |
| Override for ICU4C C++ memory management.
|
static void | operator delete (void *p) |
| Override for ICU4C C++ memory management.
|
static void | operator delete[] (void *p) |
| Override for ICU4C C++ memory management.
|
static void * | operator new (size_t, void *ptr) |
| Override for ICU4C C++ memory management for STL.
|
static void | operator delete (void *, void *) |
| Override for ICU4C C++ memory management for STL.
|
Detailed Description
Iterator for all of the (string, value) pairs in a UCharsTrie.
- Draft:
- This API may be changed in the future versions and was introduced in ICU 4.8
Definition at line 268 of file ucharstrie.h.
Constructor & Destructor Documentation
Iterates from the root of a UChar-serialized UCharsTrie.
- Parameters:
-
trieUChars | The trie UChars. |
maxStringLength | If 0, the iterator returns full strings. Otherwise, the iterator returns strings with this maximum length. |
errorCode | Standard ICU error code. Its input value must pass the U_SUCCESS() test, or else the function returns immediately. Check for U_FAILURE() on output or use with function chaining. (See User Guide for details.) |
- Draft:
- This API may be changed in the future versions and was introduced in ICU 4.8
Iterates from the current state of the specified UCharsTrie.
- Parameters:
-
trie | The trie whose state will be copied for iteration. |
maxStringLength | If 0, the iterator returns full strings. Otherwise, the iterator returns strings with this maximum length. |
errorCode | Standard ICU error code. Its input value must pass the U_SUCCESS() test, or else the function returns immediately. Check for U_FAILURE() on output or use with function chaining. (See User Guide for details.) |
- Draft:
- This API may be changed in the future versions and was introduced in ICU 4.8
UCharsTrie::Iterator::~Iterator |
( |
| ) |
|
Destructor.
- Draft:
- This API may be changed in the future versions and was introduced in ICU 4.8
Member Function Documentation
- Returns:
- The string for the last successful next().
- Draft:
- This API may be changed in the future versions and was introduced in ICU 4.8
Definition at line 335 of file ucharstrie.h.
int32_t UCharsTrie::Iterator::getValue |
( |
| ) |
const |
|
inline |
- Returns:
- The value for the last successful next().
- Draft:
- This API may be changed in the future versions and was introduced in ICU 4.8
Definition at line 340 of file ucharstrie.h.
UBool UCharsTrie::Iterator::hasNext |
( |
| ) |
const |
- Returns:
- TRUE if there are more elements.
- Draft:
- This API may be changed in the future versions and was introduced in ICU 4.8
Finds the next (string, value) pair if there is one.
If the string is truncated to the maximum length and does not have a real value, then the value is set to -1. In this case, this "not a real value" is indistinguishable from a real value of -1.
- Parameters:
-
errorCode | Standard ICU error code. Its input value must pass the U_SUCCESS() test, or else the function returns immediately. Check for U_FAILURE() on output or use with function chaining. (See User Guide for details.) |
- Returns:
- TRUE if there is another element.
- Draft:
- This API may be changed in the future versions and was introduced in ICU 4.8
Iterator& UCharsTrie::Iterator::reset |
( |
| ) |
|
Resets this iterator to its initial state.
- Returns:
- *this
- Draft:
- This API may be changed in the future versions and was introduced in ICU 4.8
The documentation for this class was generated from the following file: