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

Method numberCleanInPlace

src/eepp/core/string.cpp:1667–1674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1665}
1666
1667void String::numberCleanInPlace( std::string& strNumber ) {
1668 if ( strNumber.empty() )
1669 return;
1670 while ( strNumber.back() == '0' )
1671 strNumber.pop_back();
1672 if ( strNumber.back() == '.' )
1673 strNumber.pop_back();
1674}
1675
1676void String::insertChar( String& str, const unsigned int& pos, const StringBaseType& tchar ) {
1677 str.insert( str.begin() + pos, tchar );

Callers

nothing calls this directly

Calls 2

pop_backMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected