Lines Matching refs:StringView

70 class StringView {
72 constexpr StringView() : mString(""), mSize(0U) {} in StringView() function
74 constexpr StringView(const StringView& other) : in StringView() function
88 constexpr StringView(const char (&buf)[size]) : in StringView() function
95 constexpr StringView(char (&buf)[size]) : in StringView() function
110 constexpr StringView(const Char* const & string) : in StringView() function
113 StringView(const std::string& str) : in StringView() function
116 constexpr StringView(const char* str, size_t len) in StringView() function
119 constexpr StringView(const char* begin, const char* end) in StringView() function
122 constexpr StringView(std::nullptr_t) : in StringView() function
157 void set(const StringView& other) { in set()
163 int compare(const StringView& other) const;
165 StringView& operator=(const StringView& other) {
172 size_t find(StringView other, size_t off = 0) {
190 StringView getSubstr(StringView other, size_t off = 0) {
192 if (loc == std::string::npos) return StringView("");
198 StringView substr(size_t begin, size_t len = std::string::npos) {
209 StringView substrAbs(size_t begin, size_t end = std::string::npos) {
227 bool operator==(const StringView& x, const StringView& y);
229 inline bool operator!=(const StringView& x, const StringView& y) {
233 inline bool operator<(const StringView& x, const StringView& y) {
237 inline bool operator>=(const StringView& x, const StringView& y) {
241 inline bool operator >(const StringView& x, const StringView& y) {
245 inline bool operator<=(const StringView& x, const StringView& y) {
268 CStrWrapper(StringView stringView) : mStringView(stringView) {} in CStrWrapper()
289 const StringView mStringView;
293 inline CStrWrapper c_str(StringView stringView) { in c_str()