Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/danoon2/Boxedwine
/ trimTrailingSlash
Method
trimTrailingSlash
source/io/fs.cpp:473–478 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
471
}
472
473
BString Fs::trimTrailingSlash(const BString& s) {
474
if (s.endsWith(
'/'
) || s.endsWith(
'\\'
)) {
475
return s.substr(0, s.length() - 1);
476
}
477
return s;
478
}
479
480
/*
481
Read - Only = 0x1
Callers
nothing calls this directly
Calls
3
endsWith
Method · 0.80
substr
Method · 0.80
length
Method · 0.45
Tested by
no test coverage detected