aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Common/escapeForFileName.h
blob: 9ae2965080449594fd89f2761d47019fa5a57a5b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include <string>


namespace DB
{

/** Convert a string, so result could be used as a file name.
  * In fact it percent-encode all non-word characters, as in URL.
  */

std::string escapeForFileName(const std::string & s);
std::string unescapeForFileName(const std::string & s);

}