MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / ApplicationPathSeparators

Function ApplicationPathSeparators

Source/Internal/filesystem.cpp:884–893  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

882}
883
884string ApplicationPathSeparators(const string& v) {
885 size_t slash_pos = 0;
886 string res = v;
887
888 while ((slash_pos = res.find_first_of('\\')) != string::npos) {
889 res[slash_pos] = '/';
890 }
891
892 return res;
893}
894
895void ApplicationPathSeparators(char* string) {
896 for (int i = 0; string[i] != '\0'; i++) {

Callers 5

SetUpEnvironmentFunction · 0.85
LoadLevelFunction · 0.85
SanitizePathFunction · 0.85
CreateBackupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected