Home | History | Annotate | Download | only in Common

Lines Matching defs:wchar_t

24 inline bool IsPathSepar(wchar_t c) { return IS_PATH_SEPAR(c); }

51 inline unsigned MyStringLen(const wchar_t *s)
58 inline void MyStringCopy(wchar_t *dest, const wchar_t *src)
64 inline wchar_t *MyWcpCpy(wchar_t *dest, const wchar_t *src)
68 wchar_t c = *src;
79 int FindCharPosInString(const wchar_t *s, wchar_t c) throw();
98 inline wchar_t MyCharUpper_Ascii(wchar_t c)
101 return (wchar_t)(c - 0x20);
113 inline wchar_t MyCharLower_Ascii(wchar_t c)
116 return (wchar_t)(c + 0x20);
120 wchar_t MyCharUpper_WIN(wchar_t c) throw();
122 inline wchar_t MyCharUpper(wchar_t c) throw()
125 if (c <= 'z') return (wchar_t)(c - 0x20);
129 return (wchar_t)(unsigned)(UINT_PTR)CharUpperW((LPWSTR)(UINT_PTR)(unsigned)c);
131 return (wchar_t)MyCharUpper_WIN(c);
134 return (wchar_t)towupper(c);
139 wchar_t MyCharLower_WIN(wchar_t c) throw();
141 inline wchar_t MyCharLower(wchar_t c) throw()
144 if (c <= 'Z') return (wchar_t)(c + 0x20);
148 return (wchar_t)(unsigned)(UINT_PTR)CharLowerW((LPWSTR)(UINT_PTR)(unsigned)c);
150 return (wchar_t)MyCharLower_WIN(c);
153 return (wchar_t)tolower(c);
161 // void MyStringUpper_Ascii(wchar_t *s) throw();
163 void MyStringLower_Ascii(wchar_t *s) throw();
164 // wchar_t *MyStringUpper(wchar_t *s) STRING_UNICODE_THROW;
165 // wchar_t *MyStringLower(wchar_t *s) STRING_UNICODE_THROW;
167 bool StringsAreEqualNoCase(const wchar_t *s1, const wchar_t *s2) throw();
170 bool IsString1PrefixedByString2(const wchar_t *s1, const wchar_t *s2) throw();
171 bool IsString1PrefixedByString2_NoCase(const wchar_t *s1, const wchar_t *s2) throw();
173 int MyStringCompareNoCase(const wchar_t *s1, const wchar_t *s2) throw();
174 // int MyStringCompareNoCase_N(const wchar_t *s1, const wchar_t *s2, unsigned num) throw();
178 bool StringsAreEqual_Ascii(const wchar_t *u, const char *a) throw();
180 bool StringsAreEqualNoCase_Ascii(const wchar_t *s1, const char *s2) throw();
181 bool StringsAreEqualNoCase_Ascii(const wchar_t *s1, const wchar_t *s2) throw();
218 AString &operator+=(wchar_t c);
219 AString &operator=(wchar_t c);
220 AString(wchar_t c);
221 void Find(wchar_t c) const;
222 void Find(wchar_t c, unsigned startIndex) const;
223 void ReverseFind(wchar_t c) const;
224 void InsertAtFront(wchar_t c);
225 void RemoveChar(wchar_t ch);
226 void Replace(wchar_t oldChar, wchar_t newChar);
278 void SetFromWStr_if_Ascii(const wchar_t *s);
416 wchar_t *_chars;
422 memmove(_chars + dest, _chars + src, (size_t)(_len - src + 1) * sizeof(wchar_t));
433 UString(unsigned num, const wchar_t *s); // for Mid
435 UString(const UString &s, wchar_t c); // it's for String + char
436 UString(const wchar_t *s1, unsigned num1, const wchar_t *s2, unsigned num2);
438 friend UString operator+(const UString &s, wchar_t c) { return UString(s, c); } ;
439 // friend UString operator+(wchar_t c, const UString &s); // is not supported
442 friend UString operator+(const UString &s1, const wchar_t *s2);
443 friend UString operator+(const wchar_t *s1, const UString &s2);
468 UString(wchar_t c);
469 UString(const wchar_t *s);
477 operator const wchar_t *() const { return _chars; }
478 const wchar_t *Ptr() const { return _chars; }
479 const wchar_t *Ptr(unsigned pos) const { return _chars + pos; }
480 const wchar_t *RightPtr(unsigned num) const { return _chars + _len - num; }
481 wchar_t Back() const { return _chars[_len - 1]; }
483 void ReplaceOneCharAtPos(unsigned pos, wchar_t c) { _chars[pos] = c; }
485 wchar_t *GetBuf(unsigned minLen)
491 wchar_t *GetBuf_SetEnd(unsigned minLen)
495 wchar_t *chars = _chars;
505 wchar_t *chars = _chars;
510 UString &operator=(wchar_t c);
511 UString &operator=(const wchar_t *s);
515 UString &operator+=(wchar_t c)
520 wchar_t *chars = _chars;
532 UString &operator+=(const wchar_t *s);
535 void SetFrom(const wchar_t *s, unsigned len); // no check
549 bool IsEqualTo_NoCase(const wchar_t *s) const { return StringsAreEqualNoCase(_chars, s); }
551 int Compare(const wchar_t *s) const { return wcscmp(_chars, s); }
553 // int CompareNoCase(const wchar_t *s) const { return MyStringCompareNoCase(_chars, s); }
555 bool IsPrefixedBy(const wchar_t *s) const { return IsString1PrefixedByString2(_chars, s); }
556 bool IsPrefixedBy_NoCase(const wchar_t *s) const { return IsString1PrefixedByString2_NoCase(_chars, s); }
562 const wchar_t *s = _chars;
568 int Find(wchar_t c) const { return FindCharPosInString(_chars, c); }
569 int Find(wchar_t c, unsigned startIndex) const
575 int ReverseFind(wchar_t c) const throw();
579 int Find(const wchar_t *s) const { return Find(s, 0); }
580 int Find(const wchar_t *s, unsigned startIndex) const throw();
590 void InsertAtFront(wchar_t c);
591 // void Insert(unsigned index, wchar_t c);
592 void Insert(unsigned index, const wchar_t *s);
595 void RemoveChar(wchar_t ch) throw();
597 void Replace(wchar_t oldChar, wchar_t newChar) throw();
618 inline bool operator==(const UString &s1, const wchar_t *s2) { return wcscmp(s1, s2) == 0; }
619 inline bool operator==(const wchar_t *s1, const UString &s2) { return wcscmp(s1, s2) == 0; }
622 inline bool operator!=(const UString &s1, const wchar_t *s2) { return wcscmp(s1, s2) != 0; }
623 inline bool operator!=(const wchar_t *s1, const UString &s2) { return wcscmp(s1, s2) != 0; }
628 void operator==(wchar_t c1, const UString &s2);
629 void operator==(const UString &s1, wchar_t c2);
631 void operator+(wchar_t c, const UString &s); // this function can be OK, but we don't use it
637 void operator-(const UString &s1, wchar_t c);
640 // can we forbid these functions, if wchar_t is 32-bit ?
657 wchar_t *_chars;
667 UString2 &operator=(wchar_t c);
673 // UString2(wchar_t c);
674 UString2(const wchar_t *s);
682 // operator const wchar_t *() const { return _chars; }
683 const wchar_t *GetRawPtr() const { return _chars; }
685 wchar_t *GetBuf(unsigned minLen)
693 UString2 &operator=(const wchar_t *s);
699 bool operator==(const UString2 &s1, const wchar_t *s2);
700 bool operator==(const wchar_t *s1, const UString2 &s2);
703 inline bool operator!=(const UString2 &s1, const wchar_t *s2) { return !(s1 == s2); }
704 inline bool operator!=(const wchar_t *s1, const UString2 &s2) { return !(s1 == s2); }
709 void operator==(wchar_t c1, const UString2 &s2);
710 void operator==(const UString2 &s1, wchar_t c2);
715 void operator+(const UString2 &s1, const wchar_t *s2);
716 void operator+(const wchar_t *s1, const UString2 &s2);
717 void operator+(wchar_t c, const UString2 &s);
718 void operator+(const UString2 &s, wchar_t c);
723 void operator-(const UString2 &s1, wchar_t c);
752 typedef wchar_t FChar;
768 FString us2fs(const wchar_t *s);