Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenHD/OpenHD
/ ltrim
Method
ltrim
OpenHD/ohd_common/src/openhd_util.cpp:338–342 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
336
}
337
338
void OHDUtil::ltrim(std::string& s) {
339
s.erase(s.begin(), std::find_if(s.begin(), s.end(), [](unsigned char ch) {
340
return !std::isspace(ch);
341
}));
342
}
343
344
void OHDUtil::trim(std::string& s) {
345
rtrim(s);
Callers
nothing calls this directly
Calls
3
erase
Method · 0.80
begin
Method · 0.80
end
Method · 0.80
Tested by
no test coverage detected