MCPcopy Create free account
hub / github.com/SpartanJ/eepp / removeNumbersAtEnd

Method removeNumbersAtEnd

src/eepp/core/string.cpp:1587–1592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1585}
1586
1587std::string String::removeNumbersAtEnd( std::string txt ) {
1588 while ( txt.size() && txt[txt.size() - 1] >= '0' && txt[txt.size() - 1] <= '9' ) {
1589 txt.resize( txt.size() - 1 );
1590 }
1591 return txt;
1592}
1593
1594std::size_t String::findCloseBracket( const std::string& string, std::size_t startOffset,
1595 char openBracket, char closeBracket ) {

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected