![]() |
mutable
A Database System for Research and Fast Prototyping
|
#include <StringView.hpp>
Public Member Functions | |
StringView (const char *start, std::size_t length) | |
StringView (const char *start, const char *end) | |
StringView (const char *start) | |
StringView (const std::string &str) | |
StringView (const StringView *left, const StringView *right) | |
Compose a StringView of two string_views. | |
bool | is_flat () const |
bool | is_composed () const |
const char * | data () const |
std::size_t | length () const |
const StringView & | left () const |
const StringView & | right () const |
int | compare (StringView other) const |
bool | operator== (StringView other) const |
bool | operator!= (StringView other) const |
bool | operator< (StringView other) const |
bool | operator> (StringView other) const |
bool | operator<= (StringView other) const |
bool | operator>= (StringView other) const |
std::string | str () const |
Private Attributes | |
uintptr_t | left_ |
uintptr_t | right_ |
if the LSB is set, this value denotes the length of the string, appended with a 1-bit | |
Friends | |
std::ostream & | operator<< (std::ostream &out, StringView sv) |
std::string | to_string (StringView sv) |
Definition at line 16 of file StringView.hpp.
|
inline |
Definition at line 23 of file StringView.hpp.
|
inline |
Definition at line 31 of file StringView.hpp.
References M_insist.
|
inline |
Definition at line 32 of file StringView.hpp.
|
inline |
Definition at line 33 of file StringView.hpp.
|
inline |
Compose a StringView of two string_views.
Definition at line 36 of file StringView.hpp.
References is_composed(), left(), M_insist, and right().
|
inline |
Definition at line 53 of file StringView.hpp.
References str().
Referenced by operator!=(), operator<(), operator<=(), operator==(), operator>(), and operator>=().
|
inline |
Definition at line 47 of file StringView.hpp.
|
inline |
Definition at line 45 of file StringView.hpp.
References is_flat().
Referenced by left(), right(), and StringView().
|
inline |
Definition at line 44 of file StringView.hpp.
References right_.
Referenced by data(), is_composed(), length(), and StringView().
|
inline |
Definition at line 50 of file StringView.hpp.
References is_composed(), left_, and M_insist.
Referenced by StringView().
|
inline |
Definition at line 48 of file StringView.hpp.
|
inline |
Definition at line 56 of file StringView.hpp.
References compare().
|
inline |
Definition at line 57 of file StringView.hpp.
References compare().
|
inline |
Definition at line 59 of file StringView.hpp.
References compare().
|
inline |
Definition at line 55 of file StringView.hpp.
References compare().
|
inline |
Definition at line 58 of file StringView.hpp.
References compare().
|
inline |
Definition at line 60 of file StringView.hpp.
References compare().
|
inline |
Definition at line 51 of file StringView.hpp.
References is_composed(), M_insist, and right_.
Referenced by StringView().
|
inline |
|
friend |
Definition at line 62 of file StringView.hpp.
|
friend |
Definition at line 69 of file StringView.hpp.
Referenced by str().
|
private |
Definition at line 19 of file StringView.hpp.
|
private |
if the LSB is set, this value denotes the length of the string, appended with a 1-bit
Definition at line 20 of file StringView.hpp.