MCPcopy Create free account
hub / github.com/chen3feng/toft / IsSeparator

Method IsSeparator

storage/path/path.cpp:15–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13namespace toft {
14
15bool Path::IsSeparator(char ch)
16{
17#ifdef _WIN32
18 return ch == '\\' || ch == '/';
19#else
20 return ch == '/';
21#endif
22}
23
24std::string Path::GetBaseName(const std::string& filepath)
25{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected