Skip to main content
Skip table of contents

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
ReturnsName
charCh(...)
intGatherInt(string errorMsg, int maxValue)
Parses a integer from the source and sets the pointer after it.
boolHasNext()
intLength()
intPos()
voidSkip()
Skips the next char.

Details

Summary

@since 22.08.2006

Constructors

ParseState
Source code
public ParseState(string str)
Arguments
TypeNameDescription
stringstrinitializes the parser container

Methods

Length
Source code
public virtual int Length()
Returns

Returns the length of the input.

HasNext
Source code
public virtual bool HasNext()
Returns

Returns whether there are more chars to come.

Ch [1/2]
Source code
public virtual char Ch(int index)
Arguments
TypeNameDescription
intindexindex of char
Returns

Returns char at a certain index.

Ch [2/2]
Source code
public virtual char Ch()
Returns

Returns the current char or 0x0000 if there are no more chars.

Skip
Source code
public virtual void Skip()
Summary

Skips the next char.

Pos
Source code
public virtual int Pos()
Returns

Returns the current position.

GatherInt
Source code
public virtual int GatherInt(string errorMsg, int maxValue)
Arguments
TypeNameDescription
stringerrorMsgError message to put in the exception if no number can be found
intmaxValuethe 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
NameDescription
XmpExceptionThrown if no integer can be found.

Generated with ModularDoc

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.