Logo Search packages:      
Sourcecode: icu version File versions  Download package

UCharCharacterIterator Class Reference

#include <uchriter.h>

Inheritance diagram for UCharCharacterIterator:

CharacterIterator ForwardCharacterIterator UObject UMemory StringCharacterIterator

List of all members.

Detailed Description

A concrete subclass of CharacterIterator that iterates over the characters (code units or code points) in a UChar array. It's possible not only to create an iterator that iterates over an entire UChar array, but also to create one that iterates over only a subrange of a UChar array (iterators over different subranges of the same UChar array don't compare equal).
See also:

ForwardCharacterIterator ICU 2.0

Definition at line 33 of file uchriter.h.

Public Types

enum  { DONE = 0xffff }
enum  EOrigin { kStart, kCurrent, kEnd }

Public Member Functions

virtual CharacterIteratorclone (void) const
virtual UChar current (void) const
virtual UChar32 current32 (void) const
int32_t endIndex (void) const
virtual UChar first (void)
virtual UChar32 first32 (void)
virtual UChar32 first32PostInc (void)
virtual UChar firstPostInc (void)
virtual UClassID getDynamicClassID (void) const
int32_t getIndex (void) const
int32_t getLength () const
virtual void getText (UnicodeString &result)
virtual int32_t hashCode (void) const
virtual UBool hasNext ()
virtual UBool hasPrevious ()
virtual UChar last (void)
virtual UChar32 last32 (void)
virtual int32_t move (int32_t delta, EOrigin origin)
virtual int32_t move32 (int32_t delta, EOrigin origin)
virtual UChar next (void)
virtual UChar32 next32 (void)
virtual UChar32 next32PostInc (void)
virtual UChar nextPostInc (void)
UBool operator!= (const ForwardCharacterIterator &that) const
UCharCharacterIteratoroperator= (const UCharCharacterIterator &that)
virtual UBool operator== (const ForwardCharacterIterator &that) const
virtual UChar previous (void)
virtual UChar32 previous32 (void)
virtual UChar setIndex (int32_t position)
virtual UChar32 setIndex32 (int32_t position)
void setText (const UChar *newText, int32_t newTextLength)
int32_t setToEnd ()
int32_t setToStart ()
int32_t startIndex (void) const
 UCharCharacterIterator (const UCharCharacterIterator &that)
 UCharCharacterIterator (const UChar *textPtr, int32_t length, int32_t textBegin, int32_t textEnd, int32_t position)
 UCharCharacterIterator (const UChar *textPtr, int32_t length, int32_t position)
 UCharCharacterIterator (const UChar *textPtr, int32_t length)
virtual ~UCharCharacterIterator ()

Static Public Member Functions

static UClassID U_EXPORT2 getStaticClassID (void)
static void U_EXPORT2 operator delete (void *, void *) U_NO_THROW
static void U_EXPORT2 operator delete (void *p) U_NO_THROW
static void U_EXPORT2 operator delete[] (void *p) U_NO_THROW
static void *U_EXPORT2 operator new (size_t, void *ptr) U_NO_THROW
static void *U_EXPORT2 operator new (size_t size) U_NO_THROW
static void *U_EXPORT2 operator new[] (size_t size) U_NO_THROW

Protected Member Functions

 UCharCharacterIterator ()

Protected Attributes

int32_t begin
int32_t end
int32_t pos
const UChar * text
int32_t textLength

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index