XBinder  Version 2.9.x
Functions
Pattern matching functions

These functions handle pattern matching which is required to to process XML schema pattern constraints. More...

Functions

EXTERNRT OSBOOL rtxMatchPattern (OSCTXT *pctxt, const OSUTF8CHAR *text, const OSUTF8CHAR *pattern)
 This function compares the given string to the given pattern. More...
 
EXTERNRT void rtxFreeRegexpCache (OSCTXT *pctxt)
 This function frees the memory associated with the regular expression cache. More...
 

Detailed Description

These functions handle pattern matching which is required to to process XML schema pattern constraints.

Function Documentation

◆ rtxFreeRegexpCache()

EXTERNRT void rtxFreeRegexpCache ( OSCTXT pctxt)

This function frees the memory associated with the regular expression cache.

The regular expression cache is designed to use memory that survives calls to rtxMemFree and rtxMemReset, therefore it is necessary to call this function to free that memory. (Note that rtxFreeContext invokes this.)

◆ rtxMatchPattern()

EXTERNRT OSBOOL rtxMatchPattern ( OSCTXT pctxt,
const OSUTF8CHAR *  text,
const OSUTF8CHAR *  pattern 
)

This function compares the given string to the given pattern.

It returns true if match, false otherwise.

Parameters
pctxtPointer to context structure.
textText to be matched.
patternRegular expression.
Returns
Boolean result.