regex_test.cpp File Reference

#include "string_manip.h"
#include "op_regex.h"
#include <iostream>
#include <fstream>
#include <cstdlib>
Include dependency graph for regex_test.cpp:

Go to the source code of this file.

Functions

static void do_test (istream &fin)
int main (int argc, char *argv[])

Variables

static int nr_error = 0

Detailed Description

A simple test for libregex. Run it through: $ regex_test or $ regex_test filename(s) when no argument is provided "mangled-name" is used, see it for the input file format

Remarks:
Copyright 2003 OProfile authors
Read the file COPYING
Author:
Philippe Elie

Definition in file regex_test.cpp.


Function Documentation

static void do_test ( istream &  fin  )  [static]

Definition at line 30 of file regex_test.cpp.

References regular_expression_replace::execute(), nr_error, setup_regex(), test(), and trim().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int main ( int  argc,
char *  argv[] 
)

Definition at line 65 of file regex_test.cpp.

References do_test(), nr_error, and op_exception::what().

Here is the call graph for this function:


Variable Documentation

int nr_error = 0 [static]

Definition at line 28 of file regex_test.cpp.

Referenced by do_test(), and main().


Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1