• Home
  • Raw
  • Download

Lines Matching refs:wchar_t

44 inline bool IsPathSepar(wchar_t c) { return IS_PATH_SEPAR(c); }  in IsPathSepar()
71 inline unsigned MyStringLen(const wchar_t *s) in MyStringLen()
78 inline void MyStringCopy(wchar_t *dest, const wchar_t *src) in MyStringCopy()
83 inline void MyStringCat(wchar_t *dest, const wchar_t *src) in MyStringCat()
105 int FindCharPosInString(const wchar_t *s, wchar_t c) throw();
141 inline wchar_t MyCharLower_Ascii(wchar_t c) in MyCharLower_Ascii()
144 return (wchar_t)(c + 0x20); in MyCharLower_Ascii()
148 wchar_t MyCharUpper_WIN(wchar_t c) throw();
150 inline wchar_t MyCharUpper(wchar_t c) throw() in MyCharUpper()
153 if (c <= 'z') return (wchar_t)(c - 0x20); in MyCharUpper()
157 return (wchar_t)(unsigned)(UINT_PTR)CharUpperW((LPWSTR)(UINT_PTR)(unsigned)c); in MyCharUpper()
159 return (wchar_t)MyCharUpper_WIN(c); in MyCharUpper()
162 return (wchar_t)towupper(c); in MyCharUpper()
192 void MyStringLower_Ascii(wchar_t *s) throw();
196 bool StringsAreEqualNoCase(const wchar_t *s1, const wchar_t *s2) throw();
199 bool IsString1PrefixedByString2(const wchar_t *s1, const wchar_t *s2) throw();
200 bool IsString1PrefixedByString2(const wchar_t *s1, const char *s2) throw();
201 bool IsString1PrefixedByString2_NoCase_Ascii(const wchar_t *u, const char *a) throw();
202 bool IsString1PrefixedByString2_NoCase(const wchar_t *s1, const wchar_t *s2) throw();
205 int MyStringCompareNoCase(const wchar_t *s1, const wchar_t *s2) throw();
210 bool StringsAreEqual_Ascii(const wchar_t *u, const char *a) throw();
212 bool StringsAreEqualNoCase_Ascii(const wchar_t *s1, const char *s2) throw();
213 bool StringsAreEqualNoCase_Ascii(const wchar_t *s1, const wchar_t *s2) throw();
279 FORBID_STRING_OPS_AString(wchar_t)
342 void SetFromWStr_if_Ascii(const wchar_t *s);
481 wchar_t *_chars;
487 memmove(_chars + dest, _chars + src, (size_t)(_len - src + 1) * sizeof(wchar_t)); in MoveItems()
498 UString(unsigned num, const wchar_t *s); // for Mid
500 UString(const UString &s, wchar_t c); // it's for String + char
501 UString(const wchar_t *s1, unsigned num1, const wchar_t *s2, unsigned num2);
503 friend UString operator+(const UString &s, wchar_t c) { return UString(s, c); } ;
507 friend UString operator+(const UString &s1, const wchar_t *s2);
508 friend UString operator+(const wchar_t *s1, const UString &s2);
529 explicit UString(wchar_t c);
533 UString(const wchar_t *s);
541 operator const wchar_t *() const { return _chars; }
542 const wchar_t *Ptr() const { return _chars; } in Ptr()
543 const wchar_t *Ptr(unsigned pos) const { return _chars + pos; } in Ptr()
544 const wchar_t *RightPtr(unsigned num) const { return _chars + _len - num; } in RightPtr()
545 wchar_t Back() const { return _chars[(size_t)_len - 1]; } in Back()
547 void ReplaceOneCharAtPos(unsigned pos, wchar_t c) { _chars[pos] = c; } in ReplaceOneCharAtPos()
549 wchar_t *GetBuf() { return _chars; } in GetBuf()
551 wchar_t *GetBuf(unsigned minLen) in GetBuf()
557 wchar_t *GetBuf_SetEnd(unsigned minLen) in GetBuf_SetEnd()
561 wchar_t *chars = _chars; in GetBuf_SetEnd()
571 wchar_t *chars = _chars; in ReleaseBuf_CalcLen()
576 UString &operator=(wchar_t c);
577 UString &operator=(char c) { return (*this)=((wchar_t)(unsigned char)c); }
578 UString &operator=(const wchar_t *s);
580 void SetFrom(const wchar_t *s, unsigned len); // no check
585 UString &operator+=(wchar_t c)
590 wchar_t *chars = _chars;
597 UString &operator+=(char c) { return (*this)+=((wchar_t)(unsigned char)c); }
604 UString &operator+=(const wchar_t *s);
620 bool IsEqualTo_NoCase(const wchar_t *s) const { return StringsAreEqualNoCase(_chars, s); } in IsEqualTo_NoCase()
622 int Compare(const wchar_t *s) const { return wcscmp(_chars, s); } in Compare()
626 bool IsPrefixedBy(const wchar_t *s) const { return IsString1PrefixedByString2(_chars, s); } in IsPrefixedBy()
627 …bool IsPrefixedBy_NoCase(const wchar_t *s) const { return IsString1PrefixedByString2_NoCase(_chars… in IsPrefixedBy_NoCase()
633 const wchar_t *s = _chars; in IsAscii()
639 int Find(wchar_t c) const { return FindCharPosInString(_chars, c); } in Find()
640 int Find(wchar_t c, unsigned startIndex) const in Find()
646 int ReverseFind(wchar_t c) const throw();
650 int Find(const wchar_t *s) const { return Find(s, 0); } in Find()
651 int Find(const wchar_t *s, unsigned startIndex) const throw();
661 void InsertAtFront(wchar_t c);
663 void Insert(unsigned index, const wchar_t *s);
666 void RemoveChar(wchar_t ch) throw();
668 void Replace(wchar_t oldChar, wchar_t newChar) throw();
689 inline bool operator==(const UString &s1, const wchar_t *s2) { return wcscmp(s1, s2) == 0; }
690 inline bool operator==(const wchar_t *s1, const UString &s2) { return wcscmp(s1, s2) == 0; }
693 inline bool operator!=(const UString &s1, const wchar_t *s2) { return wcscmp(s1, s2) != 0; }
694 inline bool operator!=(const wchar_t *s1, const UString &s2) { return wcscmp(s1, s2) != 0; }
699 void operator==(wchar_t c1, const UString &s2);
700 void operator==(const UString &s1, wchar_t c2);
702 void operator+(wchar_t c, const UString &s); // this function can be OK, but we don't use it
714 void operator-(const UString &s1, wchar_t c);
734 wchar_t *_chars;
747 UString2 &operator=(wchar_t c);
748 UString2(wchar_t c);
752 UString2(const wchar_t *s);
761 const wchar_t *GetRawPtr() const { return _chars; } in GetRawPtr()
763 int Compare(const wchar_t *s) const { return wcscmp(_chars, s); } in Compare()
765 wchar_t *GetBuf(unsigned minLen) in GetBuf()
773 UString2 &operator=(const wchar_t *s);
779 bool operator==(const UString2 &s1, const wchar_t *s2);
780 bool operator==(const wchar_t *s1, const UString2 &s2);
783 inline bool operator!=(const UString2 &s1, const wchar_t *s2) { return !(s1 == s2); }
784 inline bool operator!=(const wchar_t *s1, const UString2 &s2) { return !(s1 == s2); }
789 void operator==(wchar_t c1, const UString2 &s2);
790 void operator==(const UString2 &s1, wchar_t c2);
795 void operator+(const UString2 &s1, const wchar_t *s2);
796 void operator+(const wchar_t *s1, const UString2 &s2);
797 void operator+(wchar_t c, const UString2 &s);
798 void operator+(const UString2 &s, wchar_t c);
803 void operator-(const UString2 &s1, wchar_t c);
832 typedef wchar_t FChar;
850 FString us2fs(const wchar_t *s);