Go to the documentation of this file.
25 #if U_SHOW_CPLUSPLUS_API
181 void setText(
const char16_t* newText, int32_t newTextLength);
StringCharacterIterator()
Default constructor, iteration over empty string.
Basic definitions for ICU, for both C and C++ APIs.
int8_t UBool
The ICU boolean type.
StringCharacterIterator(const UnicodeString &textStr, int32_t textPos)
Create an iterator over the UnicodeString referred to by "textStr".
static UClassID getStaticClassID(void)
Return a class ID for this class (not really public)
void setText(const char16_t *newText, int32_t newTextLength)
Sets the iterator to iterate over the provided string.
virtual StringCharacterIterator * clone() const
Returns a new StringCharacterIterator referring to the same character in the same range of the same s...
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
StringCharacterIterator(const StringCharacterIterator &that)
Copy constructor.
A concrete subclass of CharacterIterator that iterates over the characters (code units or code points...
virtual void getText(UnicodeString &result)
Copies the UnicodeString under iteration into the UnicodeString referred to by "result".
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
Abstract class that defines an API for forward-only iteration on text objects.
UnicodeString text
Copy of the iterated string object.
C++ API: char16_t Character Iterator.
StringCharacterIterator(const UnicodeString &textStr)
Create an iterator over the UnicodeString referred to by "textStr".
StringCharacterIterator(const UnicodeString &textStr, int32_t textBegin, int32_t textEnd, int32_t textPos)
Create an iterator over the UnicodeString referred to by "textStr".
StringCharacterIterator & operator=(const StringCharacterIterator &that)
Assignment operator.
virtual UBool operator==(const ForwardCharacterIterator &that) const
Returns true if the iterators iterate over the same range of the same string and are pointing at the ...
C++ API: Character Iterator.
A concrete subclass of CharacterIterator that iterates over the characters (code units or code points...
void setText(const UnicodeString &newText)
Sets the iterator to iterate over the provided string.
virtual ~StringCharacterIterator()
Destructor.
virtual UClassID getDynamicClassID(void) const
Return a class ID for this object (not really public)