| 186 | } |
| 187 | |
| 188 | bool FindAndCut(string* input, const RE2& expr, string* before_match, |
| 189 | string* ret_match = nullptr) { |
| 190 | string match; |
| 191 | if (!RE2::PartialMatch(*input, expr, &match)) return false; |
| 192 | *before_match = input->substr(0, input->find(match)); |
| 193 | *input = input->substr(before_match->size() + match.size()); |
| 194 | if (ret_match != nullptr) *ret_match = match; |
| 195 | return true; |
| 196 | } |
| 197 | |
| 198 | string ParseDocumentation(const string& inp) { |
| 199 | std::stringstream javadoc_text; |
no test coverage detected