group Regular Expressions

Description

Regular expressions play an important role within the ferite language. They can be used from native code using a very simple interface.

group contents
Functions
function ferite_compile_regex(FeriteScript,char,int) - Compile a regular expression to make things faster
function ferite_create_regex() - Create a regular expression structure used to store various information for them
function ferite_delete_regex(FeriteRegex) - Delete a strucute created using ferite_create_regex()
function ferite_generate_regex(FeriteScript,char,char,char,char) - A convinience function to create and popular a regex structure
function ferite_regex_dup(FeriteRegex) - Duplicate a regular expression structure

Functions

function ferite_compile_regex Click to go up to the list
Compile a regular expression to make things faster
Declaration:
    void *ferite_compile_regex( FeriteScript *script, char *pattern, int options )
Parameters:
    Parameter #1: FeriteScript *script - The script
    Parameter #2: char *pattern - The pattern to compile
    Parameter #3: int options - The options that effect how it is compiled
Returns:
    A pointer to the in memory compiled regular expression

function ferite_create_regex Click to go up to the list
Create a regular expression structure used to store various information for them
Declaration:
    FeriteRegex *ferite_create_regex()
Returns:
    A new FeriteRegex structure

function ferite_delete_regex Click to go up to the list
Delete a strucute created using ferite_create_regex()
Declaration:
    void ferite_delete_regex( FeriteRegex *rgx )
Parameters:
    Parameter #1: FeriteRegex *rgx - The regex to delete

function ferite_generate_regex Click to go up to the list
A convinience function to create and popular a regex structure
Declaration:
    FeriteRegex *ferite_generate_regex( FeriteScript *script, char *pattern, char *swapbuffer, char type, char *flags )
Parameters:
    Parameter #1: FeriteScript *script - The script
    Parameter #2: char *pattern - The regular expression
    Parameter #3: char *swapbuffer - The buffer that is evaluated on a match
    Parameter #4: char type - The type of the regular expression. s for a swap, m for a match, c for an assignment.
    Parameter #5: char *flags - The flags the effect the behavior of the regular expression.
Returns:
    A regular expression structure setup and populated correctly

function ferite_regex_dup Click to go up to the list
Duplicate a regular expression structure
Declaration:
    FeriteRegex *ferite_regex_dup( FeriteRegex *rgx )
Parameters:
    Parameter #1: FeriteRegex *rgx - The regex to duplicate
Returns:
    An exact copy of the regexular expression

Automatically generated at 12:07PM, Wednesday 25 May 2005 by feritedoc.