MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / 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

loadMethod · 0.85
fillMarksMethod · 0.85
readImplMethod · 0.85
scanCallbackImplMethod · 0.85
finalizeMethod · 0.85
loadMethod · 0.85
listCollectionsMethod · 0.85
loadEntitiesImplMethod · 0.85
TESTFunction · 0.85
loadTablesMetadataMethod · 0.85

Calls 3

unhex2Function · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by 1

TESTFunction · 0.68