MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / trimRight

Function trimRight

source/MRMesh/MRString.cpp:208–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208std::string_view trimRight( std::string_view str )
209{
210 auto l = str.size();
211 while ( l > 0 && isAscii( str[l - 1] ) && std::isspace( str[l - 1] ) )
212 --l;
213 return str.substr( 0, l );
214}
215
216bool hasFormatPlaceholders( std::string_view str )
217{

Callers 4

parseObjTextureVertexFunction · 0.85
trimFunction · 0.85
parseObjCoordinateFunction · 0.85
parsePtsCoordinateFunction · 0.85

Calls 2

isAsciiFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected