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.


The biggest plugin in space...