Lines Matching refs:_chars
247 char *_chars; variable
253 memmove(_chars + dest, _chars + src, (size_t)(_len - src + 1) * sizeof(char)); in MoveItems()
296 ~AString() { MY_STRING_DELETE(_chars); } in ~AString()
300 void Empty() { _len = 0; _chars[0] = 0; } in Empty()
302 operator const char *() const { return _chars; }
303 const char *Ptr() const { return _chars; } in Ptr()
304 const char *Ptr(unsigned pos) const { return _chars + pos; } in Ptr()
305 const char *RightPtr(unsigned num) const { return _chars + _len - num; } in RightPtr()
306 char Back() const { return _chars[(size_t)_len - 1]; } in Back()
308 void ReplaceOneCharAtPos(unsigned pos, char c) { _chars[pos] = c; } in ReplaceOneCharAtPos()
310 char *GetBuf() { return _chars; } in GetBuf()
318 return _chars; in GetBuf()
324 char *chars = _chars; in GetBuf_SetEnd()
331 void ReleaseBuf_SetEnd(unsigned newLen) { _len = newLen; _chars[newLen] = 0; } in ReleaseBuf_SetEnd()
334 char *chars = _chars; in ReleaseBuf_CalcLen()
350 char *chars = _chars;
371 …AString Mid(unsigned startIndex, unsigned count) const { return AString(count, _chars + startIndex… in Mid()
376 void MakeLower_Ascii() { MyStringLower_Ascii(_chars); } in MakeLower_Ascii()
379 bool IsEqualTo(const char *s) const { return strcmp(_chars, s) == 0; } in IsEqualTo()
380 …bool IsEqualTo_Ascii_NoCase(const char *s) const { return StringsAreEqualNoCase_Ascii(_chars, s); } in IsEqualTo_Ascii_NoCase()
385 bool IsPrefixedBy(const char *s) const { return IsString1PrefixedByString2(_chars, s); } in IsPrefixedBy()
391 const char *s = _chars; in IsAscii()
397 int Find(char c) const { return FindCharPosInString(_chars, c); } in Find()
400 int pos = FindCharPosInString(_chars + startIndex, c); in Find()
432 void DeleteBack() { _chars[--_len] = 0; } in DeleteBack()
438 _chars[index] = 0; in DeleteFrom()
481 wchar_t *_chars; variable
487 memmove(_chars + dest, _chars + src, (size_t)(_len - src + 1) * sizeof(wchar_t)); in MoveItems()
535 ~UString() { MY_STRING_DELETE(_chars); } in ~UString()
539 void Empty() { _len = 0; _chars[0] = 0; } in Empty()
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()
555 return _chars; in GetBuf()
561 wchar_t *chars = _chars; in GetBuf_SetEnd()
568 void ReleaseBuf_SetEnd(unsigned newLen) { _len = newLen; _chars[newLen] = 0; } in ReleaseBuf_SetEnd()
571 wchar_t *chars = _chars; in ReleaseBuf_CalcLen()
590 wchar_t *chars = _chars;
611 …UString Mid(unsigned startIndex, unsigned count) const { return UString(count, _chars + startIndex… in Mid()
617 void MakeLower_Ascii() { MyStringLower_Ascii(_chars); } in MakeLower_Ascii()
619 bool IsEqualTo(const char *s) const { return StringsAreEqual_Ascii(_chars, s); } in IsEqualTo()
620 bool IsEqualTo_NoCase(const wchar_t *s) const { return StringsAreEqualNoCase(_chars, s); } in IsEqualTo_NoCase()
621 …bool IsEqualTo_Ascii_NoCase(const char *s) const { return StringsAreEqualNoCase_Ascii(_chars, s); } in IsEqualTo_Ascii_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 …sPrefixedBy_NoCase(const wchar_t *s) const { return IsString1PrefixedByString2_NoCase(_chars, s); } in IsPrefixedBy_NoCase()
633 const wchar_t *s = _chars; in IsAscii()
639 int Find(wchar_t c) const { return FindCharPosInString(_chars, c); } in Find()
642 int pos = FindCharPosInString(_chars + startIndex, c); in Find()
674 void DeleteBack() { _chars[--_len] = 0; } in DeleteBack()
680 _chars[index] = 0; in DeleteFrom()
734 wchar_t *_chars; variable
751 UString2(): _chars(NULL), _len(0) {} in UString2()
754 ~UString2() { if (_chars) MY_STRING_DELETE(_chars); } in ~UString2()
761 const wchar_t *GetRawPtr() const { return _chars; } in GetRawPtr()
763 int Compare(const wchar_t *s) const { return wcscmp(_chars, s); } in Compare()
767 if (!_chars || minLen > _len) in GetBuf()
769 return _chars; in GetBuf()