ClickHouse/dbms/src/Parsers/StringRange.h

21 lines
296 B
C++
Raw Normal View History

2014-04-08 06:51:53 +00:00
#pragma once
2010-06-24 19:12:10 +00:00
#include <Core/Types.h>
2010-06-24 19:12:10 +00:00
#include <map>
#include <memory>
2010-06-24 19:12:10 +00:00
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
}