Classe JSONTokener

Unit

Declaração

type JSONTokener = class(TZAbstractObject)

Descrição

Responsável por auxiliar na análise Léxica de uma string que representa um JSON.

*

Hierarquia

Visão Geral

Métodos

Public constructor create(s: string) ;
Public procedure back();
Public class function dehexchar(c : char) :integer;
Public function more:boolean;
Public function next() : char; overload;
Public function next(c:char ) : char; overload;
Public function next(n:integer) : string; overload;
Public function nextClean() : char;
Public function nextString(quote : char) : string;
Public function nextTo(d : char) : string; overload;
Public function nextTo(delimiters : string) : char; overload;
Public function nextValue() : TZAbstractObject ;
Public procedure skipPast(_to : string ) ;
Public function skipTo(_to : char ): char;
Public function syntaxError(_message : string) : ParseException;
Public function toString: string; override;
Public function unescape(s : string): string;

Descrição

Métodos

Public constructor create(s: string) ;

* Construct a JSONTokener from a string.

Parâmetros
s
A source string.
Public procedure back();

* Back up one character. This provides a sort of lookahead capability, so that you can test for a digit or letter before attempting to parse the next number or identifier.

Public class function dehexchar(c : char) :integer;

* Get the hex value of a character (base16).

Parâmetros
c
A character between '0' and '9' or between 'A' and 'F' or between 'a' and 'f'.
Retorno

An int between 0 and 15, or -1 if c was not a hex digit.

Public function more:boolean;
 
Public function next() : char; overload;
 
Public function next(c:char ) : char; overload;
 
Public function next(n:integer) : string; overload;
 
Public function nextClean() : char;
 
Public function nextString(quote : char) : string;
 
Public function nextTo(d : char) : string; overload;
 
Public function nextTo(delimiters : string) : char; overload;
 
Public function nextValue() : TZAbstractObject ;
 
Public procedure skipPast(_to : string ) ;
 
Public function skipTo(_to : char ): char;
 
Public function syntaxError(_message : string) : ParseException;
 
Public function toString: string; override;
 
Public function unescape(s : string): string;
 

Gerado por PasDoc 0.16.0.