convert.h File Reference

updated Tue Sep 26 2017 by Robert van Engelen
 
Namespaces | Typedefs | Functions | Variables
convert.h File Reference

RE/flex regex converter. More...

#include <reflex/error.h>
#include <string>
#include <map>
Include dependency graph for convert.h:
This graph shows which files directly or indirectly include this file:

Namespaces

 reflex
 
 reflex::convert_flag
 

Typedefs

typedef int reflex::convert_flag_type
 Conversion flags for reflex::convert. More...
 

Functions

std::string reflex::convert (const char *pattern, const char *signature=NULL, convert_flag_type flags=convert_flag::none, const std::map< std::string, std::string > *macros=NULL) throw (regex_error)
 Returns the converted regex string given a regex library signature and conversion flags, throws regex_error. More...
 
std::string reflex::convert (const std::string &pattern, const char *signature=NULL, convert_flag_type flags=convert_flag::none, const std::map< std::string, std::string > *macros=NULL) throw (regex_error)
 

Variables

const convert_flag_type reflex::convert_flag::none = 0x00
 no conversion (default) More...
 
const convert_flag_type reflex::convert_flag::unicode = 0x01
 convert . (dot), \s, \w, \l, \u, \S, \W, \L, \U to Unicode More...
 
const convert_flag_type reflex::convert_flag::recap = 0x02
 remove capturing groups, add capturing groups to the top level More...
 
const convert_flag_type reflex::convert_flag::lex = 0x04
 convert Lex/Flex regular expression syntax More...
 
const convert_flag_type reflex::convert_flag::u4 = 0x08
 convert \uXXXX and UTF-16 surrogate pairs More...
 
const convert_flag_type reflex::convert_flag::anycase = 0x10
 convert regex to ignore case, same as (?i) More...
 
const convert_flag_type reflex::convert_flag::multiline = 0x20
 regex with multiline anchors ^ and $, same as (?m) More...
 
const convert_flag_type reflex::convert_flag::dotall = 0x40
 convert . (dot) to match all, same as (?s) More...
 
const convert_flag_type reflex::convert_flag::freespace = 0x80
 convert regex by removing spacing, same as (?x) More...
 

Detailed Description

RE/flex regex converter.

Author
Robert van Engelen - engel.nosp@m.en@g.nosp@m.enivi.nosp@m.a.co.nosp@m.m