Main Page | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

tcrip.h File Reference

A few necessary functions extracted from TCLib by Michael Ahlberg et al. More...

Go to the source code of this file.

Defines

#define TCSTREXP_ESCAPE   0x1
#define TCSTREXP_FREE   0x2
#define TCSTREXP_KEEPUNDEF   0x4

Functions

char * tcregsub (const char *str, const char *pat, const char *sub, int cflags)
 Regex substitution.
char * tcstrexp (const char *s, const char *sd, const char *ed, char fs, char *(*lookup)(char *, void *), void *ld, int flags)
 Something evil that tcregsub needs.


Detailed Description

A few necessary functions extracted from TCLib by Michael Ahlberg et al.

Definition in file tcrip.h.


Define Documentation

#define TCSTREXP_ESCAPE   0x1
 

Definition at line 61 of file tcrip.h.

Referenced by tcstrexp().

#define TCSTREXP_FREE   0x2
 

Definition at line 62 of file tcrip.h.

Referenced by tcregsub(), and tcstrexp().

#define TCSTREXP_KEEPUNDEF   0x4
 

Definition at line 63 of file tcrip.h.

Referenced by tcregsub(), and tcstrexp().


Function Documentation

char* tcregsub const char *  str,
const char *  pat,
const char *  sub,
int  cflags
 

Regex substitution.

Parameters:
str The string to do substitution on
pat The regex
sub The substituent, using ${N} = 0...9 as placeholders for groups
cflags The cflags to pass to regcomp
Returns:
The new malloc'd string

Definition at line 96 of file tcregex.c.

References regsub::m, rs_lookup(), regsub::rx, regsub::s, tcstrexp(), TCSTREXP_FREE, and TCSTREXP_KEEPUNDEF.

Referenced by ffregex_do_replace(), and tcstrexp().

char* tcstrexp const char *  s,
const char *  sd,
const char *  ed,
char  fs,
char *(*)(char *, void *)  lookup,
void *  ld,
int  flags
 

Something evil that tcregsub needs.

Don't ask me.

Definition at line 116 of file tcstring.c.

References escape(), ext, tcregsub(), tcstrexp(), TCSTREXP_ESCAPE, TCSTREXP_FREE, and TCSTREXP_KEEPUNDEF.

Referenced by tcregsub(), and tcstrexp().


Generated on Thu Jun 2 23:16:59 2005 for FinFlect by  doxygen 1.4.2