class · System.Text
RegexParser
public class System.Text.RegexParser : System.Any
A pattern's text to its nodes.
- Kind
- class
- Namespace
- System.Text
- Assembly
- System.Core
- Access
- public, final
- Source file
Regex.ant
Inheritance
- Base classes
-
AnyRegexParser
Constructors
Properties
Methods
Whether a unit is a word character (\w: a letter, a digit or _).
method Parse() -> System.Text.RegexNode
#
Private and internal members (14)
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 ParseEscape() -> System.Text.RegexNode
#
After \: a class escape (\d \w \s and the negations), a word boundary (\b \B), or a character.
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 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.
Inherited members (5)
GetTypemethod from AnyUndescribedmethod from AnyToStringmethod from AnyHashmethod from Anydestroymethod from Any
Source
RegexParser as Larva HIR, decompiled from its Larva 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
}