Scanner

Overview

Location

  • Reference:
    • Go.dll  .NET, .NET Standard 2.0
    • Go.fx  Island
  • Namespace: go.text.scanner
  • Platforms: .NET, .NET Standard 2.0, Island

 

constructor

 

constructor

 

Scanner()

 

init()

 

Sub New()

constructor (Reader, array of Byte, Int64, Int64, Int64, Int64, Int64, Int64, Int64, Buffer, Int64, Int64, rune, Action<Reference<Scanner>, string>, Int64, UInt64, uint64, Func<rune, Int64, Boolean>, Position) .NET, .NET Standard 2.0

 

constructor(asrc: Reader; asrcBuf: array of Byte; asrcPos: Int64; asrcEnd: Int64; asrcBufOffset: Int64; aline: Int64; acolumn: Int64; alastLineLen: Int64; alastCharLen: Int64; atokBuf: Buffer; atokPos: Int64; atokEnd: Int64; ach: rune; aError: Action<Reference<Scanner>, string>; aErrorCount: Int64; aMode: UInt64; aWhitespace: uint64; aIsIdentRune: Func<rune, Int64, Boolean>; aPosition: Position)

 

Scanner(Reader asrc, Byte[] asrcBuf, Int64 asrcPos, Int64 asrcEnd, Int64 asrcBufOffset, Int64 aline, Int64 acolumn, Int64 alastLineLen, Int64 alastCharLen, Buffer atokBuf, Int64 atokPos, Int64 atokEnd, rune ach, Action<Reference<Scanner>, string> aError, Int64 aErrorCount, UInt64 aMode, uint64 aWhitespace, Func<rune, Int64, Boolean> aIsIdentRune, Position aPosition)

 

init(_ asrc: Reader, _ asrcBuf: Byte..., _ asrcPos: Int64, _ asrcEnd: Int64, _ asrcBufOffset: Int64, _ aline: Int64, _ acolumn: Int64, _ alastLineLen: Int64, _ alastCharLen: Int64, _ atokBuf: Buffer, _ atokPos: Int64, _ atokEnd: Int64, _ ach: rune, _ aError: Action<Reference<Scanner>, string>, _ aErrorCount: Int64, _ aMode: UInt64, _ aWhitespace: uint64, _ aIsIdentRune: Func<rune, Int64, Boolean>, _ aPosition: Position)

 

Sub New(asrc As Reader, asrcBuf As Byte(), asrcPos As Int64, asrcEnd As Int64, asrcBufOffset As Int64, aline As Int64, acolumn As Int64, alastLineLen As Int64, alastCharLen As Int64, atokBuf As Buffer, atokPos As Int64, atokEnd As Int64, ach As rune, aError As Action (Of Reference<Scanner>, string), aErrorCount As Int64, aMode As UInt64, aWhitespace As uint64, aIsIdentRune As Func (Of rune, Int64, Boolean), aPosition As Position)

Parameters:

  • asrc:
  • asrcBuf:
  • asrcPos:
  • asrcEnd:
  • asrcBufOffset:
  • aline:
  • acolumn:
  • alastLineLen:
  • alastCharLen:
  • atokBuf:
  • atokPos:
  • atokEnd:
  • ach:
  • aError:
  • aErrorCount:
  • aMode:
  • aWhitespace:
  • aIsIdentRune:
  • aPosition:

constructor (Reader, array of byte, int, int, int, int, int, int, int, Buffer, int, int, rune, Action<Reference<Scanner>, string>, int, uint, uint64, Func<rune, int, bool>, Position) Island

 

constructor(asrc: Reader; asrcBuf: array of byte; asrcPos: int; asrcEnd: int; asrcBufOffset: int; aline: int; acolumn: int; alastLineLen: int; alastCharLen: int; atokBuf: Buffer; atokPos: int; atokEnd: int; ach: rune; aError: Action<Reference<Scanner>, string>; aErrorCount: int; aMode: uint; aWhitespace: uint64; aIsIdentRune: Func<rune, int, bool>; aPosition: Position)

 

Scanner(Reader asrc, byte[] asrcBuf, int asrcPos, int asrcEnd, int asrcBufOffset, int aline, int acolumn, int alastLineLen, int alastCharLen, Buffer atokBuf, int atokPos, int atokEnd, rune ach, Action<Reference<Scanner>, string> aError, int aErrorCount, uint aMode, uint64 aWhitespace, Func<rune, int, bool> aIsIdentRune, Position aPosition)

 

