PCRE2MatchContextMBS methods

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

Back to PCRE2MatchContextMBS class.

PCRE2MatchContextMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Regular Expressions MBS RegEx Plugin 22.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates a match context.

PCRE2MatchContextMBS.Copy as PCRE2MatchContextMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Regular Expressions MBS RegEx Plugin 22.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates a copy of the match context.

PCRE2MatchContextMBS.SetStackSize(StartSize as UInt32, MaxSize as UInt32)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Regular Expressions MBS RegEx Plugin 22.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates and sets a stack for use by the code compiled by the JIT compiler.
Example

dim matchContext as PCRE2MatchContextMBS

matchContext = New PCRE2MatchContextMBS
matchContext.SetStackSize 1024*1024, 8*1024*1024
matchContext.HeapLimit = 1024 * 1024 * 16

// later pass to Match() functions

The two arguments are a starting size for the stack, and a maximum size to which it is allowed to grow.
A maximum stack size of 512KiB to 1MiB should be more than enough for any pattern.

If not set, an internal 32KiB block on the machine stack is used.

The items on this page are in the following plugins: MBS RegEx Plugin.


💬 Ask a question or report a problem