Lines Matching full:patterns
4 .SH "SAVING AND RE-USING PRECOMPILED PCRE2 PATTERNS"
22 expression patterns, it may be useful to store them in a precompiled form
26 which the patterns are reloaded must be running the same version of PCRE2, with
28 and PCRE2_SIZE type. For example, patterns compiled on a 32-bit system using
32 Note that "serialization" in PCRE2 does not convert compiled patterns to an
37 be prepared to recompile patterns from their sources, in order to be immune to
44 The facility for saving and restoring compiled patterns is intended for use
54 .SH "SAVING COMPILED PATTERNS"
57 Before compiled patterns can be saved they must be serialized, which in PCRE2
59 contain any number of compiled patterns, but they must all use the same
73 from a list of compiled patterns. Its first two arguments specify the list,
74 being a pointer to a vector of pointers to compiled patterns, and the length of
80 of serialized patterns, or one of the following negative error codes:
82 PCRE2_ERROR_BADDATA the number of patterns is zero or less
83 PCRE2_ERROR_BADMAGIC mismatch of id bytes in one of the patterns
85 PCRE2_ERROR_MIXEDTABLES the patterns do not all use the same tables
91 Once a set of patterns has been serialized you can save the data in any
92 appropriate manner. Here is sample code that compiles two patterns and writes
114 Serializing a set of patterns leaves the original data untouched, so they can
122 .SH "RE-USING PRECOMPILED PATTERNS"
125 In order to re-use a set of saved patterns you must first make the serialized
129 compiled patterns are in the serialized data without actually decoding the
130 patterns:
136 the compiled patterns in new memory blocks, setting pointers to them in a
140 management functions for the decoded patterns. If this argument is NULL,
149 If the vector is not large enough for all the patterns in the byte stream, it
151 function is the number of decoded patterns, or one of the following negative
164 Decoded patterns can be used for matching in the usual way, and must be freed
166 race issue if you are using multiple patterns that were decoded from a single
168 tables is used by all the decoded patterns and a reference count is used to
171 to call \fBpcre2_code_free()\fP for these patterns in different threads, you