MCPcopy 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
473BString 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/*
481Read - Only = 0x1

Callers

nothing calls this directly

Calls 3

endsWithMethod · 0.80
substrMethod · 0.80
lengthMethod · 0.45

Tested by

no test coverage detected