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

ParsePosition Class Reference

#include <parsepos.h>

Inheritance diagram for ParsePosition:

UObject UMemory

List of all members.

Detailed Description

ParsePosition is a simple class used by Format and its subclasses to keep track of the current position during parsing. The parseObject method in the various Format classes requires a ParsePosition object as an argument.

By design, as you parse through a string with different formats, you can use the same ParsePosition, since the index parameter records the current position.

The ParsePosition class is not suitable for subclassing.

1.3 10/30/97
Mark Davis, Helena Shih
See also:

Definition at line 47 of file parsepos.h.

Public Member Functions

ParsePositionclone () const
virtual UClassID getDynamicClassID () const
int32_t getErrorIndex (void) const
int32_t getIndex (void) const
UBool operator!= (const ParsePosition &that) const
ParsePositionoperator= (const ParsePosition &copy)
UBool operator== (const ParsePosition &that) const
 ParsePosition (const ParsePosition &copy)
 ParsePosition (int32_t newIndex)
 ParsePosition ()
void setErrorIndex (int32_t ei)
void setIndex (int32_t index)
virtual ~ParsePosition ()

Static Public Member Functions

static UClassID U_EXPORT2 getStaticClassID ()
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

Private Attributes

int32_t errorIndex
int32_t index

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

Generated by  Doxygen 1.6.0   Back to index