Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

JRegex.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *cr
00003  *cr            (C) Copyright 1995-2008 The Board of Trustees of the
00004  *cr                        University of Illinois
00005  *cr                         All Rights Reserved
00006  *cr
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  * RCS INFORMATION:
00011  *
00012  *      $RCSfile: JRegex.h,v $
00013  *      $Author: johns $        $Locker:  $             $State: Exp $
00014  *      $Revision: 1.11 $       $Date: 2008/03/27 19:36:40 $
00015  *
00016  ***************************************************************************
00017  * DESCRIPTION:
00018  *   Regular expression matching interface.
00019  ***************************************************************************/
00020 
00021 #ifndef J_REGEX_H__
00022 #define J_REGEX_H__
00023 #include "pcre.h"
00024 
00026 class JRegex {
00027 public:
00030   JRegex(const char *pattern, int fast=0);
00031   ~JRegex();
00032 
00034   int match(const char *str, int len) const;
00035 
00039   int search(const char *str, int len, int &length, int start=0);  
00040 
00041 private:
00042   JRegex(const JRegex&) {}
00043   pcre *rpat; 
00044 };
00045 
00046 #endif

Generated on Tue Oct 14 01:28:36 2008 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002