ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Typedefs | Functions
Match.h File Reference
#include <sys/types.h>
Include dependency graph for Match.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef unsigned short Pattern_t
 

Functions

int Makepat (const char *, Pattern_t *, int)
 Make a pattern template from the string pointed to by exp. More...
 
const char * Matchs (const char *, size_t len, const Pattern_t *, const char **)
 Match a string with a pattern. More...
 

Typedef Documentation

typedef unsigned short Pattern_t

Definition at line 26 of file Match.h.

Function Documentation

int Makepat ( const char *  exp,
Pattern_t pat,
int  maxpat 
)

Make a pattern template from the string pointed to by exp.

Stop when \0 is found in exp. The pattern template is assembled in pat whose length is given by maxpat.

Return:

  • E_ILLEGAL Illegal input pattern.
  • E_NOMEM out of memory.
  • E_PAT pattern too long.

Definition at line 129 of file Match.cxx.

Referenced by TRegexp::GenPattern(), and TTabCom::SetPattern().

const char* Matchs ( const char *  ,
size_t  len,
const Pattern_t ,
const char **   
)

Match a string with a pattern.

Definition at line 220 of file Match.cxx.

Referenced by TTabCom::DetermineContext(), and TRegexp::Index().