61 constexpr const char *
data()
const;
64 operator std::string()
const;
65 constexpr operator std::string_view()
const;
67 constexpr const char *
begin()
const;
68 constexpr const char *
end()
const;
102 constexpr const char &
front()
const;
103 constexpr const char &
back()
const;
142 constexpr const char *
c_str()
const;
156 constexpr StringRef(
const char *
begin,
const char *one_after_end);
208inline StringRefBase::operator std::string()
const
213constexpr StringRefBase::operator std::string_view()
const
215 return std::string_view(
data_,
size_t(
size_));
293 const int64_t substr_size = std::min(max_size,
size_ - start);
318 if (index == std::string_view::npos) {
398 return this->
trim(
" \t\r\n");
424 "forward search found characters-to-not-remove, but backward search did not");
425 const int64_t substr_len = find_end - find_front + 1;
426 return this->
substr(find_front, substr_len);
542 const int64_t new_size = std::max<int64_t>(0,
size_ - n);
607 return std::string(a) + std::string(
b);
622 return std::string_view(a) == std::string_view(
b);
627 return std::string_view(a) != std::string_view(
b);
632 return std::string_view(a) < std::string_view(
b);
637 return std::string_view(a) > std::string_view(
b);
642 return std::string_view(a) <= std::string_view(
b);
647 return std::string_view(a) >= std::string_view(
b);
#define BLI_assert_msg(a, msg)
void copy_unsafe(char *dst) const
constexpr const char & front() const
static constexpr int64_t not_found
constexpr int64_t rfind(char c, int64_t pos=INT64_MAX) const
constexpr int64_t find_last_of(StringRef chars, int64_t pos=INT64_MAX) const
constexpr int64_t find(char c, int64_t pos=0) const
constexpr const char * begin() const
constexpr const char * end() const
constexpr int64_t find_last_not_of(StringRef chars, int64_t pos=INT64_MAX) const
constexpr int64_t find_first_not_of(StringRef chars, int64_t pos=0) const
constexpr bool is_empty() const
constexpr StringRef substr(int64_t start, int64_t size) const
constexpr StringRefBase(const char *data, int64_t size)
void copy_bytes_truncated(char *dst, int64_t dst_size) const
constexpr bool startswith(StringRef prefix) const
constexpr bool endswith(StringRef suffix) const
constexpr int64_t find_first_of(StringRef chars, int64_t pos=0) const
constexpr IndexRange index_range() const
constexpr int64_t size() const
void copy_utf8_truncated(char *dst, int64_t dst_size) const
constexpr StringRef trim() const
constexpr const char * data() const
constexpr const char & back() const
constexpr const char * c_str() const
StringRefNull(std::nullptr_t)=delete
constexpr StringRefNull()
constexpr char operator[](int64_t index) const
constexpr StringRef drop_prefix(int64_t n) const
constexpr StringRef drop_suffix(int64_t n) const
constexpr char operator[](int64_t index) const
constexpr StringRef drop_known_prefix(StringRef prefix) const
constexpr StringRef drop_known_suffix(StringRef suffix) const
float length(VecOp< float, D >) RET
constexpr int64_t index_or_npos_to_int64(size_t index)
bool operator!=(const CPPType &a, const CPPType &b)
std::string_view format_as(StringRef str)
std::ostream & operator<<(std::ostream &stream, const eAlpha &space)
constexpr bool operator>=(StringRef a, StringRef b)
constexpr bool operator<(StringRef a, StringRef b)
constexpr bool operator<=(StringRef a, StringRef b)
constexpr bool operator>(StringRef a, StringRef b)
bool operator==(const CPPType &a, const CPPType &b)
std::string operator+(StringRef a, StringRef b)