Regex

Members

Functions

jit
bool jit(uint flags)

If the platform supports JITing, JIT compiles regex.

substitute
string substitute(string subject, string replacement, uint flags)

See man:pcre2api(3) and man:pcre2_substitute(3) for more information.

Static functions

newForMatch
vte.regex.Regex newForMatch(string pattern, ptrdiff_t patternLength, uint flags)

Compiles pattern into a regex for use as a match regex with vte.terminal.Terminal.matchAddRegex or vte.terminal.Terminal.eventCheckRegexSimple.

newForMatchFull
vte.regex.Regex newForMatchFull(string pattern, ptrdiff_t patternLength, uint flags, uint extraFlags, size_t errorOffset)

Compiles pattern into a regex for use as a match regex with vte.terminal.Terminal.matchAddRegex or vte.terminal.Terminal.eventCheckRegexSimple.

newForSearch
vte.regex.Regex newForSearch(string pattern, ptrdiff_t patternLength, uint flags)

Compiles pattern into a regex for use as a search regex with vte.terminal.Terminal.searchSetRegex.

newForSearchFull
vte.regex.Regex newForSearchFull(string pattern, ptrdiff_t patternLength, uint flags, uint extraFlags, size_t errorOffset)

Compiles pattern into a regex for use as a search regex with vte.terminal.Terminal.searchSetRegex.

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.