Logo Search packages:      
Sourcecode: icu version File versions

ParsePosition Class Reference

#include <parsepos.h>

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.

Version:
1.3 10/30/97
Author:
Mark Davis, Helena Shih
See also:
java.text.Format

Definition at line 39 of file parsepos.h.


Public Member Functions

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)
 ~ParsePosition ()

Private Attributes

int32_t errorIndex
int32_t index

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

Generated by  Doxygen 1.6.0   Back to index