init(_ asrc: Reader, _ asrcBuf: byte..., _ asrcPos: int, _ asrcEnd: int, _ asrcBufOffset: int, _ aline: int, _ acolumn: int, _ alastLineLen: int, _ alastCharLen: int, _ atokBuf: Buffer, _ atokPos: int, _ atokEnd: int, _ ach: rune, _ aError: Action<Reference<Scanner>, string>, _ aErrorCount: int, _ aMode: uint, _ aWhitespace: uint64, _ aIsIdentRune: Func<rune, int, bool>, _ aPosition: Position)

 

Sub New(asrc As Reader, asrcBuf As byte(), asrcPos As int, asrcEnd As int, asrcBufOffset As int, aline As int, acolumn As int, alastLineLen As int, alastCharLen As int, atokBuf As Buffer, atokPos As int, atokEnd As int, ach As rune, aError As Action (Of Reference<Scanner>, string), aErrorCount As int, aMode As uint, aWhitespace As uint64, aIsIdentRune As Func (Of rune, int, bool), aPosition As Position)

Parameters:

  • asrc:
  • asrcBuf:
  • asrcPos:
  • asrcEnd:
  • asrcBufOffset:
  • aline:
  • acolumn:
  • alastLineLen:
  • alastCharLen:
  • atokBuf:
  • atokPos:
  • atokEnd:
  • ach:
  • aError:
  • aErrorCount:
  • aMode:
  • aWhitespace:
  • aIsIdentRune:
  • aPosition:

constructor (Scanner)

 

constructor(value: Scanner)

 

Scanner(Scanner value)

 

init(_ value: Scanner)

 

Sub New(value As Scanner)

Parameters:

  • value:

Column

 

property Column: int read write;

 

int Column { get; set; }

 

var Column: int { get{} set{} }

 

Column int

 

Property Column() As int

Error

 

var Error: Action<Reference<Scanner>, string>;

 

Action<Reference<Scanner>, string> Error

 

var Error: Action<Reference<Scanner>, string>

 

Error Action<Reference<Scanner>, string>

 

FIELD Error() As Action (Of Reference<Scanner>, string)

ErrorCount

 

var ErrorCount: int;

 

int ErrorCount

 

var ErrorCount: int

 

ErrorCount int

 

FIELD ErrorCount() As int

Filename

 

property Filename: string read write;

 

string Filename { get; set; }

 

var Filename: string { get{} set{} }

 

Filename string

 

Property Filename() As string

Init

 

method Init(src: Reader): Reference<Scanner>

 

Reference<Scanner> Init(Reader src)

 

func Init(_ src: Reader) -> Reference<Scanner>

 

func Init(src Reader) Reference<Scanner>

 

Function Init(src As Reader) As Reference<Scanner>

Parameters:

  • src:

IsIdentRune

 

var IsIdentRune: Func<rune, int, bool>;

 

Func<rune, int, bool> IsIdentRune

 

var IsIdentRune: Func<rune, int, bool>

 

IsIdentRune Func<rune, int, bool>

 

FIELD IsIdentRune() As Func (Of rune, int, bool)

IsValid

 

method IsValid: bool

 

bool IsValid()

 

func IsValid() -> bool

 

func IsValid() bool

 

Function IsValid() As bool

Line

 

property Line: int read write;

 

int Line { get; set; }

 

var Line: int { get{} set{} }

 

Line int

 

Property Line() As int

Mode

 

var Mode: uint;

 

uint Mode

 

var Mode: uint

 

Mode uint

 

FIELD Mode() As uint

Next

 

method Next: rune

 

rune Next()

 

func Next() -> rune

 

func Next() rune

 

Function Next() As rune

Offset

 

property Offset: int read write;

 

int Offset { get; set; }

 

var Offset: int { get{} set{} }

 

Offset int

 

Property Offset() As int

Peek

 

method Peek: rune

 

rune Peek()

 

func Peek() -> rune

 

func Peek() rune

 

Function Peek() As rune

Pos

 

method Pos: Position

 

Position Pos()

 

func Pos() -> Position

 

func Pos() Position

 

Function Pos() As Position

Position

 

var Position: Position;

 

Position Position

 

var Position: Position

 

Position Position

 

FIELD Position() As Position

Scan

 

method Scan: rune

 

rune Scan()

 

func Scan() -> rune

 

func Scan() rune

 

Function Scan() As rune

String

 

method String: string

 

string String()

 

func String() -> string

 

func String() string

 

Function String() As string

TokenText

 

method TokenText: string

 

string TokenText()

 

func TokenText() -> string

 

func TokenText() string

 

Function TokenText() As string

Whitespace

 

var Whitespace: uint64;

 

