Lines Matching full:patterns

16 <li><a name="TOC1" href="#SEC1">SAVING AND RE-USING PRECOMPILED PCRE2 PATTERNS</a>
18 <li><a name="TOC3" href="#SEC3">SAVING COMPILED PATTERNS</a>
19 <li><a name="TOC4" href="#SEC4">RE-USING PRECOMPILED PATTERNS</a>
23 <br><a name="SEC1" href="#TOC1">SAVING AND RE-USING PRECOMPILED PCRE2 PATTERNS</a><br>
42 expression patterns, it may be useful to store them in a precompiled form
46 which the patterns are reloaded must be running the same version of PCRE2, with
48 and PCRE2_SIZE type. For example, patterns compiled on a 32-bit system using
53 Note that "serialization" in PCRE2 does not convert compiled patterns to an
58 be prepared to recompile patterns from their sources, in order to be immune to
63 The facility for saving and restoring compiled patterns is intended for use
72 <br><a name="SEC3" href="#TOC1">SAVING COMPILED PATTERNS</a><br>
74 Before compiled patterns can be saved they must be serialized, which in PCRE2
76 contain any number of compiled patterns, but they must all use the same
86 from a list of compiled patterns. Its first two arguments specify the list,
87 being a pointer to a vector of pointers to compiled patterns, and the length of
93 of serialized patterns, or one of the following negative error codes:
95 PCRE2_ERROR_BADDATA the number of patterns is zero or less
96 PCRE2_ERROR_BADMAGIC mismatch of id bytes in one of the patterns
98 PCRE2_ERROR_MIXEDTABLES the patterns do not all use the same tables
105 Once a set of patterns has been serialized you can save the data in any
106 appropriate manner. Here is sample code that compiles two patterns and writes
129 Serializing a set of patterns leaves the original data untouched, so they can
136 <br><a name="SEC4" href="#TOC1">RE-USING PRECOMPILED PATTERNS</a><br>
138 In order to re-use a set of saved patterns you must first make the serialized
142 compiled patterns are in the serialized data without actually decoding the
143 patterns:
149 the compiled patterns in new memory blocks, setting pointers to them in a
153 management functions for the decoded patterns. If this argument is NULL,
162 If the vector is not large enough for all the patterns in the byte stream, it
164 function is the number of decoded patterns, or one of the following negative
178 Decoded patterns can be used for matching in the usual way, and must be freed
180 race issue if you are using multiple patterns that were decoded from a single
182 tables is used by all the decoded patterns and a reference count is used to
185 to call <b>pcre2_code_free()</b> for these patterns in different threads, you