24 :
left_(reinterpret_cast<uintptr_t>(start))
28 std::cerr <<
"Created SV \"" << *
this <<
"\".\n";
37 :
left_(reinterpret_cast<uintptr_t>(
left))
41 std::cerr <<
"Composed SV \"" << *
this <<
"\" of \"" << *
left <<
"\" .. \"" << *
right <<
"\".\n";
64 return out << std::string_view(sv.
data(), sv.
length());
70 std::ostringstream oss;
79 std::cerr <<
"Concatenate \"" << left <<
"\" .. \"" << right <<
"\".\n";
Schema operator+(const Schema &left, const Schema &right)
StringView(const std::string &str)
bool operator==(StringView other) const
bool operator<=(StringView other) const
bool operator!=(StringView other) const
bool operator>(StringView other) const
std::size_t length() const
int compare(StringView other) const
const StringView & left() const
friend std::ostream & operator<<(std::ostream &out, StringView sv)
const StringView & right() const
StringView(const char *start, std::size_t length)
StringView(const char *start)
const char * data() const
friend std::string to_string(StringView sv)
StringView(const char *start, const char *end)
uintptr_t right_
if the LSB is set, this value denotes the length of the string, appended with a 1-bit
bool operator<(StringView other) const
StringView(const StringView *left, const StringView *right)
Compose a StringView of two string_views.
bool operator>=(StringView other) const