uint64 Whitespace

 

var Whitespace: uint64

 

Whitespace uint64

 

FIELD Whitespace() As uint64

 

Error

 

var Error: Action<Reference<Scanner>, string>;

 

Action<Reference<Scanner>, string> Error

 

var Error: Action<Reference<Scanner>, string>

 

Error Action<Reference<Scanner>, string>

 

FIELD Error() As Action (Of Reference<Scanner>, string)

ErrorCount

 

var ErrorCount: int;

 

int ErrorCount

 

var ErrorCount: int

 

ErrorCount int

 

FIELD ErrorCount() As int

IsIdentRune

 

var IsIdentRune: Func<rune, int, bool>;

 

Func<rune, int, bool> IsIdentRune

 

var IsIdentRune: Func<rune, int, bool>

 

IsIdentRune Func<rune, int, bool>

 

FIELD IsIdentRune() As Func (Of rune, int, bool)

Mode

 

var Mode: uint;

 

uint Mode

 

var Mode: uint

 

Mode uint

 

FIELD Mode() As uint

Position

 

var Position: Position;

 

Position Position

 

var Position: Position

 

Position Position

 

FIELD Position() As Position

Whitespace

 

var Whitespace: uint64;

 

uint64 Whitespace

 

var Whitespace: uint64

 

Whitespace uint64

 

FIELD Whitespace() As uint64

 

Column

 

property Column: int read write;

 

int Column { get; set; }

 

var Column: int { get{} set{} }

 

Column int

 

Property Column() As int

Filename

 

property Filename: string read write;

 

string Filename { get; set; }

 

var Filename: string { get{} set{} }

 

Filename string

 

Property Filename() As string

Line

 

property Line: int read write;

 

int Line { get; set; }

 

var Line: int { get{} set{} }

 

Line int

 

Property Line() As int

Offset

 

property Offset: int read write;

 

int Offset { get; set; }

 

var Offset: int { get{} set{} }

 

Offset int

 

Property Offset() As int

 

constructor

 

constructor

 

Scanner()

 

init()

 

Sub New()

constructor (Reader, array of Byte, Int64, Int64, Int64, Int64, Int64, Int64, Int64, Buffer, Int64, Int64, rune, Action<Reference<Scanner>, string>, Int64, UInt64, uint64, Func<rune, Int64, Boolean>, Position) .NET, .NET Standard 2.0

 

constructor(asrc: Reader; asrcBuf: array of Byte; asrcPos: Int64; asrcEnd: Int64; asrcBufOffset: Int64; aline: Int64; acolumn: Int64; alastLineLen: Int64; alastCharLen: Int64; atokBuf: Buffer; atokPos: Int64; atokEnd: Int64; ach: rune; aError: Action<Reference<Scanner>, string>; aErrorCount: Int64; aMode: UInt64; aWhitespace: uint64; aIsIdentRune: Func<rune, Int64, Boolean>; aPosition: Position)

 

Scanner(Reader asrc, Byte[] asrcBuf, Int64 asrcPos, Int64 asrcEnd, Int64 asrcBufOffset, Int64 aline, Int64 acolumn, Int64 alastLineLen, Int64 alastCharLen, Buffer atokBuf, Int64 atokPos, Int64 atokEnd, rune ach, Action<Reference<Scanner>, string> aError, Int64 aErrorCount, UInt64 aMode, uint64 aWhitespace, Func<rune, Int64, Boolean> aIsIdentRune, Position aPosition)

 

init(_ asrc: Reader, _ asrcBuf: Byte..., _ asrcPos: Int64, _ asrcEnd: Int64, _ asrcBufOffset: Int64, _ aline: Int64, _ acolumn: Int64, _ alastLineLen: Int64, _ alastCharLen: Int64, _ atokBuf: Buffer, _ atokPos: Int64, _ atokEnd: Int64, _ ach: rune, _ aError: Action<Reference<Scanner>, string>, _ aErrorCount: Int64, _ aMode: UInt64, _ aWhitespace: uint64, _ aIsIdentRune: Func<rune, Int64, Boolean>, _ aPosition: Position)

 

Sub New(asrc As Reader, asrcBuf As Byte(), asrcPos As Int64, asrcEnd As Int64, asrcBufOffset As Int64, aline As Int64, acolumn As Int64, alastLineLen As Int64, alastCharLen As Int64, atokBuf As Buffer, atokPos As Int64, atokEnd As Int64, ach As rune, aError As Action (Of Reference<Scanner>, string), aErrorCount As Int64, aMode As UInt64, aWhitespace As uint64, aIsIdentRune As Func (Of rune, Int64, Boolean), aPosition As Position)

