MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / ToNativeSeparators

Method ToNativeSeparators

Sources/Shared/IO/FileSystem.cpp:1135–1149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1133 }
1134
1135 String FileSystem::ToNativeSeparators(String path)
1136 {
1137 // Take ownership first if not already (e.g., directly from `String::nullTerminatedView()`)
1138 if (!path.isSmall() && path.deleter()) {
1139 path = String{path};
1140 }
1141
1142 for (char& c : path) {
1143 if (c == '/') {
1144 c = '\\';
1145 }
1146 }
1147
1148 return path;
1149 }
1150#endif
1151
1152 String FileSystem::GetAbsolutePath(StringView path)

Callers

nothing calls this directly

Calls 2

isSmallMethod · 0.45
deleterMethod · 0.45

Tested by

no test coverage detected