96 enum { DONE = 0xffff };
131 virtual int32_t hashCode(
void)
const = 0;
150 virtual UChar nextPostInc(
void) = 0;
160 virtual UChar32 next32PostInc(
void) = 0;
171 virtual UBool hasNext() = 0;
381 virtual UChar first(
void) = 0;
391 virtual UChar firstPostInc(
void);
402 virtual UChar32 first32(
void) = 0;
412 virtual UChar32 first32PostInc(
void);
430 virtual UChar last(
void) = 0;
439 virtual UChar32 last32(
void) = 0;
478 virtual UChar current(
void)
const = 0;
485 virtual UChar32 current32(
void)
const = 0;
494 virtual UChar next(
void) = 0;
506 virtual UChar32 next32(
void) = 0;
515 virtual UChar previous(
void) = 0;
524 virtual UChar32 previous32(
void) = 0;
535 virtual UBool hasPrevious() = 0;
547 inline int32_t startIndex(
void)
const;
558 inline int32_t endIndex(
void)
const;
568 inline int32_t getIndex(
void)
const;
576 inline int32_t getLength()
const;
687 return move(0, kStart);
692 return move(0, kEnd);
int32_t textLength
Base class text length field.
int32_t getIndex(void) const
Returns the numeric index in the underlying text-storage object of the character the iterator current...
virtual UBool operator==(const ForwardCharacterIterator &that) const =0
Returns true when both iterators refer to the same character in the same character-storage object...
ForwardCharacterIterator & operator=(const ForwardCharacterIterator &)
Assignment operator to be overridden in the implementing class.
int32_t startIndex(void) const
Returns the numeric index in the underlying text-storage object of the character returned by first()...
int32_t setToStart()
Sets the iterator to refer to the first code unit or code point in its iteration range.
Abstract class that defines an API for iteration on text objects.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
int32_t endIndex(void) const
Returns the numeric index in the underlying text-storage object of the position immediately BEYOND th...
int32_t pos
Base class field for the current position.
int32_t UChar32
Define UChar32 as a type for single Unicode code points.
virtual int32_t move(int32_t delta, EOrigin origin)=0
Moves the current position relative to the start or end of the iteration range, or relative to the cu...
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
EOrigin
Origin enumeration for the move() and move32() functions.
C++ API: Common ICU base class UObject.
uint16_t UChar
Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API If the compiler doesn't support namespaces...
UObject is the common ICU "boilerplate" class.
UBool operator!=(const ForwardCharacterIterator &that) const
Returns true when the iterators refer to different text-storage objects, or to different characters i...
int32_t end
Base class field for the end of the iteration range.
void * UClassID
UClassID is used to identify classes without using RTTI, since RTTI is not yet supported by all C++ c...
int32_t begin
Base class field for the start of the iteration range.
Basic definitions for ICU, for both C and C++ APIs.
#define U_COMMON_API
Set to export library symbols from inside the common library, and to import them from outside...
Abstract class that defines an API for forward-only iteration on text objects.
int32_t getLength() const
Returns the length of the entire text in the underlying text-storage object.
int32_t setToEnd()
Sets the iterator to the end of its iteration range, just behind the last code unit or code point...
virtual UClassID getDynamicClassID() const =0
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
signed int int32_t
Define 64 bit limits.
int8_t UBool
The ICU boolean type.