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

Method trimInPlace

src/eepp/core/string.cpp:1061–1065  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1059}
1060
1061void String::trimInPlace( std::string& str, char character ) {
1062 // Trim only if there's something to trim
1063 if ( !str.empty() && ( str[0] == character || str[str.size() - 1] == character ) )
1064 str = trim( str, character );
1065}
1066
1067String String::lTrim( const String& str, char character ) {
1068 StringType::size_type pos1 = str.find_first_not_of( character );

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected