MCPcopy Create free account
hub / github.com/OSSystems/EasySplash / normalize_path

Function normalize_path

src/zip_archive.cpp:26–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24
25
26std::string normalize_path(std::string const &p_path)
27{
28 // If the path starts with "./", remove this prefix
29 std::string normalized_path = p_path;
30 if (normalized_path.find("./") == 0)
31 normalized_path = normalized_path.substr(2);
32 return normalized_path;
33}
34
35
36template < typename T, class = typename std::enable_if < std::is_arithmetic < T > ::value > ::type >

Callers 3

find_entry_by_nameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected