Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

regexmatch.c File Reference

#include "util.h"
#include "regexmatch.h"
#include <ctype.h>

Functions

byte_t * aw_regsub (const byte_t *string, const regmatch_t *pmatch, const byte_t *substitution)
 Return a malloc'd string with all:
\0 substituded with pmatch[0] \1 substituded with pmatch[1] ... \9 substituded with pmatch[9]
NOTE: assumes pmatch is of size AW_REGEX_MAX_PMATCHES !!!


Function Documentation

byte_t* aw_regsub (  const byte_t *  string,
const regmatch_t *  pmatch,
const byte_t *  substitution
) 
 

Return a malloc'd string with all:

\0 substituded with pmatch[0] \1 substituded with pmatch[1] ... \9 substituded with pmatch[9]
NOTE: assumes pmatch is of size AW_REGEX_MAX_PMATCHES !!!

aw_regsub

Parameters:
string Matched string
pmatch Regex match results
substitution Substitution string

Aware 0.11.1 Copyright (C) 1998-2005 Russell Leighton (russ@elegant-software.com)