MCPcopy Create free account
hub / github.com/ByConity/ByConity / unescapeForFileName

Function unescapeForFileName

src/Common/escapeForFileName.cpp:33–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33std::string unescapeForFileName(const std::string & s)
34{
35 std::string res;
36 const char * pos = s.data();
37 const char * end = pos + s.size();
38
39 while (pos != end)
40 {
41 if (!(*pos == '%' && pos + 2 < end))
42 {
43 res += *pos;
44 ++pos;
45 }
46 else
47 {
48 ++pos;
49 res += unhex2(pos);
50 pos += 2;
51 }
52 }
53 return res;
54}
55
56}

Callers 15

processDatabaseMethod · 0.85
tryParseCacheFileNameFunction · 0.85
injectVirtualColumnsImplFunction · 0.85
loadMethod · 0.85
TESTFunction · 0.85
getClusterImplMethod · 0.85
loadStoredObjectsMethod · 0.85
loadStoredObjectsMethod · 0.85

Calls 3

unhex2Function · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by 1

TESTFunction · 0.68