ICU 62.1 62.1
schriter.h
Go to the documentation of this file.
1// © 2016 and later: Unicode, Inc. and others.
2// License & terms of use: http://www.unicode.org/copyright.html
3/*
4******************************************************************************
5*
6* Copyright (C) 1998-2005, International Business Machines
7* Corporation and others. All Rights Reserved.
8*
9******************************************************************************
10*
11* File schriter.h
12*
13* Modification History:
14*
15* Date Name Description
16* 05/05/99 stephen Cleaned up.
17******************************************************************************
18*/
19
20#ifndef SCHRITER_H
21#define SCHRITER_H
22
23#include "unicode/utypes.h"
24#include "unicode/chariter.h"
25#include "unicode/uchriter.h"
26
187
189#endif
C++ API: Character Iterator.
Abstract class that defines an API for iteration on text objects.
Definition chariter.h:358
Abstract class that defines an API for forward-only iteration on text objects.
Definition chariter.h:91
"Smart pointer" base class; do not use directly: use LocalPointer etc.
A concrete subclass of CharacterIterator that iterates over the characters (code units or code points...
Definition schriter.h:45
virtual ~StringCharacterIterator()
Destructor.
StringCharacterIterator(const UnicodeString &textStr, int32_t textPos)
Create an iterator over the UnicodeString referred to by "textStr".
virtual void getText(UnicodeString &result)
Copies the UnicodeString under iteration into the UnicodeString referred to by "result".
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".
void setText(const UnicodeString &newText)
Sets the iterator to iterate over the provided string.
void setText(const char16_t *newText, int32_t newTextLength)
Sets the iterator to iterate over the provided string.
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 ...
virtual CharacterIterator * clone(void) const
Returns a new StringCharacterIterator referring to the same character in the same range of the same s...
UnicodeString text
Copy of the iterated string object.
Definition schriter.h:184
static UClassID getStaticClassID(void)
Return a class ID for this class (not really public)
StringCharacterIterator()
Default constructor, iteration over empty string.
StringCharacterIterator & operator=(const StringCharacterIterator &that)
Assignment operator.
virtual UClassID getDynamicClassID(void) const
Return a class ID for this object (not really public)
StringCharacterIterator(const StringCharacterIterator &that)
Copy constructor.
A concrete subclass of CharacterIterator that iterates over the characters (code units or code points...
Definition uchriter.h:35
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
Definition unistr.h:287
C++ API: char16_t Character Iterator.
int8_t UBool
The ICU boolean type.
Definition umachine.h:236
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
Definition uobject.h:93
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.
Definition utypes.h:359
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
Definition uversion.h:138
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
Definition uversion.h:137