Logo ROOT   6.12/07
Reference Guide
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:

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

◆ Pattern_t

typedef unsigned short Pattern_t

Definition at line 26 of file Match.h.

Function Documentation

◆ Makepat()

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.

◆ Matchs()

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.