C# Class MongdioLogic.db.DocumentParser

Afficher le fichier Open project: okku/Mongdio Class Usage Examples

Protected Properties

Свойство Type Description
lastDecode string
lastErrorIndex int

Méthodes publiques

Méthode Description
GetLastErrorIndex ( ) : int

On decoding, this function returns the position at which the parse failed (-1 = no error).

GetLastErrorSnippet ( ) : string

If a decoding error occurred, this function returns a piece of the JSON string at which the error took place. To ease debugging.

LastDecodeSuccessful ( ) : bool

On decoding, this function returns the position at which the parse failed (-1 = no error).

Parse ( string json ) : object

Parses the string json into a value

Méthodes protégées

Méthode Description
EatWhitespace ( char json, int &index ) : void
GetLastIndexOfNumber ( char json, int index ) : int
GetLastIndexOfRegEx ( char json, int index ) : int
LookAhead ( char json, int index ) : int
NextToken ( char json, int &index ) : int
ParseArray ( char json, int &index ) : List
ParseNumber ( char json, int &index ) : object
ParseObject ( char json, int &index ) : Document
ParseString ( char json, int &index, bool allowNonQutedString ) : string
ParseValue ( char json, int &index, bool &success ) : object

Private Methods

Méthode Description
ParseOID ( char json, int &index ) : object
ParseRegEx ( char json, int &index ) : MongoRegex
ParseStringOrDate ( char json, int &index ) : object

Method Details

EatWhitespace() protected méthode

protected EatWhitespace ( char json, int &index ) : void
json char
index int
Résultat void

GetLastErrorIndex() public méthode

On decoding, this function returns the position at which the parse failed (-1 = no error).
public GetLastErrorIndex ( ) : int
Résultat int

GetLastErrorSnippet() public méthode

If a decoding error occurred, this function returns a piece of the JSON string at which the error took place. To ease debugging.
public GetLastErrorSnippet ( ) : string
Résultat string

GetLastIndexOfNumber() protected méthode

protected GetLastIndexOfNumber ( char json, int index ) : int
json char
index int
Résultat int

GetLastIndexOfRegEx() protected méthode

protected GetLastIndexOfRegEx ( char json, int index ) : int
json char
index int
Résultat int

LastDecodeSuccessful() public méthode

On decoding, this function returns the position at which the parse failed (-1 = no error).
public LastDecodeSuccessful ( ) : bool
Résultat bool

LookAhead() protected méthode

protected LookAhead ( char json, int index ) : int
json char
index int
Résultat int

NextToken() protected méthode

protected NextToken ( char json, int &index ) : int
json char
index int
Résultat int

Parse() public méthode

Parses the string json into a value
public Parse ( string json ) : object
json string A JSON string.
Résultat object

ParseArray() protected méthode

protected ParseArray ( char json, int &index ) : List
json char
index int
Résultat List

ParseNumber() protected méthode

protected ParseNumber ( char json, int &index ) : object
json char
index int
Résultat object

ParseObject() protected méthode

protected ParseObject ( char json, int &index ) : Document
json char
index int
Résultat MongoDB.Driver.Document

ParseString() protected méthode

protected ParseString ( char json, int &index, bool allowNonQutedString ) : string
json char
index int
allowNonQutedString bool
Résultat string

ParseValue() protected méthode

protected ParseValue ( char json, int &index, bool &success ) : object
json char
index int
success bool
Résultat object

Property Details

lastDecode protected_oe property

protected string lastDecode
Résultat string

lastErrorIndex protected_oe property

On decoding, this value holds the position at which the parse failed (-1 = no error).
protected int lastErrorIndex
Résultat int