op_regex.h File Reference

This file contains various definitions and interface for a lightweight wrapper around libc regex, providing match and replace facility. More...

#include <sys/types.h>
#include <regex.h>
#include <string>
#include <vector>
#include <map>
#include "op_exception.h"
Include dependency graph for op_regex.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  bad_regex
 ill formed regular expression or expression throw such exception More...
class  regular_expression_replace
 lightweight encapsulation of regex lib search and replace More...
struct  regular_expression_replace::replace_t

Functions

void setup_regex (regular_expression_replace &regex, std::string const &filename)

Detailed Description

This file contains various definitions and interface for a lightweight wrapper around libc regex, providing match and replace facility.

Remarks:
Copyright 2003 OProfile authors
Read the file COPYING
Idea comes from TextFilt project <http://textfilt.sourceforge.net>
Author:
Philippe Elie

Function Documentation

void setup_regex ( regular_expression_replace regex,
std::string const &  filename 
)
Parameters:
regex the regular_expression_replace to fill
filename the filename from where the deifnition and pattern are read

add to regex pattern and regular definition read from the given file


Generated on 29 Jul 2013 for oprofile by  doxygen 1.6.1