MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / convertPathToDelims

Function convertPathToDelims

plugins/plugin_utils/plugin_files.cpp:255–263  ·  view source on GitHub ↗

ensures all the delims are constant

Source from the content-addressed store, hash-verified

253
254// ensures all the delims are constant
255std::string convertPathToDelims(const char* file) {
256 if (!file) {
257 return std::string();
258 }
259
260 std::string delim;
261 delim += _DirDelim;
262 return replace_all(replace_all(file, "/", delim), "\\", delim);
263}
264
265std::vector<std::string> getFilesInDir(const char* dir, const char* filter,
266 bool recrusive) {

Callers 9

getFilesInDirFunction · 0.85
getDirsInDirFunction · 0.85
getPathForOSFunction · 0.85
getFileDirFunction · 0.85
getFileExtensionFunction · 0.85
getFileTitleFunction · 0.85
getFileTextFunction · 0.85
getFileLenFunction · 0.85
fileExistsFunction · 0.85

Calls 1

replace_allFunction · 0.70

Tested by

no test coverage detected