Parameters:

  • asrc:
  • asrcBuf:
  • asrcPos:
  • asrcEnd:
  • asrcBufOffset:
  • aline:
  • acolumn:
  • alastLineLen:
  • alastCharLen:
  • atokBuf:
  • atokPos:
  • atokEnd:
  • ach:
  • aError:
  • aErrorCount:
  • aMode:
  • aWhitespace:
  • aIsIdentRune:
  • aPosition:

constructor (Reader, array of byte, int, int, int, int, int, int, int, Buffer, int, int, rune, Action<Reference<Scanner>, string>, int, uint, uint64, Func<rune, int, bool>, Position) Island

 

constructor(asrc: Reader; asrcBuf: array of byte; asrcPos: int; asrcEnd: int; asrcBufOffset: int; aline: int; acolumn: int; alastLineLen: int; alastCharLen: int; atokBuf: Buffer; atokPos: int; atokEnd: int; ach: rune; aError: Action<Reference<Scanner>, string>; aErrorCount: int; aMode: uint; aWhitespace: uint64; aIsIdentRune: Func<rune, int, bool>; aPosition: Position)

 

Scanner(Reader asrc, byte[] asrcBuf, int asrcPos, int asrcEnd, int asrcBufOffset, int aline, int acolumn, int alastLineLen, int alastCharLen, Buffer atokBuf, int atokPos, int atokEnd, rune ach, Action<Reference<Scanner>, string> aError, int aErrorCount, uint aMode, uint64 aWhitespace, Func<rune, int, bool> aIsIdentRune, Position aPosition)

 

init(_ asrc: Reader, _ asrcBuf: byte..., _ asrcPos: int, _ asrcEnd: int, _ asrcBufOffset: int, _ aline: int, _ acolumn: int, _ alastLineLen: int, _ alastCharLen: int, _ atokBuf: Buffer, _ atokPos: int, _ atokEnd: int, _ ach: rune, _ aError: Action<Reference<Scanner>, string>, _ aErrorCount: int, _ aMode: uint, _ aWhitespace: uint64, _ aIsIdentRune: Func<rune, int, bool>, _ aPosition: Position)

 

Sub New(asrc As Reader, asrcBuf As byte(), asrcPos As int, asrcEnd As int, asrcBufOffset As int, aline As int, acolumn As int, alastLineLen As int, alastCharLen As int, atokBuf As Buffer, atokPos As int, atokEnd As int, ach As rune, aError As Action (Of Reference<Scanner>, string), aErrorCount As int, aMode As uint, aWhitespace As uint64, aIsIdentRune As Func (Of rune, int, bool), aPosition As Position)

Parameters:

  • asrc:
  • asrcBuf:
  • asrcPos:
  • asrcEnd:
  • asrcBufOffset:
  • aline:
  • acolumn:
  • alastLineLen:
  • alastCharLen:
  • atokBuf:
  • atokPos:
  • atokEnd:
  • ach:
  • aError:
  • aErrorCount:
  • aMode:
  • aWhitespace:
  • aIsIdentRune:
  • aPosition:

constructor (Scanner)

 

constructor(value: Scanner)

 

Scanner(Scanner value)

 

init(_ value: Scanner)

 

Sub New(value As Scanner)

Parameters:

  • value:

IsValid

 

method IsValid: bool

 

bool IsValid()

 

func IsValid() -> bool

 

func IsValid() bool

 

Function IsValid() As bool

String

 

method String: string

 

string String()

 

func String() -> string

 

func String() string

 

Function String() As string

Init

 

method Init(src: Reader): Reference<Scanner>

 

Reference<Scanner> Init(Reader src)

 

func Init(_ src: Reader) -> Reference<Scanner>

 

func Init(src Reader) Reference<Scanner>

 

Function Init(src As Reader) As Reference<Scanner>

Parameters:

  • src:

Next

 

method Next: rune

 

rune Next()

 

func Next() -> rune

 

func Next() rune

 

Function Next() As rune

Peek

 

method Peek: rune

 

rune Peek()

 

func Peek() -> rune

 

func Peek() rune

 

Function Peek() As rune

Pos

 

method Pos: Position

 

Position Pos()

 

func Pos() -> Position

 

func Pos() Position

 

Function Pos() As Position

Scan

 

method Scan: rune

 

rune Scan()

 

func Scan() -> rune

 

func Scan() rune

 

Function Scan() As rune

TokenText

 

method TokenText: string

 

string TokenText()

 

func TokenText() -> string

 

func TokenText() string

 

Function TokenText() As string