33 : str_(windows::widen(str)) {}
40 : str_(windows::widen(str)) {}
47 : str_(windows::widen(str)) {}
49 : str_(std::move(str)) {}
54 : str_(windows::widen(str)) {}
67 : str_(std::move(str)) {}
90 return std::move(str_);
99 return windows::narrow(str_);
107 return windows::narrow(str_);
109 return std::move(str_);
114 str_.swap(other.str_);
126 return lhs.native() == rhs.native();
130 return lhs.native() <=> rhs.native();
138 return std::hash<mini_llvm::SystemString::string_type>()(str.native());
144 constexpr auto parse(std::format_parse_context &ctx) {
148 template <
typename FormatContext>
150 return std::format_to(ctx.out(),
"{}", str.
to_string());
Definition SystemString.h:19
char value_type
Definition SystemString.h:25
SystemString(SystemString &&other) noexcept=default
SystemString(const SystemString &other)=default
std::string to_string() &&
Definition SystemString.h:105
SystemString(const char *str)
Definition SystemString.h:31
const string_type & native() const &noexcept
Definition SystemString.h:85
SystemString(std::string_view str)
Definition SystemString.h:52
string_type & native() &noexcept
Definition SystemString.h:81
SystemString(const std::string &str)
Definition SystemString.h:38
std::string string_type
Definition SystemString.h:26
std::string to_string() const &
Definition SystemString.h:97
SystemString & operator=(SystemString other) noexcept
Definition SystemString.h:76
const value_type * c_str() const noexcept
Definition SystemString.h:93
void swap(SystemString &other) noexcept
Definition SystemString.h:113
string_type && native() &&noexcept
Definition SystemString.h:89
SystemString(std::string &&str)
Definition SystemString.h:45
Definition GraphColoringAllocator.h:13
void swap(FileHandle &lhs, FileHandle &rhs) noexcept
Definition FileHandle.h:61
MINI_LLVM_EXPORT bool operator==(const BigInteger &lhs, const BigInteger &rhs) noexcept
MINI_LLVM_EXPORT std::strong_ordering operator<=>(const BigInteger &lhs, const BigInteger &rhs) noexcept
size_t operator()(const mini_llvm::SystemString &str) const noexcept
Definition SystemString.h:137