MCPcopy Create free account
hub / github.com/Uncodin/bypass / eraseTrailingControlCharacters

Method eraseTrailingControlCharacters

src/parser.cpp:120–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118 }
119
120 void Parser::eraseTrailingControlCharacters(const std::string& controlCharacters) {
121 std::map<int, Element>::iterator it = elementSoup.find(elementCount);
122
123 if ( it != elementSoup.end() ) {
124 Element * element = &((*it).second);
125
126 if (boost::ends_with(element->text, controlCharacters)) {
127 boost::erase_tail(element->text, controlCharacters.size());
128 }
129 }
130 }
131
132 // Block Element Callbacks
133

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected