Lines Matching refs:StringView
42 class StringView {
52 StringView() = default;
55 StringView(std::nullptr_t) = delete;
58 StringView(const char* str) : data_(str) { in StringView() function
64 StringView(const char* str, size_t length) : data_(str), length_(length) { in StringView() function
69 StringView(const string& str) : data_(str.data()), length_(str.length()) {} in StringView() function
79 int compare(StringView rhs) const { in compare()
90 inline bool operator==(StringView lhs, StringView rhs) {
94 inline bool operator!=(StringView lhs, StringView rhs) {
98 inline bool operator<(StringView lhs, StringView rhs) {
102 inline bool operator>(StringView lhs, StringView rhs) {
106 inline std::ostream& operator<<(std::ostream& os, StringView s) {