NEURON
Regexp Class Reference

#include <regexp.h>

Public Member Functions

 Regexp (const char *)
 
 Regexp (const char *, int length)
 
 ~Regexp ()
 
const char * pattern () const
 
int Search (const char *text, int length, int index, int range)
 
int Match (const char *text, int length, int index)
 
int BeginningOfMatch (int subexp=0)
 
int EndOfMatch (int subexp=0)
 

Private Attributes

char * pattern_
 
regexpc_pattern
 

Detailed Description

Definition at line 64 of file regexp.h.

Constructor & Destructor Documentation

◆ Regexp() [1/2]

Regexp::Regexp ( const char *  pat)

Definition at line 77 of file regexp.cpp.

◆ Regexp() [2/2]

Regexp::Regexp ( const char *  pat,
int  length 
)

Definition at line 89 of file regexp.cpp.

◆ ~Regexp()

Regexp::~Regexp ( )

Definition at line 100 of file regexp.cpp.

Member Function Documentation

◆ BeginningOfMatch()

int Regexp::BeginningOfMatch ( int  subexp = 0)

Definition at line 227 of file regexp.cpp.

◆ EndOfMatch()

int Regexp::EndOfMatch ( int  subexp = 0)

Definition at line 234 of file regexp.cpp.

◆ Match()

int Regexp::Match ( const char *  text,
int  length,
int  index 
)

Definition at line 206 of file regexp.cpp.

◆ pattern()

const char * Regexp::pattern ( ) const

Definition at line 109 of file regexp.cpp.

◆ Search()

int Regexp::Search ( const char *  text,
int  length,
int  index,
int  range 
)

Definition at line 111 of file regexp.cpp.

Member Data Documentation

◆ c_pattern

regexp* Regexp::c_pattern
private

Definition at line 77 of file regexp.h.

◆ pattern_

char* Regexp::pattern_
private

Definition at line 76 of file regexp.h.


The documentation for this class was generated from the following files: