Lines Matching refs:_chars
161 char *_chars; variable
167 memmove(_chars + dest, _chars + src, (size_t)(_len - src + 1) * sizeof(char)); in MoveItems()
194 ~AString() { MY_STRING_DELETE(_chars); } in ~AString()
198 void Empty() { _len = 0; _chars[0] = 0; } in Empty()
200 operator const char *() const { return _chars; }
201 const char *Ptr() const { return _chars; } in Ptr()
202 const char *Ptr(unsigned pos) const { return _chars + pos; } in Ptr()
203 const char *RightPtr(unsigned num) const { return _chars + _len - num; } in RightPtr()
204 char Back() const { return _chars[_len - 1]; } in Back()
206 void ReplaceOneCharAtPos(unsigned pos, char c) { _chars[pos] = c; } in ReplaceOneCharAtPos()
214 return _chars; in GetBuffer()
216 void ReleaseBuffer() { ReleaseBuffer(MyStringLen(_chars)); } in ReleaseBuffer()
217 void ReleaseBuffer(unsigned newLen) { _len = newLen; _chars[newLen] = 0; } in ReleaseBuffer()
228 char *chars = _chars;
250 bool IsPrefixedBy(const char *s) const { return IsString1PrefixedByString2(_chars, s); } in IsPrefixedBy()
253 int Find(char c) const { return FindCharPosInString(_chars, c); } in Find()
256 int pos = FindCharPosInString(_chars + startIndex, c); in Find()
283 void DeleteBack() { _chars[--_len] = 0; } in DeleteBack()
289 _chars[index] = 0; in DeleteFrom()
319 wchar_t *_chars; variable
325 memmove(_chars + dest, _chars + src, (size_t)(_len - src + 1) * sizeof(wchar_t)); in MoveItems()
352 ~UString() { MY_STRING_DELETE(_chars); } in ~UString()
356 void Empty() { _len = 0; _chars[0] = 0; } in Empty()
358 operator const wchar_t *() const { return _chars; }
359 const wchar_t *Ptr() const { return _chars; } in Ptr()
360 const wchar_t *Ptr(unsigned pos) const { return _chars + pos; } in Ptr()
361 const wchar_t *RightPtr(unsigned num) const { return _chars + _len - num; } in RightPtr()
362 wchar_t Back() const { return _chars[_len - 1]; } in Back()
364 void ReplaceOneCharAtPos(unsigned pos, wchar_t c) { _chars[pos] = c; } in ReplaceOneCharAtPos()
372 return _chars; in GetBuffer()
374 void ReleaseBuffer() { ReleaseBuffer(MyStringLen(_chars)); } in ReleaseBuffer()
375 void ReleaseBuffer(unsigned newLen) { _len = newLen; _chars[newLen] = 0; } in ReleaseBuffer()
386 wchar_t *chars = _chars;
401 …UString Mid(unsigned startIndex, unsigned count) const { return UString(count, _chars + startIndex… in Mid()
407 void MakeLower_Ascii() { MyStringLower_Ascii(_chars); } in MakeLower_Ascii()
409 bool IsEqualTo(const char *s) const { return StringsAreEqual_Ascii(_chars, s); } in IsEqualTo()
410 bool IsEqualToNoCase(const wchar_t *s) const { return StringsAreEqualNoCase(_chars, s); } in IsEqualToNoCase()
411 int Compare(const wchar_t *s) const { return wcscmp(_chars, s); } in Compare()
415 bool IsPrefixedBy(const wchar_t *s) const { return IsString1PrefixedByString2(_chars, s); }; in IsPrefixedBy()
418 int Find(wchar_t c) const { return FindCharPosInString(_chars, c); } in Find()
421 int pos = FindCharPosInString(_chars + startIndex, c); in Find()
448 void DeleteBack() { _chars[--_len] = 0; } in DeleteBack()
454 _chars[index] = 0; in DeleteFrom()