ParseState
ParseState Internal class
Description
@since 22.08.2006
Diagram
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph iTextSharp.xmp.impl
iTextSharp.xmp.impl.ParseState[[ParseState]]
end
Members
Methods
Public methods
| Returns | Name |
|---|---|
char | Ch(...) |
int | GatherInt(string errorMsg, int maxValue)Parses a integer from the source and sets the pointer after it. |
bool | HasNext() |
int | Length() |
int | Pos() |
void | Skip()Skips the next char. |
Details
Summary
@since 22.08.2006
Constructors
ParseState
Source codepublic ParseState(string str)
Arguments
| Type | Name | Description |
|---|---|---|
string | str | initializes the parser container |
Methods
Length
Source codepublic virtual int Length()
Returns
Returns the length of the input.
HasNext
Source codepublic virtual bool HasNext()
Returns
Returns whether there are more chars to come.
Ch [1/2]
Source codepublic virtual char Ch(int index)
Arguments
| Type | Name | Description |
|---|---|---|
int | index | index of char |
Returns
Returns char at a certain index.
Ch [2/2]
Source codepublic virtual char Ch()
Returns
Returns the current char or 0x0000 if there are no more chars.
Skip
Source codepublic virtual void Skip()
Summary
Skips the next char.
Pos
Source codepublic virtual int Pos()
Returns
Returns the current position.
GatherInt
Source codepublic virtual int GatherInt(string errorMsg, int maxValue)
Arguments
| Type | Name | Description |
|---|---|---|
string | errorMsg | Error message to put in the exception if no number can be found |
int | maxValue | the max value of the number to return |
Summary
Parses a integer from the source and sets the pointer after it.
Returns
Returns the parsed integer.
Exceptions
| Name | Description |
|---|---|
| XmpException | Thrown if no integer can be found. |
Generated with ModularDoc