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

Function IsAbsolutePath

plugins/jieba/src/JiebaSegmentationPlugin.cpp:63–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61namespace {
62
63bool IsAbsolutePath(const std::string& path) {
64 if (path.empty()) {
65 return false;
66 }
67 if (path[0] == '/' || path[0] == '\\') {
68 return true;
69 }
70 return path.size() > 1 && path[1] == ':';
71}
72
73bool IsReadableFile(const std::string& path) {
74#if defined(_WIN32) || defined(_WIN64)

Callers 1

ResolveResourcePathFunction · 0.70

Calls 2

emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected