| 56 | } |
| 57 | |
| 58 | static 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 | |
| 68 | static UInt256 calculateHash(std::string_view data [[maybe_unused]]) |
| 69 | { |
no test coverage detected