Product Documentation
Cadence SKILL Language Reference
Product Version IC23.1, November 2023

pcreSetRecursionLimit

pcreSetRecursionLimit(
x_maxDepth
)
=> t

Description

Sets the maximum recursion depth for SKILL/PCRE match algorithms. The maximum recursion depth needs to be set for systems that have a low stack depth, in order to prevent crashes while using SKILL PCRE functions.

Arguments

x_maxDepth

Maximum recursion depth for the PCRE match algorithms.

Value Returned

t

The maximum recursion depth for the PCRE match algorithms is set.

Examples

pcreSetRecursionLimit(1000)
=> t
pt = pcreCompile("sam | Bill| jack | alan| bob")
=> pcreobj@0x1df55020
pcreExecute(pt "myString")
=> nil

Related Topics

String Functions

pcreGetRecursionLimit


Return to top
 ⠀
X