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

Function IsRegularFile

src/benchmark/Performance.cpp:72–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70#endif
71
72bool IsRegularFile(const std::string& path) {
73 std::ifstream stream(path.c_str(), std::ios::binary);
74 return stream.good();
75}
76
77bool EndsWith(const std::string& value, const std::string& suffix) {
78 return value.size() >= suffix.size() &&

Callers 4

BuildTempPathMethod · 0.70
CreateMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected