MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / trimAndEscape

Function trimAndEscape

src/Interpreters/WasmModuleManager.cpp:58–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58static String trimAndEscape(std::string_view name, size_t max_length = 128)
59{
60 if (name.size() > max_length)
61 {
62 name = name.substr(0, max_length);
63 return escapeForFileName(std::string(name)) + "...";
64 }
65 return escapeForFileName(std::string(name));
66}
67
68static UInt256 calculateHash(std::string_view data [[maybe_unused]])
69{

Callers 1

checkValidWasmCodeFunction · 0.85

Calls 2

escapeForFileNameFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected