• Home
  • Raw
  • Download

Lines Matching refs:_chars

213   const char *s1 = _chars;  in IsPrefixedBy_Ascii_NoCase()
228 const wchar_t *s1 = _chars; in IsPrefixedBy_Ascii_NoCase()
386 memcpy(newBuf, _chars, (size_t)(_len + 1)); in ReAlloc()
387 MY_STRING_DELETE(_chars); in ReAlloc()
388 _chars = newBuf; in ReAlloc()
398 MY_STRING_DELETE(_chars); in ReAlloc2()
399 _chars = newBuf; in ReAlloc2()
405 _chars = 0; in SetStartLen()
406 _chars = MY_STRING_NEW_char(len + 1); in SetStartLen()
439 memcpy(_chars, s, num); in AString()
440 _chars[num] = 0; in AString()
448 memcpy(_chars, s._chars, num); in AString()
449 _chars[num] = 0; in AString()
455 char *chars = _chars; in AString()
465 char *chars = _chars; in AString()
478 _chars = 0; in AString()
479 _chars = MY_STRING_NEW_char(kStartStringCapacity); in AString()
482 _chars[0] = 0; in AString()
488 char *chars = _chars; in AString()
496 MyStringCopy(_chars, s); in AString()
502 MyStringCopy(_chars, s._chars); in AString()
510 MY_STRING_DELETE(_chars); in operator =()
511 _chars = newBuf; in operator =()
515 char *chars = _chars; in operator =()
527 MY_STRING_DELETE(_chars); in operator =()
528 _chars = newBuf; in operator =()
532 MyStringCopy(_chars, s); in operator =()
544 MY_STRING_DELETE(_chars); in operator =()
545 _chars = newBuf; in operator =()
549 MyStringCopy(_chars, s._chars); in operator =()
569 MY_STRING_DELETE(_chars); in SetFromWStr_if_Ascii()
570 _chars = newBuf; in SetFromWStr_if_Ascii()
574 char *dest = _chars; in SetFromWStr_if_Ascii()
614 MyStringCopy(_chars + _len, s); in operator +=()
628 MyStringCopy(_chars + _len, s._chars); in operator +=()
645 MY_STRING_DELETE(_chars); in SetFrom()
646 _chars = newBuf; in SetFrom()
650 memcpy(_chars, s, len); in SetFrom()
651 _chars[len] = 0; in SetFrom()
666 const char *fs = strstr(_chars + startIndex, s); in Find()
669 return (int)(fs - _chars); in Find()
699 const char *p = _chars + _len - 1; in ReverseFind()
703 return (int)(p - _chars); in ReverseFind()
704 if (p == _chars) in ReverseFind()
714 const char *p = _chars + _len - 1; in ReverseFind_PathSepar()
719 return (int)(p - _chars); in ReverseFind_PathSepar()
720 if (p == _chars) in ReverseFind_PathSepar()
728 const char *p = _chars; in TrimLeft()
735 unsigned pos = (unsigned)(p - _chars); in TrimLeft()
745 const char *p = _chars; in TrimRight()
755 _chars[i] = 0; in TrimRight()
765 _chars[0] = c; in InsertAtFront()
784 memcpy(_chars + index, s, num); in Insert()
795 memcpy(_chars + index, s, num); in Insert()
802 char *src = _chars; in RemoveChar()
825 _len = (unsigned)(dest - _chars); in RemoveChar()
835 char *chars = _chars; in Replace()
952 wmemcpy(newBuf, _chars, _len + 1); in ReAlloc()
953 MY_STRING_DELETE(_chars); in ReAlloc()
954 _chars = newBuf; in ReAlloc()
964 MY_STRING_DELETE(_chars); in ReAlloc2()
965 _chars = newBuf; in ReAlloc2()
971 _chars = 0; in SetStartLen()
972 _chars = MY_STRING_NEW_wchar_t(len + 1); in SetStartLen()
1006 wmemcpy(_chars, s, num); in UString()
1007 _chars[num] = 0; in UString()
1016 wmemcpy(_chars, s._chars, num); in UString()
1017 _chars[num] = 0; in UString()
1023 wchar_t *chars = _chars; in UString()
1033 wchar_t *chars = _chars; in UString()
1044 _chars = 0; in UString()
1045 _chars = MY_STRING_NEW_wchar_t(kStartStringCapacity); in UString()
1048 _chars[0] = 0; in UString()
1054 wchar_t *chars = _chars; in UString()
1062 wchar_t *chars = _chars; in UString()
1071 wmemcpy(_chars, s, len + 1); in UString()
1078 wchar_t *chars = _chars; in UString()
1087 wmemcpy(_chars, s._chars, s._len + 1); in UString()
1095 MY_STRING_DELETE(_chars); in operator =()
1096 _chars = newBuf; in operator =()
1100 wchar_t *chars = _chars; in operator =()
1112 MY_STRING_DELETE(_chars); in operator =()
1113 _chars = newBuf; in operator =()
1117 wmemcpy(_chars, s, len + 1); in operator =()
1129 MY_STRING_DELETE(_chars); in operator =()
1130 _chars = newBuf; in operator =()
1134 wmemcpy(_chars, s._chars, len + 1); in operator =()
1143 MY_STRING_DELETE(_chars); in SetFrom()
1144 _chars = newBuf; in SetFrom()
1148 wmemcpy(_chars, s, len); in SetFrom()
1149 _chars[len] = 0; in SetFrom()
1159 MY_STRING_DELETE(_chars); in SetFromBstr()
1160 _chars = newBuf; in SetFromBstr()
1165 wmemcpy(_chars, s, len + 1); in SetFromBstr()
1174 MY_STRING_DELETE(_chars); in operator =()
1175 _chars = newBuf; in operator =()
1178 wchar_t *chars = _chars; in operator =()
1194 wchar_t *chars = _chars; in Add_LF()
1204 wmemcpy(_chars + _len, s, len + 1); in operator +=()
1212 wmemcpy(_chars + _len, s._chars, s._len + 1); in operator +=()
1221 wchar_t *chars = _chars + _len; in operator +=()
1240 const wchar_t *fs = wcsstr(_chars + startIndex, s); in Find()
1243 return (int)(fs - _chars); in Find()
1273 const wchar_t *p = _chars + _len - 1; in ReverseFind()
1277 return (int)(p - _chars); in ReverseFind()
1278 if (p == _chars) in ReverseFind()
1288 const wchar_t *p = _chars + _len - 1; in ReverseFind_PathSepar()
1293 return (int)(p - _chars); in ReverseFind_PathSepar()
1294 if (p == _chars) in ReverseFind_PathSepar()
1302 const wchar_t *p = _chars; in TrimLeft()
1309 unsigned pos = (unsigned)(p - _chars); in TrimLeft()
1319 const wchar_t *p = _chars; in TrimRight()
1329 _chars[i] = 0; in TrimRight()
1339 _chars[0] = c; in InsertAtFront()
1358 wmemcpy(_chars + index, s, num); in Insert()
1369 wmemcpy(_chars + index, s, num); in Insert()
1376 wchar_t *src = _chars; in RemoveChar()
1399 _len = (unsigned)(dest - _chars); in RemoveChar()
1409 wchar_t *chars = _chars; in Replace()
1478 _chars = MY_STRING_NEW_wchar_t(newLimit + 1); in ReAlloc2()
1483 _chars = 0; in SetStartLen()
1484 _chars = MY_STRING_NEW_wchar_t(len + 1); in SetStartLen()
1503 wmemcpy(_chars, s, len + 1); in UString2()
1506 UString2::UString2(const UString2 &s): _chars(NULL), _len(0) in UString2()
1508 if (s._chars) in UString2()
1511 wmemcpy(_chars, s._chars, s._len + 1); in UString2()
1539 if (_chars) in operator =()
1540 MY_STRING_DELETE(_chars); in operator =()
1541 _chars = newBuf; in operator =()
1544 MyStringCopy(_chars, s); in operator =()
1554 if (_chars) in SetFromAscii()
1555 MY_STRING_DELETE(_chars); in SetFromAscii()
1556 _chars = newBuf; in SetFromAscii()
1558 wchar_t *chars = _chars; in SetFromAscii()
1573 if (_chars) in operator =()
1574 MY_STRING_DELETE(_chars); in operator =()
1575 _chars = newBuf; in operator =()
1578 MyStringCopy(_chars, s._chars); in operator =()