| 144 | } |
| 145 | |
| 146 | void StripBrackets(char left, char right, string* s) { |
| 147 | string::iterator opencurly = find(s->begin(), s->end(), left); |
| 148 | while (opencurly != s->end()) { |
| 149 | string::iterator closecurly = find(opencurly, s->end(), right); |
| 150 | if (closecurly == s->end()) |
| 151 | return; |
| 152 | opencurly = s->erase(opencurly, closecurly + 1); |
| 153 | opencurly = find(opencurly, s->end(), left); |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | void StripMarkupTags(string* s) { |
| 158 | string::iterator openbracket = find(s->begin(), s->end(), '<'); |
no test coverage detected