Lines Matching refs:fPrivateData
141 return Private::DataRefCount(fPrivateData); in _ReferenceCount()
148 return Private::DataRefCount(fPrivateData); in _ReferenceCount()
155 return fPrivateData != NULL && _ReferenceCount() >= 0; in _IsShareable()
161 fPrivateData(NULL) in BString()
169 fPrivateData(NULL) in BString()
177 fPrivateData(NULL) in BString()
181 fPrivateData = string.fPrivateData; in BString()
190 : fPrivateData(NULL) in BString()
199 fPrivateData = string.fPrivateData; in BString()
200 string.fPrivateData = NULL; in BString()
217 return UTF8CountChars(fPrivateData, Length()); in CountChars()
225 fPrivateData + UTF8CountBytes(fPrivateData, fromCharOffset), charCount); in CountBytes()
278 fPrivateData = string.fPrivateData; in operator =()
279 string.fPrivateData = NULL; in operator =()
295 memcpy(fPrivateData, string, maxLength); in SetTo()
305 if (fPrivateData == string.fPrivateData) in SetTo()
312 fPrivateData = string.fPrivateData; in SetTo()
337 if (fPrivateData != string.fPrivateData in SetTo()
339 || (fPrivateData == string.fPrivateData && Length() > maxLength)) { in SetTo()
342 memcpy(fPrivateData, string.String(), maxLength); in SetTo()
365 memset(fPrivateData, c, count); in SetTo()
453 return vsscanf(fPrivateData, format, args); in ScanWithFormatVarArgs()
464 into.SetTo(fPrivateData + fromOffset, length); in CopyInto()
474 memcpy(into, fPrivateData + fromOffset, length); in CopyInto()
483 int32 fromOffset = UTF8CountBytes(fPrivateData, fromCharOffset); in CopyCharsInto()
484 int32 length = UTF8CountBytes(fPrivateData + fromOffset, charCount); in CopyCharsInto()
496 int32 fromOffset = UTF8CountBytes(fPrivateData, fromCharOffset); in CopyCharsInto()
497 int32 length = UTF8CountBytes(fPrivateData + fromOffset, charCount); in CopyCharsInto()
506 memcpy(into, fPrivateData + fromOffset, length); in CopyCharsInto()
576 _DoAppend(string.fPrivateData, length); in Append()
599 memset(fPrivateData + oldLength, c, count); in Append()
652 _DoPrepend(string.fPrivateData, min_clamp0(length, string.Length())); in Prepend()
661 memset(fPrivateData, c, count); in Prepend()
735 Insert(string.fPrivateData, position); in Insert()
769 memset(fPrivateData + position, c, count); in Insert()
778 return Insert(string, UTF8CountBytes(fPrivateData, charPosition)); in InsertChars()
786 UTF8CountBytes(fPrivateData, charPosition)); in InsertChars()
797 UTF8CountBytes(fPrivateData, charPosition)); in InsertChars()
804 return Insert(string, UTF8CountBytes(fPrivateData, charPosition)); in InsertChars()
812 UTF8CountBytes(fPrivateData, charPosition)); in InsertChars()
823 UTF8CountBytes(fPrivateData, charPosition)); in InsertChars()
848 return Truncate(UTF8CountBytes(fPrivateData, newCharCount)); in TruncateChars()
864 int32 fromOffset = UTF8CountBytes(fPrivateData, fromCharOffset); in RemoveChars()
866 UTF8CountBytes(fPrivateData + fromOffset, charCount)); in RemoveChars()
1083 return Compare(string, UTF8CountBytes(fPrivateData, charCount)); in CompareChars()
1090 return Compare(string, UTF8CountBytes(fPrivateData, charCount)); in CompareChars()
1211 return FindFirst(string, UTF8CountBytes(fPrivateData, fromCharOffset)); in FindFirstChars()
1218 return FindFirst(string, UTF8CountBytes(fPrivateData, fromCharOffset)); in FindFirstChars()
1308 return FindLast(string, UTF8CountBytes(fPrivateData, beforeCharOffset)); in FindLastChars()
1315 return FindLast(string, UTF8CountBytes(fPrivateData, beforeCharOffset)); in FindLastChars()
1509 fPrivateData[pos] = withThis; in ReplaceFirst()
1519 fPrivateData[pos] = withThis; in ReplaceLast()
1533 fPrivateData[pos] = withThis; in ReplaceAll()
1549 fPrivateData[pos] = withThis; in Replace()
1595 memcpy(fPrivateData + pos, withThis, withThisLength); in ReplaceLast()
1638 UTF8CountBytes(fPrivateData, fromCharOffset)); in ReplaceAllChars()
1647 UTF8CountBytes(fPrivateData, fromCharOffset)); in ReplaceChars()
1658 fPrivateData[pos] = withThis; in IReplaceFirst()
1670 fPrivateData[pos] = withThis; in IReplaceLast()
1684 fPrivateData[pos] = withThis; in IReplaceAll()
1701 fPrivateData[pos] = withThis; in IReplace()
1747 memcpy(fPrivateData + pos, withThis, withThisLength); in IReplaceLast()
1788 if (!setOfBytes || strcspn(fPrivateData, setOfBytes) >= uint32(Length())) in ReplaceSet()
1797 pos = strcspn(fPrivateData + offset, setOfBytes); in ReplaceSet()
1803 fPrivateData[offset] = with; in ReplaceSet()
1815 || strcspn(fPrivateData, setOfBytes) >= uint32(Length())) in ReplaceSet()
1832 pos = strcspn(fPrivateData + offset, setOfBytes); in ReplaceSet()
1902 return fPrivateData[index]; in operator []()
1910 int32 offset = UTF8CountBytes(fPrivateData, charIndex); in CharAt()
1912 *bytes = UTF8NextCharLen(fPrivateData + offset); in CharAt()
1913 return fPrivateData + offset; in CharAt()
1949 return fPrivateData; in LockBuffer()
1959 length = fPrivateData == NULL ? 0 : strlen(fPrivateData); in UnlockBuffer()
1962 fPrivateData[length] = '\0'; in UnlockBuffer()
1975 fPrivateData[pos] = to; in SetByteAt()
1990 fPrivateData[count] = tolower(fPrivateData[count]); in ToLower()
2002 fPrivateData[count] = toupper(fPrivateData[count]); in ToUpper()
2014 fPrivateData[0] = toupper(fPrivateData[0]); in Capitalize()
2016 fPrivateData[count] = tolower(fPrivateData[count]); in Capitalize()
2032 if (isalpha(fPrivateData[count])) { in CapitalizeEachWord()
2034 fPrivateData[count] = toupper(fPrivateData[count]); in CapitalizeEachWord()
2043 if (isalpha(fPrivateData[count])) in CapitalizeEachWord()
2044 fPrivateData[count] = tolower(fPrivateData[count]); in CapitalizeEachWord()
2071 _DoCharacterEscape(fPrivateData, setOfCharsToEscape, escapeWith); in CharacterEscape()
2087 _DoCharacterDeescape(fPrivateData, escapeChar); in CharacterDeescape()
2122 memmove(fPrivateData, fPrivateData + startCount, length); in Trim()
2123 fPrivateData[length] = '\0'; in Trim()
2268 fPrivateData(privateData) in BString()
2270 if (fPrivateData != NULL) in BString()
2283 char* newData = _Clone(fPrivateData, Length()); in _MakeWritable()
2288 fPrivateData = newData; in _MakeWritable()
2309 newData = _Clone(fPrivateData, length); in _MakeWritable()
2325 fPrivateData = newData; in _MakeWritable()
2363 return fPrivateData; in _Resize()
2365 char* data = fPrivateData ? fPrivateData - kPrivateDataOffset : NULL; in _Resize()
2375 fPrivateData = data; in _Resize()
2376 fPrivateData[length] = '\0'; in _Resize()
2388 fPrivateData = _Clone(src, length); in _Init()
2389 if (fPrivateData == NULL) in _Init()
2390 fPrivateData = _Clone(NULL, 0); in _Init()
2418 memmove(fPrivateData + offset + length, fPrivateData + offset, in _OpenAtBy()
2431 memmove(fPrivateData + offset, fPrivateData + offset + length, in _ShrinkAtBy()
2440 Private::DataLength(fPrivateData) = length & 0x7fffffff; in _SetLength()
2447 if (fPrivateData != NULL) { in _FreePrivateData()
2448 free(fPrivateData - kPrivateDataOffset); in _FreePrivateData()
2449 fPrivateData = NULL; in _FreePrivateData()
2459 fPrivateData = NULL; in _ReleasePrivateData()
2468 strncpy(fPrivateData + oldLength, string, length); in _DoAppend()
2481 memmove(fPrivateData + length, fPrivateData, oldLength); in _DoPrepend()
2483 strncpy(fPrivateData, string, length); in _DoPrepend()
2495 memmove(fPrivateData + offset + length, fPrivateData + offset, in _DoInsert()
2498 strncpy(fPrivateData + offset, string, length); in _DoInsert()
2544 if (fPrivateData != NULL) { in _FindBefore()
2545 const char* ptr = fPrivateData + offset - length; in _FindBefore()
2547 while (ptr >= fPrivateData) { in _FindBefore()
2549 return ptr - fPrivateData; in _FindBefore()
2560 if (fPrivateData != NULL) { in _IFindBefore()
2561 char* ptr1 = fPrivateData + offset - length; in _IFindBefore()
2563 while (ptr1 >= fPrivateData) { in _IFindBefore()
2565 return ptr1 - fPrivateData; in _IFindBefore()
2580 memcpy(fPrivateData, string, Length()); in _DoCharacterEscape()
2586 pos = strcspn(fPrivateData + offset, setOfCharsToEscape); in _DoCharacterEscape()
2600 char* oldString = fPrivateData; in _DoCharacterEscape()
2622 fPrivateData = newData; in _DoCharacterEscape()
2634 memcpy(fPrivateData, string, Length()); in _DoCharacterDeescape()
2689 char* oldString = fPrivateData; in _ReplaceAtPositions()
2712 fPrivateData = newData; in _ReplaceAtPositions()
2762 return fPosition < fString.Length() ? fString.fPrivateData[fPosition] : 0; in operator char()
2770 fString.fPrivateData[fPosition] = c; in operator =()
2778 return operator=(rc.fString.fPrivateData[rc.fPosition]); in operator =()
2785 return &fString.fPrivateData[fPosition]; in operator &()
2797 return &fString.fPrivateData[fPosition]; in operator &()