Lines Matching refs:wchar_t
55 inline bool IsPathSepar(wchar_t c) { return IS_PATH_SEPAR(c); } in IsPathSepar()
82 inline unsigned MyStringLen(const wchar_t *s) in MyStringLen()
89 inline void MyStringCopy(wchar_t *dest, const wchar_t *src) in MyStringCopy()
94 inline void MyStringCat(wchar_t *dest, const wchar_t *src) in MyStringCat()
116 int FindCharPosInString(const wchar_t *s, wchar_t c) throw();
152 inline wchar_t MyCharLower_Ascii(wchar_t c) in MyCharLower_Ascii()
155 return (wchar_t)(c + 0x20); in MyCharLower_Ascii()
159 wchar_t MyCharUpper_WIN(wchar_t c) throw();
161 inline wchar_t MyCharUpper(wchar_t c) throw() in MyCharUpper()
164 if (c <= 'z') return (wchar_t)(c - 0x20); in MyCharUpper()
168 return (wchar_t)(unsigned)(UINT_PTR)CharUpperW((LPWSTR)(UINT_PTR)(unsigned)c); in MyCharUpper()
170 return (wchar_t)MyCharUpper_WIN(c); in MyCharUpper()
173 return (wchar_t)towupper((wint_t)c); in MyCharUpper()
203 void MyStringLower_Ascii(wchar_t *s) throw();
207 bool StringsAreEqualNoCase(const wchar_t *s1, const wchar_t *s2) throw();
210 bool IsString1PrefixedByString2(const wchar_t *s1, const wchar_t *s2) throw();
211 bool IsString1PrefixedByString2(const wchar_t *s1, const char *s2) throw();
213 bool IsString1PrefixedByString2_NoCase_Ascii(const wchar_t *u, const char *a) throw();
214 bool IsString1PrefixedByString2_NoCase(const wchar_t *s1, const wchar_t *s2) throw();
217 int MyStringCompareNoCase(const wchar_t *s1, const wchar_t *s2) throw();
223 bool StringsAreEqual_Ascii(const wchar_t *u, const char *a) throw();
225 bool StringsAreEqualNoCase_Ascii(const wchar_t *s1, const char *s2) throw();
226 bool StringsAreEqualNoCase_Ascii(const wchar_t *s1, const wchar_t *s2) throw();
292 FORBID_STRING_OPS_AString(wchar_t)
362 void SetFromWStr_if_Ascii(const wchar_t *s);
525 wchar_t *_chars;
531 memmove(_chars + dest, _chars + src, (size_t)(_len - src + 1) * sizeof(wchar_t)); in MoveItems()
542 UString(unsigned num, const wchar_t *s); // for Mid
544 UString(const UString &s, wchar_t c); // it's for String + char
545 UString(const wchar_t *s1, unsigned num1, const wchar_t *s2, unsigned num2);
547 friend UString operator+(const UString &s, wchar_t c) { return UString(s, c); }
551 friend UString operator+(const UString &s1, const wchar_t *s2);
552 friend UString operator+(const wchar_t *s1, const UString &s2);
579 explicit UString(wchar_t c);
583 UString(const wchar_t *s);
591 operator const wchar_t *() const { return _chars; }
592 wchar_t *Ptr_non_const() const { return _chars; } in Ptr_non_const()
593 const wchar_t *Ptr() const { return _chars; } in Ptr()
594 const wchar_t *Ptr(unsigned pos) const { return _chars + pos; } in Ptr()
595 const wchar_t *RightPtr(unsigned num) const { return _chars + _len - num; } in RightPtr()
596 wchar_t Back() const { return _chars[(size_t)_len - 1]; } in Back()
598 void ReplaceOneCharAtPos(unsigned pos, wchar_t c) { _chars[pos] = c; } in ReplaceOneCharAtPos()
600 wchar_t *GetBuf() { return _chars; } in GetBuf()
602 wchar_t *GetBuf(unsigned minLen) in GetBuf()
608 wchar_t *GetBuf_SetEnd(unsigned minLen) in GetBuf_SetEnd()
612 wchar_t *chars = _chars; in GetBuf_SetEnd()
622 wchar_t *chars = _chars; in ReleaseBuf_CalcLen()
627 UString &operator=(wchar_t c);
628 UString &operator=(char c) { return (*this)=((wchar_t)(unsigned char)c); }
629 UString &operator=(const wchar_t *s);
631 void SetFrom(const wchar_t *s, unsigned len); // no check
636 UString &operator+=(wchar_t c)
641 wchar_t *chars = _chars;
648 UString &operator+=(char c) { return (*this)+=((wchar_t)(unsigned char)c); }
655 UString &operator+=(const wchar_t *s);
672 bool IsEqualTo_NoCase(const wchar_t *s) const { return StringsAreEqualNoCase(_chars, s); } in IsEqualTo_NoCase()
674 int Compare(const wchar_t *s) const { return wcscmp(_chars, s); } in Compare()
678 bool IsPrefixedBy(const wchar_t *s) const { return IsString1PrefixedByString2(_chars, s); } in IsPrefixedBy()
679 …bool IsPrefixedBy_NoCase(const wchar_t *s) const { return IsString1PrefixedByString2_NoCase(_chars… in IsPrefixedBy_NoCase()
685 const wchar_t *s = _chars; in IsAscii()
691 int Find(wchar_t c) const { return FindCharPosInString(_chars, c); } in Find()
692 int Find(wchar_t c, unsigned startIndex) const in Find()
698 int ReverseFind(wchar_t c) const throw();
702 int Find(const wchar_t *s) const { return Find(s, 0); } in Find()
703 int Find(const wchar_t *s, unsigned startIndex) const throw();
713 void InsertAtFront(wchar_t c);
715 void Insert(unsigned index, const wchar_t *s);
718 void RemoveChar(wchar_t ch) throw();
720 void Replace(wchar_t oldChar, wchar_t newChar) throw();
763 inline bool operator==(const UString &s1, const wchar_t *s2) { return wcscmp(s1, s2) == 0; }
764 inline bool operator==(const wchar_t *s1, const UString &s2) { return wcscmp(s1, s2) == 0; }
767 inline bool operator!=(const UString &s1, const wchar_t *s2) { return wcscmp(s1, s2) != 0; }
768 inline bool operator!=(const wchar_t *s1, const UString &s2) { return wcscmp(s1, s2) != 0; }
773 void operator==(wchar_t c1, const UString &s2);
774 void operator==(const UString &s1, wchar_t c2);
776 void operator+(wchar_t c, const UString &s); // this function can be OK, but we don't use it
788 void operator-(const UString &s1, wchar_t c);
808 wchar_t *_chars;
821 UString2 &operator=(wchar_t c);
835 UString2(const wchar_t *s);
844 const wchar_t *GetRawPtr() const { return _chars; } in GetRawPtr()
846 int Compare(const wchar_t *s) const { return wcscmp(_chars, s); } in Compare()
848 wchar_t *GetBuf(unsigned minLen) in GetBuf()
856 UString2 &operator=(const wchar_t *s);
862 bool operator==(const UString2 &s1, const wchar_t *s2);
863 bool operator==(const wchar_t *s1, const UString2 &s2);
866 inline bool operator!=(const UString2 &s1, const wchar_t *s2) { return !(s1 == s2); }
867 inline bool operator!=(const wchar_t *s1, const UString2 &s2) { return !(s1 == s2); }
872 void operator==(wchar_t c1, const UString2 &s2);
873 void operator==(const UString2 &s1, wchar_t c2);
878 void operator+(const UString2 &s1, const wchar_t *s2);
879 void operator+(const wchar_t *s1, const UString2 &s2);
880 void operator+(wchar_t c, const UString2 &s);
881 void operator+(const UString2 &s, wchar_t c);
886 void operator-(const UString2 &s1, wchar_t c);
917 typedef wchar_t FChar;
979 FString us2fs(const wchar_t *s);
1011 #define WCHAR_IN_FILE_NAME_BACKSLASH_REPLACEMENT ((wchar_t)((unsigned)(0xF000) + (unsigned)'\\'))