2014-04-08 06:51:53 +00:00
|
|
|
#pragma once
|
2010-06-24 19:12:10 +00:00
|
|
|
|
2017-04-01 09:19:00 +00:00
|
|
|
#include <Core/Types.h>
|
2010-06-24 19:12:10 +00:00
|
|
|
#include <map>
|
2017-02-02 22:08:19 +00:00
|
|
|
#include <memory>
|
2010-06-24 19:12:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2016-05-28 10:15:36 +00:00
|
|
|
using StringRange = std::pair<const char *, const char *>;
|
|
|
|
using StringPtr = std::shared_ptr<String>;
|
2010-06-24 19:12:10 +00:00
|
|
|
|
2016-11-23 19:58:33 +00:00
|
|
|
|
|
|
|
inline String toString(const StringRange & range)
|
|
|
|
{
|
2017-04-01 07:20:54 +00:00
|
|
|
return String(range.first, range.second);
|
2016-11-23 19:58:33 +00:00
|
|
|
}
|
|
|
|
|
2010-06-24 19:12:10 +00:00
|
|
|
}
|