Gnome Library Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
Provides a cache for regular expressions. Applications first allocate a cache with gnome_regex_cache_new() and access the regular expressions trought the gnome_regex_cache_compile() function (this will fetch the compiled value from the cache or will re-compile it if required).
Creates a new regular expression cache object.
Returns : | the new cache object. |
Destroys a regular expression cache object.
rxc : | A regular expression cache object |
Sets the maxiumum number of regular expressions the cache can hold. If this is less than the number of currently cached expressions, then the oldest expressions are deleted.
rxc : | A regular expression cache object |
new_size : | new size of cache |
This compiles a regular expression. If the expression is cached, the previously computed value is returned. Otherwise, the expression is compiled, cached, and then returned.
rxc : | A regular expression cache object |
pattern : | A string representing a regular expression |
flags : | Flags to pass to |
Returns : | a compiled regular expression, or NULL on error. |