MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / IsAbsolutePath

Function IsAbsolutePath

src/ResourceProvider.cpp:55–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55bool IsAbsolutePath(const std::string& path) {
56 if (path.empty()) {
57 return false;
58 }
59 if (IsSeparator(path[0])) {
60 return true;
61 }
62#if defined(_WIN32) || defined(_WIN64)
63 return path.size() >= 3 && path[1] == ':' && IsSeparator(path[2]);
64#else
65 return false;
66#endif
67}
68
69bool IsRegularFileUtf8(const std::string& path) {
70#if defined(_WIN32) || defined(_WIN64)

Callers 4

IsSafeZipResourceNameFunction · 0.70
IndexMethod · 0.70
ResolveMethod · 0.70
GetResourceMethod · 0.70

Calls 3

IsSeparatorFunction · 0.85
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected