Platforms to show: All Mac Windows Linux Cross-Platform

Back to PCRE2CompilerMBS class.

PCRE2CompilerMBS.AllocationBytes as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared property Regular Expressions MBS RegEx Plugin 22.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries size of all memory allocations summed up.

Only valid if MonitorAllocations is true.
(Read only property)

PCRE2CompilerMBS.AllocationCount as Int64

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared property Regular Expressions MBS RegEx Plugin 22.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries number of allocations done.

Only valid if MonitorAllocations is true.
(Read only property)

PCRE2CompilerMBS.CompiledWidths as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared property Regular Expressions MBS RegEx Plugin 22.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Which of 8/16/32 support was compiled.

(Read only property)

PCRE2CompilerMBS.DefaultBSR as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared property Regular Expressions MBS RegEx Plugin 22.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Indicates what \R matches by default.

Either kBSRUnicode or kBSRanyCRLF.
(Read only property)

PCRE2CompilerMBS.DefaultDepthLimit as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared property Regular Expressions MBS RegEx Plugin 22.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Default backtracking depth limit.

(Read only property)

PCRE2CompilerMBS.DefaultHeapLimit as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared property Regular Expressions MBS RegEx Plugin 22.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Default heap memory limit.

(Read only property)

PCRE2CompilerMBS.DefaultMatchLimit as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared property Regular Expressions MBS RegEx Plugin 22.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Default internal resource limit.

(Read only property)

PCRE2CompilerMBS.DefaultNewLine as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared property Regular Expressions MBS RegEx Plugin 22.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Code for the default newline sequence.

See kNewLine* constants.
(Read only property)

PCRE2CompilerMBS.DefaultParensLimit as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared property Regular Expressions MBS RegEx Plugin 22.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Default parentheses nesting limit.

(Read only property)

PCRE2CompilerMBS.HasJIT as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared property Regular Expressions MBS RegEx Plugin 22.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Availability of just-in-time compiler support.

(Read only property)

PCRE2CompilerMBS.HasUnicode as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared property Regular Expressions MBS RegEx Plugin 22.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Availability of Unicode support.

(Read only property)

PCRE2CompilerMBS.JITTarget as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared property Regular Expressions MBS RegEx Plugin 22.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Information (a string) about the target architecture for the JIT compiler

(Read only property)

PCRE2CompilerMBS.LinkSize as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared property Regular Expressions MBS RegEx Plugin 22.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Configured internal link size (2, 3, 4)

(Read only property)

PCRE2CompilerMBS.MonitorAllocations as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared property Regular Expressions MBS RegEx Plugin 22.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether to monitor allocations.
Example

PCRE2CompilerMBS.MonitorAllocations = True

Dim a1 As Int64 = PCRE2CompilerMBS.AllocationCount
Dim b1 As Int64 = PCRE2CompilerMBS.AllocationBytes

Dim Compiler As New PCRE2CompilerMBS

Dim a2 As Int64 = PCRE2CompilerMBS.AllocationCount
Dim b2 As Int64 = PCRE2CompilerMBS.AllocationBytes

// find numbers
compiler.Pattern = "(\d+)([$€£]?)"

Dim code As PCRE2CodeMBS = Compiler.Compile
Dim a3 As Int64 = PCRE2CompilerMBS.AllocationCount
Dim b3 As Int64 = PCRE2CompilerMBS.AllocationBytes

// prepare reuable match object
Dim Match As New PCRE2MatchDataMBS(code)

Dim a4 As Int64 = PCRE2CompilerMBS.AllocationCount
Dim b4 As Int64 = PCRE2CompilerMBS.AllocationBytes

match = Nil

Dim a5 As Int64 = PCRE2CompilerMBS.AllocationCount
Dim b5 As Int64 = PCRE2CompilerMBS.AllocationBytes

code = Nil

Dim a6 As Int64 = PCRE2CompilerMBS.AllocationCount
Dim b6 As Int64 = PCRE2CompilerMBS.AllocationBytes

compiler = Nil

Dim a7 As Int64 = PCRE2CompilerMBS.AllocationCount
Dim b7 As Int64 = PCRE2CompilerMBS.AllocationBytes
// should be both zero on the end

Break // see debugger

Please turn on if you look for memory leaks with PCRE2.
Otherwise keep off for higher performance.

Set to true, then do a few things, cleanup and check if AllocationBytes is combing back to zero.
(Read and Write property)

PCRE2CompilerMBS.NeverBackslashC as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared property Regular Expressions MBS RegEx Plugin 22.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether or not \C is disabled.

(Read only property)

See also:

PCRE2CompilerMBS.PCRE2Version as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared property Regular Expressions MBS RegEx Plugin 22.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The PCRE2 version.

(Read only property)

PCRE2CompilerMBS.UnicodeVersion as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared property Regular Expressions MBS RegEx Plugin 22.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The Unicode version.

(Read only property)

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


The biggest plugin in space...