mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02:01 +00:00
529f75c8b4
- rename unquoteUrl to decodeURLComponent - fix code-style
13 lines
384 B
C++
13 lines
384 B
C++
#pragma once
|
|
|
|
#include <experimental/string_view>
|
|
|
|
using StringView = std::experimental::string_view;
|
|
|
|
/// It creates StringView from literal constant at compile time.
|
|
template <typename TChar, size_t size>
|
|
constexpr inline std::experimental::basic_string_view<TChar> makeStringView(const TChar (&str)[size])
|
|
{
|
|
return std::experimental::basic_string_view<TChar>(str, size - 1);
|
|
}
|