Iterator for all of the (string, value) pairs in a UCharsTrie.
More...
#include <ucharstrie.h>
Iterator for all of the (string, value) pairs in a UCharsTrie.
- Stable:
- ICU 4.8
Definition at line 294 of file ucharstrie.h.
◆ Iterator() [1/2]
Iterates from the root of a char16_t-serialized UCharsTrie.
- Parameters
-
trieUChars | The trie char16_ts. |
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.) |
- Stable:
- ICU 4.8
◆ Iterator() [2/2]
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.) |
- Stable:
- ICU 4.8
◆ ~Iterator()
icu::UCharsTrie::Iterator::~Iterator |
( |
| ) |
|
◆ getString()
◆ getValue()
int32_t icu::UCharsTrie::Iterator::getValue |
( |
| ) |
const |
|
inline |
◆ hasNext()
UBool icu::UCharsTrie::Iterator::hasNext |
( |
| ) |
const |
- Returns
- true if there are more elements.
- Stable:
- ICU 4.8
◆ next()
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.
- Stable:
- ICU 4.8
◆ reset()
Iterator & icu::UCharsTrie::Iterator::reset |
( |
| ) |
|
Resets this iterator to its initial state.
- Returns
- *this
- Stable:
- ICU 4.8
The documentation for this class was generated from the following file: