Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

wildmat.c File Reference

#include <stdio.h>
#include <sys/types.h>
#include "wildmat.h"

Go to the source code of this file.

Defines

#define TRUE   1
#define FALSE   0
#define ABORT   -1
#define NEGATE_CLASS   '^'
#define OPTIMIZE_JUST_STAR

Functions

int wildmat (const char *text, const char *p)


Define Documentation

#define ABORT   -1
 

Definition at line 47 of file wildmat.c.

#define FALSE   0
 

Definition at line 46 of file wildmat.c.

#define NEGATE_CLASS   '^'
 

Definition at line 51 of file wildmat.c.

#define OPTIMIZE_JUST_STAR
 

Definition at line 53 of file wildmat.c.

#define TRUE   1
 

Definition at line 45 of file wildmat.c.

Referenced by wildmat().


Function Documentation

int wildmat const char *  text,
const char *  p
 

Definition at line 128 of file wildmat.c.

References TRUE.

Referenced by NewsgroupFilter::matches().

00129 {
00130 #ifdef  OPTIMIZE_JUST_STAR
00131         if (p[0] == '*' && p[1] == '\0')
00132                 return TRUE;
00133 #endif                          /* OPTIMIZE_JUST_STAR */
00134         return DoMatch(text, p) == TRUE;
00135 }


Generated on Fri Aug 20 10:58:09 2004 for NewsCache by doxygen 1.3.6-20040222