std.regex.internal.ir
iface MatcherFactory
Types 22
aliasBasicElementOf(Range) = Unqual!(ElementEncodingType!Range)
aliasTrie = CodepointSetTrie!(13, 8)
aliasmakeTrie = codepointSetTrie!(13, 8)
enumRegexOption : uint
global = 0x1
casefold = 0x2
freeform = 0x4
nonunicode = 0x8
multiline = 0x10
singleline = 0x20
aliasRegexOptionNames = AliasSeq!('g', 'i', 'x', 'U', 'm', 's')
enumRegexInfo : uint
oneShot = 0x80
enumIR : uint
Char = 0b1_00000_00
Any = 0b1_00001_00
CodepointSet = 0b1_00010_00
Trie = 0b1_00011_00
OrChar = 0b1_00100_00
Nop = 0b1_00101_00
End = 0b1_00110_00
Bol = 0b1_00111_00
Eol = 0b1_01000_00
Wordboundary = 0b1_01001_00
Notwordboundary = 0b1_01010_00
Backref = 0b1_01011_00
GroupStart = 0b1_01100_00
GroupEnd = 0b1_01101_00
Option = 0b1_01110_00
GotoEndOr = 0b1_01111_00
Bof = 0b1_10000_00
Eof = 0b1_10001_00
OrStart = 0b1_00000_01
OrEnd = 0b1_00000_10
InfiniteStart = 0b1_00001_01
InfiniteEnd = 0b1_00001_10
InfiniteQStart = 0b1_00010_01
InfiniteQEnd = 0b1_00010_10
InfiniteBloomStart = 0b1_00011_01
InfiniteBloomEnd = 0b1_00011_10
RepeatStart = 0b1_00100_01
RepeatEnd = 0b1_00100_10
RepeatQStart = 0b1_00101_01
RepeatQEnd = 0b1_00101_10
LookaheadStart = 0b1_00110_01
LookaheadEnd = 0b1_00110_10
NeglookaheadStart = 0b1_00111_01
NeglookaheadEnd = 0b1_00111_10
LookbehindStart = 0b1_01000_01
LookbehindEnd = 0b1_01000_10
NeglookbehindStart = 0b1_01001_01
NeglookbehindEnd = 0b1_01001_10
structBytecode
Fields
uint raw2 + 4 maxSequence1 << 22 maxData1 << 31 maxRawMethods
void data()(uint val) @propertyvoid setBackrefence()void setLocalRef()uint indexOfPair(uint pc) conststructNamedGroup
Fields
string nameuint groupstructGroup(DataIndex)
interfaceMatcherFactory(Char)
classGenericFactory(alias EngineType, Char) : MatcherFactory!Char
Fields
(__traits(classInstanceSize, EngineType!Char) + size_t.sizeof - 1) & ~(size_t.sizeof - 1) classSizeMethods
classRuntimeFactory(alias EngineType, Char) : GenericFactory!(EngineType, Char)
classCtfeFactory(alias EngineType, Char, alias func) : GenericFactory!(EngineType, Char)
classMatcher(Char)
structRegex(Char)
Regex object holds regular expression pattern in compiled form. Instances of this object are constructed via calls to regex. This is an intended form for caching and storage of frequently used regular expressions.
Fields
CodepointSet[] charsetsBytecode[] irconst(NamedGroup)[] dictuint ngroupuint maxCounterDepthuint hotspotTableSizeuint threadCountuint flagsconst(CharMatcher)[] matchersconst(BitTable)[] filtersuint[] backrefedKickstart!Char kickstartMatcherFactory!Char factoryimmutable(Char)[] patternMethods
@safe @property auto namedCaptures()`namedCaptures` returns a range of all named captures in a given regular expression.uint isBackref(uint n)void checkIfOneShot()string toString()() conststructInput(Char) if (is(Char : dchar))
structBackLooperImpl(Input)
classRegexException : Exception
Exception object thrown in case of errors during regex compilation.
structBitTable
structCharMatcher
structSmallFixedArray(T, uint SMALL = 3) if (!hasElaborateDestructor!T)
Fields
size_t _sizeMasksize_t(1) <<(8 * size_t.sizeof - 1) BIG_MASK~ BIG_MASK SIZE_MASKMethods
bool opEquals(SmallFixedArray a)size_t toHash() const@trusted ref opAssign(SmallFixedArray arr)void mutate(scope void delegate(T[]) pure filler)Constructors
this(size_t size)Destructors
Nested Templates
PayloadFunctions 18
fn
auto assumePureFunction(T)(T t) if (isFunctionPointer!T)fn
bool endOfLine()(dchar front, bool seenCr)fn
bool startOfLine()(dchar back, bool seenNl)Variables 5
enumvar
privateUseStart = '\U000F0000'enumvar
maxCharsetUsed = 6enumvar
maxCachedMatchers = 8var
CharMatcher[CodepointSet] matcherCacheprivate enumvar
NEL = '\u0085'Templates 3
tmplIRL(IR code)
tmpldefaultFactory(Char)
Functions
MatcherFactory!Char defaultFactory(const ref Regex!Char re)
tmplBackLooper(E)