MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / trimTrailingSlashes

Function trimTrailingSlashes

Source/Basic/Content.cpp:85–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85static void trimTrailingSlashes(std::string& str) {
86 while (!str.empty() && (str.back() == '\\' || str.back() == '/')) {
87 str.pop_back();
88 }
89}
90
91void Content::setAssetPath(String assetPath) {
92#if BX_PLATFORM_OSX || BX_PLATFORM_WINDOWS || BX_PLATFORM_LINUX

Callers 4

setAssetPathMethod · 0.85
setWritablePathMethod · 0.85
getPrefPathFunction · 0.85
ContentMethod · 0.85

Calls 3

emptyMethod · 0.45
backMethod · 0.45
pop_backMethod · 0.45

Tested by

no test coverage detected