class · System.Text

RegexParser

public class System.Text.RegexParser : System.Any

A pattern's text to its nodes.

Tipo
class
Espacio de nombres
System.Text
Ensamblado
System.Core
Acceso
public, final
Archivo fuente
Regex.ant

Herencia

Clases base
Any RegexParser

Constructores

constructor RegexParser(pattern: u8[])
#

Propiedades

property Groups: i32
#

read-only

Métodos

static method IsWord(c: u8) -> bool
#

static

Whether a unit is a word character (\w: a letter, a digit or _).

method Parse() -> System.Text.RegexNode
#

Miembros privados e internos (14)

field p: u8[]
#

private

field at: i32
#

private

field groups: i32
#

private

method Fail(what: System.String<u8>) -> System.Text.RegexNode
#

private

method ParseAlt() -> System.Text.RegexNode
#

private

method ParseSeq() -> System.Text.RegexNode
#

private

method ParseAtom() -> System.Text.RegexNode
#

private

method Expect(c: u32) -> void
#

private

method ParseEscape() -> System.Text.RegexNode
#

private

After \: a class escape (\d \w \s and the negations), a word boundary (\b \B), or a character.

method EscapedUnit(c: u32) -> u32
#

private

The unit an escaped character stands for: \n \t \r \f \v, or a character that is no letter or digit (itself); any other escape is an error (\1, \x41, \u0041 and the like are not supported).

static method FillEscape(table: u8[], c: u32) -> void
#

private static

method ParseClass() -> System.Text.RegexNode
#

private

method ParseQuantifier(atom: System.Text.RegexNode) -> System.Text.RegexNode
#

private

method Digits() -> i32
#

private

A decimal number at the position, or -1 when there is none.

Miembros heredados (5)

Código fuente

RegexParser en Larva HIR, descompilado a partir de su Larva HIR.

System.Text.RegexParser.hir
// A pattern's text to its nodes.
public class System.Text.RegexParser : System.Any
{
    field p: u8[]
    field at: i32
    field groups: i32
    method Fail(what: System.String<u8>) -> System.Text.RegexNode
    method ParseAlt() -> System.Text.RegexNode
    method ParseSeq() -> System.Text.RegexNode
    method ParseAtom() -> System.Text.RegexNode
    method Expect(c: u32) -> void
    // After `\`: a class escape (`\d` `\w` `\s` and the negations), a word boundary (`\b` `\B`), or a character.
    method ParseEscape() -> System.Text.RegexNode
    // The unit an escaped character stands for: `\n \t \r \f \v`, or a character that is no letter or digit
    // (itself); any other escape is an error (`\1`, `\x41`, `\u0041` and the like are not supported).
    method EscapedUnit(c: u32) -> u32
    static method FillEscape(table: u8[], c: u32) -> void
    method ParseClass() -> System.Text.RegexNode
    method ParseQuantifier(atom: System.Text.RegexNode) -> System.Text.RegexNode
    // A decimal number at the position, or -1 when there is none.
    method Digits() -> i32
    constructor RegexParser(pattern: u8[])
    // Whether a unit is a word character (`\w`: a letter, a digit or `_`).
    static method IsWord(c: u8) -> bool
    method Parse() -> System.Text.RegexNode
    property Groups: i32
}
Esc