Home | History | Annotate | Download | only in Common

Lines Matching defs:_chars

113     const T *p = _chars;

116 Delete(0, (int)(p - _chars));
120 const T *p = _chars;
135 int i = (int)(pLast - _chars);
142 memmove(_chars + destIndex, _chars + srcIndex,
158 T *_chars;
176 newBuffer[i] = _chars[i];
177 delete []_chars;
179 _chars = newBuffer;
180 _chars[_length] = 0;
208 CStringBase(): _chars(0), _length(0), _capacity(0) { SetCapacity(3); }
209 CStringBase(T c): _chars(0), _length(0), _capacity(0)
212 _chars[0] = c;
213 _chars[1] = 0;
216 CStringBase(const T *chars): _chars(0), _length(0), _capacity(0)
220 MyStringCopy(_chars, chars); // can be optimized by memove()
223 CStringBase(const CStringBase &s): _chars(0), _length(0), _capacity(0)
226 MyStringCopy(_chars, s._chars);
229 ~CStringBase() { delete []_chars; }
231 operator const T*() const { return _chars;}
233 T Back() const { return _chars[_length - 1]; }
241 return _chars;
243 void ReleaseBuffer() { ReleaseBuffer(MyStringLen(_chars)); }
250 _chars[newLength] = 0;
258 _chars[0] = c;
259 _chars[1] = 0;
268 MyStringCopy(_chars, chars);
278 MyStringCopy(_chars, s._chars);
286 _chars[_length] = c;
287 _chars[++_length] = 0;
294 MyStringCopy(_chars + _length, s);
301 MyStringCopy(_chars + _length, s._chars);
308 _chars[0] = 0;
325 // MyStringNCopy(result._chars, _chars + startIndex, count);
327 result._chars[i] = _chars[startIndex + i];
328 result._chars[count] = 0;
342 { MyStringUpper(_chars); }
344 { MyStringLower(_chars); }
347 { return MyStringCompare(_chars, s._chars); }
350 { return MyStringCompare(_chars, s); }
353 { return MyStringCompareNoCase(_chars, s._chars); }
356 { return MyStringCompareNoCase(_chars, s); }
360 { return MyStringCollate(_chars, s._chars); }
362 { return MyStringCollateNoCase(_chars, s._chars); }
368 const T *p = _chars + startIndex;
372 return (int)(p - _chars);
387 if (_chars[startIndex+j] != s._chars[j])
398 const T *p = _chars + _length - 1;
402 return (int)(p - _chars);
403 if (p == _chars)
405 p = GetPrevCharPointer(_chars, p);
411 if (s.Find(_chars[i]) >= 0)
418 const T *p = _chars;
421 Delete(0, p - _chars);
444 const T *p = _chars;
459 int i = pLast - _chars;
472 _chars[index] = c;
484 _chars[index + i] = s[i];
501 _chars[pos] = newChar;