1 // © 2016 and later: Unicode, Inc. and others. 2 // License & terms of use: http://www.unicode.org/copyright.html 4 ****************************************************************************** 6 * Copyright (C) 1998-2005, International Business Machines 7 * Corporation and others. All Rights Reserved. 9 ****************************************************************************** 13 * Modification History: 15 * Date Name Description 16 * 05/05/99 stephen Cleaned up. 17 ****************************************************************************** 25 #if U_SHOW_CPLUSPLUS_API 185 #endif/* U_SHOW_CPLUSPLUS_API */ C++ API: Character Iterator.
Abstract class that defines an API for forward-only iteration on text objects.
A concrete subclass of CharacterIterator that iterates over the characters (code units or code points...
virtual ~StringCharacterIterator()
Destructor.
StringCharacterIterator(const UnicodeString &textStr, int32_t textPos)
Create an iterator over the UnicodeString referred to by "textStr".
StringCharacterIterator(const UnicodeString &textStr)
Create an iterator over the UnicodeString referred to by "textStr".
virtual StringCharacterIterator * clone() const override
Returns a new StringCharacterIterator referring to the same character in the same range of the same s...
virtual bool operator==(const ForwardCharacterIterator &that) const override
Returns true if the iterators iterate over the same range of the same string and are pointing at the ...
StringCharacterIterator(const UnicodeString &textStr, int32_t textBegin, int32_t textEnd, int32_t textPos)
Create an iterator over the UnicodeString referred to by "textStr".
void setText(const UnicodeString &newText)
Sets the iterator to iterate over the provided string.
static UClassID getStaticClassID()
Return a class ID for this class (not really public)
UnicodeString text
Copy of the iterated string object.
StringCharacterIterator()
Default constructor, iteration over empty string.
virtual UClassID getDynamicClassID() const override
Return a class ID for this object (not really public)
virtual void getText(UnicodeString &result) override
Copies the UnicodeString under iteration into the UnicodeString referred to by "result".
StringCharacterIterator & operator=(const StringCharacterIterator &that)
Assignment operator.
StringCharacterIterator(const StringCharacterIterator &that)
Copy constructor.
A concrete subclass of CharacterIterator that iterates over the characters (code units or code points...
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
C++ API: char16_t Character Iterator.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
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.