Lines Matching refs:WideString
30 class WideString {
36 static WideString Format(const wchar_t* lpszFormat, ...) WARN_UNUSED_RESULT;
37 static WideString FormatV(const wchar_t* lpszFormat,
40 WideString();
41 WideString(const WideString& other);
42 WideString(WideString&& other) noexcept;
46 WideString(wchar_t ch);
48 WideString(const wchar_t* ptr);
52 WideString(char) = delete;
54 WideString(const wchar_t* ptr, size_t len);
56 explicit WideString(const WideStringView& str);
57 WideString(const WideStringView& str1, const WideStringView& str2);
58 WideString(const std::initializer_list<WideStringView>& list);
60 ~WideString();
62 static WideString FromLocal(const ByteStringView& str) WARN_UNUSED_RESULT;
63 static WideString FromCodePage(const ByteStringView& str,
66 static WideString FromUTF8(const ByteStringView& str) WARN_UNUSED_RESULT;
67 static WideString FromUTF16LE(const unsigned short* str,
106 const WideString& operator=(const wchar_t* str);
107 const WideString& operator=(const WideString& stringSrc);
108 const WideString& operator=(const WideStringView& stringSrc);
110 const WideString& operator+=(const wchar_t* str);
111 const WideString& operator+=(wchar_t ch);
112 const WideString& operator+=(const WideString& str);
113 const WideString& operator+=(const WideStringView& str);
117 bool operator==(const WideString& other) const;
121 bool operator!=(const WideString& other) const { return !(*this == other); }
125 bool operator<(const WideString& other) const;
138 int Compare(const WideString& str) const;
141 WideString Mid(size_t first, size_t count) const;
142 WideString Left(size_t count) const;
143 WideString Right(size_t count) const;
198 void AllocCopy(WideString& dest, size_t nCopyLen, size_t nCopyIndex) const;
208 inline WideString operator+(const WideStringView& str1,
210 return WideString(str1, str2);
212 inline WideString operator+(const WideStringView& str1, const wchar_t* str2) {
213 return WideString(str1, str2);
215 inline WideString operator+(const wchar_t* str1, const WideStringView& str2) {
216 return WideString(str1, str2);
218 inline WideString operator+(const WideStringView& str1, wchar_t ch) {
219 return WideString(str1, WideStringView(ch));
221 inline WideString operator+(wchar_t ch, const WideStringView& str2) {
222 return WideString(ch, str2);
224 inline WideString operator+(const WideString& str1, const WideString& str2) {
225 return WideString(str1.AsStringView(), str2.AsStringView());
227 inline WideString operator+(const WideString& str1, wchar_t ch) {
228 return WideString(str1.AsStringView(), WideStringView(ch));
230 inline WideString operator+(wchar_t ch, const WideString& str2) {
231 return WideString(ch, str2.AsStringView());
233 inline WideString operator+(const WideString& str1, const wchar_t* str2) {
234 return WideString(str1.AsStringView(), str2);
236 inline WideString operator+(const wchar_t* str1, const WideString& str2) {
237 return WideString(str1, str2.AsStringView());
239 inline WideString operator+(const WideString& str1,
241 return WideString(str1.AsStringView(), str2);
243 inline WideString operator+(const WideStringView& str1,
244 const WideString& str2) {
245 return WideString(str1, str2.AsStringView());
247 inline bool operator==(const wchar_t* lhs, const WideString& rhs) {
250 inline bool operator==(const WideStringView& lhs, const WideString& rhs) {
253 inline bool operator!=(const wchar_t* lhs, const WideString& rhs) {
256 inline bool operator!=(const WideStringView& lhs, const WideString& rhs) {
259 inline bool operator<(const wchar_t* lhs, const WideString& rhs) {
263 std::wostream& operator<<(std::wostream& os, const WideString& str);
264 std::ostream& operator<<(std::ostream& os, const WideString& str);
270 using WideString = fxcrt::WideString; variable
277 struct hash<WideString> {
278 std::size_t operator()(const WideString& str) const {
285 extern template struct std::hash<WideString>;