• Home
  • Raw
  • Download

Lines Matching full:stringview

30 class StringView {
32 explicit StringView() noexcept = default;
33 explicit StringView(const ArenaString *str) noexcept : sv_(*str) {} in StringView() function
35 StringView(const std::string_view &sv) noexcept : sv_(sv) {} in StringView() function
37 StringView(const char *str) noexcept : sv_(str) {} in StringView() function
38 DEFAULT_COPY_SEMANTIC(StringView);
39 DEFAULT_MOVE_SEMANTIC(StringView);
40 ~StringView() = default;
42 bool operator==(const StringView &rhs) const noexcept
47 bool operator!=(const StringView &rhs) const noexcept
52 bool operator<(const StringView &rhs) const noexcept
57 bool operator>(const StringView &rhs) const noexcept
62 int Compare(const StringView &other) const noexcept in Compare()
107 StringView Substr(size_t begin, size_t end) const noexcept in Substr()
109 return StringView(std::string_view(sv_.data() + begin, end - begin)); in Substr()
149 explicit Iterator(const StringView &sv) noexcept : sv_(sv.sv_), iter_(sv_.begin()) {} in Iterator()
287 util::StringView View() const in View()
290 return util::StringView(); in View()
293 return util::StringView(str_); in View()
302 StringView::Utf8Encode<ArenaString>(str_, ch); in Append()
305 void Append(const StringView &other) noexcept in Append()
335 char32_t StringView::Iterator::DecodeCP([[maybe_unused]] size_t *cpSize) const in DecodeCP()
395 std::string StringView::EscapeSymbol() const in EscapeSymbol()
451 void StringView::Utf8Encode(T *str, char32_t cu) in Utf8Encode()
477 void StringView::Mutf8Encode(T *str, char32_t cu) in Mutf8Encode()
506 struct hash<panda::es2panda::util::StringView> {
507 std::size_t operator()(const panda::es2panda::util::StringView &str) const
513 ostream &operator<<(ostream &os, const panda::es2panda::util::StringView &us);