Lines Matching refs:string
21 #include <string>
31 bad_regex(std::string const & pattern);
55 * @param replace the string to subsitute in other regular definition
59 void add_definition(std::string const & name,
60 std::string const & replace);
63 * @param replace the replace string to use when this regular
68 void add_pattern(std::string const & pattern,
69 std::string const & replace);
72 * @param str the input/output string where we search pattern and
79 * been matched by saving the input string and comparing it to the new
80 * value. There is no way to detect s/a/a because the output string
81 * will be identical to the input string.
83 bool execute(std::string & str) const;
88 // replace the matched part with this string
89 std::string replace;
93 bool do_execute(std::string & str, replace_t const & regexp) const;
94 void do_replace(std::string & str, std::string const & replace,
98 std::string expand_string(std::string const & input);
101 std::string substitute_definition(std::string const & pattern);
117 typedef std::map<std::string, std::string> defs_dict;
128 std::string const & filename);