Lines Matching refs:_chars

186   const char *s1 = _chars;  in IsPrefixedBy_Ascii_NoCase()
201 const wchar_t *s1 = _chars; in IsPrefixedBy_Ascii_NoCase()
325 memcpy(newBuf, _chars, (size_t)(_len + 1)); \ in ReAlloc()
326 MY_STRING_DELETE(_chars); in ReAlloc()
327 _chars = newBuf; in ReAlloc()
334 _chars = 0; in SetStartLen()
335 _chars = MY_STRING_NEW(char, len + 1); in SetStartLen()
379 memcpy(_chars, s._chars, num); in AString()
380 _chars[num] = 0; in AString()
386 char *chars = _chars; in AString()
396 char *chars = _chars; in AString()
407 _chars = 0; in AString()
408 _chars = MY_STRING_NEW(char, 4); in AString()
411 _chars[0] = 0; in AString()
417 _chars[0] = c; in AString()
418 _chars[1] = 0; in AString()
424 MyStringCopy(_chars, s); in AString()
430 MyStringCopy(_chars, s._chars); in AString()
438 MY_STRING_DELETE(_chars); in operator =()
439 _chars = newBuf; in operator =()
443 _chars[0] = c; in operator =()
444 _chars[1] = 0; in operator =()
454 MY_STRING_DELETE(_chars); in operator =()
455 _chars = newBuf; in operator =()
459 MyStringCopy(_chars, s); in operator =()
471 MY_STRING_DELETE(_chars); in operator =()
472 _chars = newBuf; in operator =()
476 MyStringCopy(_chars, s._chars); in operator =()
484 MyStringCopy(_chars + _len, s); in operator +=()
492 MyStringCopy(_chars + _len, s._chars); in operator +=()
502 MY_STRING_DELETE(_chars); in SetFrom()
503 _chars = newBuf; in SetFrom()
506 memcpy(_chars, s, len); in SetFrom()
507 _chars[len] = 0; in SetFrom()
519 if (_chars[startIndex + j] != s._chars[j]) in Find()
531 const char *p = _chars + _len - 1; in ReverseFind()
535 return (int)(p - _chars); in ReverseFind()
536 if (p == _chars) in ReverseFind()
544 const char *p = _chars; in TrimLeft()
551 unsigned pos = (unsigned)(p - _chars); in TrimLeft()
561 const char *p = _chars; in TrimRight()
572 _chars[i] = 0; in TrimRight()
582 _chars[0] = c; in InsertAtFront()
601 memcpy(_chars + index, s, num); in Insert()
612 memcpy(_chars + index, s, num); in Insert()
622 const char *src = _chars; in RemoveChar()
623 char *dest = _chars + pos; in RemoveChar()
633 _len = (unsigned)(dest - _chars); in RemoveChar()
648 _chars[pos] = newChar; in Replace()
759 wmemcpy(newBuf, _chars, _len + 1); in ReAlloc()
760 MY_STRING_DELETE(_chars); in ReAlloc()
761 _chars = newBuf; in ReAlloc()
768 _chars = 0; in SetStartLen()
769 _chars = MY_STRING_NEW(wchar_t, len + 1); in SetStartLen()
803 wmemcpy(_chars, s, num); in UString()
804 _chars[num] = 0; in UString()
813 wmemcpy(_chars, s._chars, num); in UString()
814 _chars[num] = 0; in UString()
820 wchar_t *chars = _chars; in UString()
830 wchar_t *chars = _chars; in UString()
841 _chars = 0; in UString()
842 _chars = MY_STRING_NEW(wchar_t, 4); in UString()
845 _chars[0] = 0; in UString()
851 _chars[0] = c; in UString()
852 _chars[1] = 0; in UString()
858 MyStringCopy(_chars, s); in UString()
864 MyStringCopy(_chars, s._chars); in UString()
872 MY_STRING_DELETE(_chars); in operator =()
873 _chars = newBuf; in operator =()
877 _chars[0] = c; in operator =()
878 _chars[1] = 0; in operator =()
888 MY_STRING_DELETE(_chars); in operator =()
889 _chars = newBuf; in operator =()
893 MyStringCopy(_chars, s); in operator =()
905 MY_STRING_DELETE(_chars); in operator =()
906 _chars = newBuf; in operator =()
910 MyStringCopy(_chars, s._chars); in operator =()
918 MyStringCopy(_chars + _len, s); in operator +=()
926 MyStringCopy(_chars + _len, s._chars); in operator +=()
936 MY_STRING_DELETE(_chars); in SetFrom()
937 _chars = newBuf; in SetFrom()
940 wmemcpy(_chars, s, len); in SetFrom()
941 _chars[len] = 0; in SetFrom()
951 MY_STRING_DELETE(_chars); in SetFromAscii()
952 _chars = newBuf; in SetFromAscii()
955 wchar_t *chars = _chars; in SetFromAscii()
966 wchar_t *chars = _chars + _len; in AddAsciiStr()
983 if (_chars[startIndex + j] != s._chars[j]) in Find()
995 const wchar_t *p = _chars + _len - 1; in ReverseFind()
999 return (int)(p - _chars); in ReverseFind()
1000 if (p == _chars) in ReverseFind()
1008 const wchar_t *p = _chars; in TrimLeft()
1015 unsigned pos = (unsigned)(p - _chars); in TrimLeft()
1025 const wchar_t *p = _chars; in TrimRight()
1036 _chars[i] = 0; in TrimRight()
1046 _chars[0] = c; in InsertAtFront()
1065 wmemcpy(_chars + index, s, num); in Insert()
1076 wmemcpy(_chars + index, s, num); in Insert()
1086 const wchar_t *src = _chars; in RemoveChar()
1087 wchar_t *dest = _chars + pos; in RemoveChar()
1097 _len = (unsigned)(dest - _chars); in RemoveChar()
1112 _chars[pos] = newChar; in Replace()