ClickHouse/src/Common/escapeForFileName.h

17 lines
297 B
C++
Raw Normal View History

2011-11-05 23:31:19 +00:00
#pragma once
#include <string>
namespace DB
{
2016-12-12 01:33:18 +00:00
/** Convert a string, so result could be used as a file name.
* In fact it percent-encode all non-word characters, as in URL.
*/
2013-04-18 11:49:46 +00:00
2016-12-12 01:33:18 +00:00
std::string escapeForFileName(const std::string & s);
std::string unescapeForFileName(const std::string & s);
}