50 static std::vector<std::string>
split(
const std::string_view &text,
const std::string_view &sub)
noexcept;
51 static bool startsWith(
const std::string_view &text,
const std::string_view &prefix)
noexcept;
52 static bool endsWith(
const std::string_view &text,
const std::string_view &suffix)
noexcept;
67 bool insertAt(
int index,
const char *data,
size_t len);
70 virtual void append(
char ch)
noexcept;
71 virtual void append(
const char *str)
noexcept;
72 virtual void append(
const std::string &str)
noexcept;
73 virtual void append(
const std::string_view &str)
noexcept;
76 virtual void append(
const char *data,
size_t len)
noexcept;
77 [[nodiscard]]
virtual size_t length() const noexcept {
return this->
len; }
78 [[nodiscard]]
virtual size_t size() const noexcept {
return this->
cap; }
79 [[nodiscard]]
virtual bool empty() const noexcept {
return 0 == this->
len; };
80 virtual void clear() noexcept;
81 virtual
void reverse() noexcept;
82 [[nodiscard]] virtual
char getCharAt(
int index) const;
83 virtual
bool setChatAt(
int index,
char ch);
85 virtual
bool del(
int start,
int l);
86 virtual
bool insertAt(
int index, const
char *str);
87 virtual
bool insertAt(
int index, const std::
string &str);
88 virtual
bool insertAt(
int index, const std::string_view &str);
92 virtual
void trim() noexcept;
93 [[nodiscard]] virtual std::vector<std::
string>
split(const std::string_view &str) const noexcept;
94 [[nodiscard]] virtual
bool startsWith(const std::string_view &prefix) const noexcept;
95 [[nodiscard]] virtual
bool endsWith(const std::string_view &suffix) const noexcept;