op_regex.h File Reference

#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.

Data Structures

struct  bad_regex
class  regular_expression_replace
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

Definition in file op_regex.h.


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 8 Nov 2012 for Oprofile by  doxygen 1.6.1