Home | History | Annotate | Download | only in Common

Lines Matching defs:const

11 inline int MyStringLen(const T *s)

19 inline T * MyStringCopy(T *dest, const T *src)
28 inline const wchar_t* MyStringGetNextCharPointer(const wchar_t *p)
30 inline wchar_t* MyStringGetPrevCharPointer(const wchar_t *, wchar_t *p)
32 inline const wchar_t* MyStringGetPrevCharPointer(const wchar_t *, const wchar_t *p)
37 inline const char* MyStringGetNextCharPointer(const char *p)
46 inline const char* MyStringGetPrevCharPointer(const char *base, const char *p)
95 int MyStringCollate(const char *s1, const char *s2);
96 int MyStringCollateNoCase(const char *s1, const char *s2);
98 int MyStringCollate(const wchar_t *s1, const wchar_t *s2);
99 int MyStringCollateNoCase(const wchar_t *s1, const wchar_t *s2);
102 int MyStringCompare(const char *s1, const char *s2);
103 int MyStringCompare(const wchar_t *s1, const wchar_t *s2);
105 // int MyStringCompareNoCase(const char *s1, const char *s2);
106 int MyStringCompareNoCase(const wchar_t *s1, const wchar_t *s2);
111 void TrimLeftWithCharSet(const CStringBase &charSet)
113 const T *p = _chars;
118 void TrimRightWithCharSet(const CStringBase &charSet)
120 const T *p = _chars;
121 const T *pLast = NULL;
153 static const T *GetNextCharPointer(const T *p)
155 static const T *GetPrevCharPointer(const T *base, const T *p)
168 const int kMaxStringSize = 0x20000000;
201 void CorrectIndex(int &index) const
216 CStringBase(const T *chars): _chars(0), _length(0), _capacity(0)
223 CStringBase(const CStringBase &s): _chars(0), _length(0), _capacity(0)
231 operator const T*() const { return _chars;}
233 T Back() const { return _chars[_length - 1]; }
263 CStringBase& operator=(const T *chars)
272 CStringBase& operator=(const CStringBase& s)
290 CStringBase& operator+=(const T *s)
298 CStringBase& operator+=(const CStringBase &s)
310 int Length() const { return _length; }
311 bool IsEmpty() const { return (_length == 0); }
313 CStringBase Mid(int startIndex) const
315 CStringBase Mid(int startIndex, int count) const
332 CStringBase Left(int count) const
334 CStringBase Right(int count) const
346 int Compare(const CStringBase& s) const
349 int Compare(const T *s) const
352 int CompareNoCase(const CStringBase& s) const
355 int CompareNoCase(const T *s) const
359 int Collate(const CStringBase& s) const
361 int CollateNoCase(const CStringBase& s) const
365 int Find(T c) const { return Find(c, 0); }
366 int Find(T c, int startIndex) const
368 const T *p = _chars + startIndex;
378 int Find(const CStringBase &s) const { return Find(s, 0); }
379 int Find(const CStringBase &s, int startIndex) const
394 int ReverseFind(T c) const
398 const T *p = _chars + _length - 1;
408 int FindOneOf(const CStringBase &s) const
418 const T *p = _chars;
444 const T *p = _chars;
445 const T *pLast = NULL;
476 int Insert(int index, const CStringBase &s)
507 int Replace(const CStringBase &oldString, const CStringBase &newString)
544 CStringBase<T> operator+(const CStringBase<T>& s1, const CStringBase<T>& s2)
552 CStringBase<T> operator+(const CStringBase<T>& s, T c)
560 CStringBase<T> operator+(T c, const CStringBase<T>& s)
568 CStringBase<T> operator+(const CStringBase<T>& s, const T * chars)
576 CStringBase<T> operator+(const T * chars, const CStringBase<T>& s)
584 bool operator==(const CStringBase<T>& s1, const CStringBase<T>& s2)
588 bool operator<(const CStringBase<T>& s1, const CStringBase<T>& s2)
592 bool operator==(const T *s1, const CStringBase<T>& s2)
596 bool operator==(const CStringBase<T>& s1, const T *s2)
600 bool operator!=(const CStringBase<T>& s1, const CStringBase<T>& s2)
604 bool operator!=(const T *s1, const CStringBase<T>& s2)
608 bool operator!=(const CStringBase<T>& s1, const T *s2)