MCPcopy Create free account
hub / github.com/apache/impala / StripBrackets

Function StripBrackets

be/src/gutil/strings/strip.cc:146–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146void 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
157void StripMarkupTags(string* s) {
158 string::iterator openbracket = find(s->begin(), s->end(), '<');

Callers 1

StripCurlyBracesFunction · 0.85

Calls 4

eraseMethod · 0.80
findFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected