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

Function trimLeft

source/MRMesh/MRString.cpp:200–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200std::string_view trimLeft( std::string_view str )
201{
202 size_t pos = 0;
203 while ( pos < str.size() && isAscii( str[pos] ) && std::isspace( str[pos] ) )
204 ++pos;
205 return str.substr( pos );
206}
207
208std::string_view trimRight( std::string_view str )
209{

Callers 2

fromASCIIStlFunction · 0.85
trimFunction · 0.85

Calls 2

isAsciiFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected