| 1 | #pragma once | 
|---|---|
| 2 | |
| 3 | #include <string> | 
| 4 | |
| 5 | |
| 6 | namespace DB | 
| 7 | { | 
| 8 | |
| 9 | /** Convert a string, so result could be used as a file name. | 
| 10 | * In fact it percent-encode all non-word characters, as in URL. | 
| 11 | */ | 
| 12 | |
| 13 | std::string escapeForFileName(const std::string & s); | 
| 14 | std::string unescapeForFileName(const std::string & s); | 
| 15 | |
| 16 | } | 
| 17 | 
