pattern.h File Reference

#include <sys/types.h>
#include <regex.h>

Include dependency graph for pattern.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  base_pattern
class  basic_text_pattern< pcomp, pfree, pmatch >

Typedefs

typedef void *(* p_compile )(const char *pattern, bool ignore_case)
typedef void(* p_free )(void *cp)
typedef bool(* p_match )(void *compiled_pattern, const char *text, int length)
typedef basic_text_pattern
< compile_pattern,
free_compiled_pattern,
pattern_match > 
text_pattern
typedef basic_text_pattern
< compile_glob_pattern,
free_compiled_glob_pattern,
glob_pattern_match > 
glob_pattern

Functions

void * compile_pattern (const char *pattern, bool ignore_case=false)
void free_compiled_pattern (void *cp)
bool pattern_match (void *compiled_pattern, const char *text, int length)
void * compile_glob_pattern (const char *pattern, bool ignore_case=false)
void free_compiled_glob_pattern (void *cp)
bool glob_pattern_match (void *compiled_pattern, const char *text, int length)


Typedef Documentation

typedef basic_text_pattern<compile_glob_pattern, free_compiled_glob_pattern, glob_pattern_match> glob_pattern

typedef void*(* p_compile)(const char *pattern, bool ignore_case)

typedef void(* p_free)(void *cp)

typedef bool(* p_match)(void *compiled_pattern, const char *text, int length)

typedef basic_text_pattern<compile_pattern, free_compiled_pattern, pattern_match> text_pattern


Function Documentation

void* compile_glob_pattern ( const char *  pattern,
bool  ignore_case = false 
)

void* compile_pattern ( const char *  pattern,
bool  ignore_case = false 
)

void free_compiled_glob_pattern ( void *  cp  ) 

void free_compiled_pattern ( void *  cp  ) 

bool glob_pattern_match ( void *  compiled_pattern,
const char *  text,
int  length 
)

bool pattern_match ( void *  compiled_pattern,
const char *  text,
int  length 
)


Generated on Thu Jan 13 13:17:58 2011 by  doxygen 1.5.6