31 return a.
str ==
b.str;
53#if defined(_MSC_VER) && !defined(NDEBUG)
71 template<FixedString FStr>
friend UString operator""_ustr();
90 return ptr_->str.c_str();
95 return a.ptr_ ==
b.ptr_;
110 return ptr_->str.size();
115 return ptr_->str.empty();
171template<FixedString FStr>
inline UString
operator""_ustr()
188 static std::atomic<const blender::detail::UStringEntry *> static_entry;
190 if (entry ==
nullptr) [[unlikely]] {
192 static_entry.store(entry, std::memory_order_release);
202 return std::string_view(
str.ref());
constexpr StringRefNull()
friend bool operator==(const UString &a, const StringRef b)
friend bool operator==(const UString &a, const UString &b)
const std::string & string() const
const char * c_str() const
StringRefNull ref() const
char operator[](const int64_t i) const
UString(const StringRef str)
static constexpr blender::detail::UStringEntry EMPTY_ENTRY
const blender::detail::UStringEntry & ustring_ensure_entry(StringRef str)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
unsigned __int64 uint64_t
std::string_view format_as(StringRef str)
constexpr uint64_t hash_string(StringRef str)
constexpr uint64_t get_default_hash(const T &v, const Args &...args)
uint64_t operator()(const UString &value) const
constexpr uint64_t operator()(const StringRef value) const
constexpr uint64_t operator()(const StringRef value) const
uint64_t operator()(const blender::detail::UStringEntry &value) const
friend bool operator==(const UStringEntry &a, const UStringEntry &b)
friend bool operator==(const UStringEntry &a, const StringRef b)