#ifndef REGEX_REPLACEMENT_HDR #define REGEX_REPLACEMENT_HDR #include #include "concordia/common/config.hpp" #include "concordia/concordia_exception.hpp" #include #include #include /*! Class for replacing string occurences. */ typedef boost::error_info my_tag_error_info; class RegexReplacement { public: RegexReplacement(std::string patternString, std::string replacement, bool caseSensitive = true) throw(ConcordiaException); /*! Destructor. */ virtual ~RegexReplacement(); std::string apply(const std::string & text); private: boost::u32regex _pattern; std::string _replacement; }; #endif