Lines Matching refs:string

29 #include <string>
34 using std::string;
43 // Converts to a C++ string.
44 virtual string ToString() const = 0;
54 // Matches string to regular expression, returns true if expression was
56 // input_string - string to be searched.
58 // the beginning of the tested region of the string.
59 // matched_string1..6 - string extracted from the match in sequential order.
63 string* matched_string1,
64 string* matched_string2,
65 string* matched_string3,
66 string* matched_string4,
67 string* matched_string5,
68 string* matched_string6) const = 0;
72 inline bool Consume(RegExpInput* input_string, string* matched_string1,
73 string* matched_string2,
74 string* matched_string3,
75 string* matched_string4,
76 string* matched_string5,
77 string* matched_string6) const {
83 inline bool Consume(RegExpInput* input_string, string* matched_string1,
84 string* matched_string2,
85 string* matched_string3,
86 string* matched_string4,
87 string* matched_string5) const {
92 inline bool Consume(RegExpInput* input_string, string* matched_string1,
93 string* matched_string2,
94 string* matched_string3,
95 string* matched_string4) const {
104 string* matched_string1,
105 string* matched_string2,
106 string* matched_string3) const {
112 string* matched_string1,
113 string* matched_string2) const {
118 inline bool Consume(RegExpInput* input_string, string* matched_string) const {
128 // at any place in the string.
130 string* matched_string) const {
135 // Matches string to regular expression, returns true if the expression was
137 // input_string - string to be searched.
139 // complete string.
140 // matched_string - the string extracted from the match. Can be NULL.
141 virtual bool Match(const string& input_string,
143 string* matched_string) const = 0;
146 inline bool PartialMatch(const string& input_string,
147 string* matched_string) const {
151 inline bool PartialMatch(const string& input_string) const {
155 inline bool FullMatch(const string& input_string,
156 string* matched_string) const {
160 inline bool FullMatch(const string& input_string) const {
167 // replacement string are referenced with the $[0-9] notation.
170 virtual bool Replace(string* string_to_process,
172 const string& replacement_string) const = 0;
175 inline bool Replace(string* string_to_process,
176 const string& replacement_string) const {
180 inline bool GlobalReplace(string* string_to_process,
181 const string& replacement_string) const {
194 virtual RegExpInput* CreateInput(const string& utf8_input) const = 0;
198 virtual RegExp* CreateRegExp(const string& utf8_regexp) const = 0;