ClickHouse/dbms/include/DB/Parsers/StringRange.h

20 lines
278 B
C++
Raw Normal View History

2014-04-08 06:51:53 +00:00
#pragma once
2010-06-24 19:12:10 +00:00
2016-11-20 12:43:20 +00:00
#include <DB/Core/Types.h>
2010-06-24 19:12:10 +00:00
#include <map>
namespace DB
{
using StringRange = std::pair<const char *, const char *>;
using StringPtr = std::shared_ptr<String>;
2010-06-24 19:12:10 +00:00
inline String toString(const StringRange & range)
{
return String(range.first, range.second);
}
2010-06-24 19:12:10 +00:00
}