Lines Matching refs:fFields
123 umtx_atomic_inc((u_atomic_int32_t *)fUnion.fFields.fArray - 1); in addRef()
128 return umtx_atomic_dec((u_atomic_int32_t *)fUnion.fFields.fArray - 1); in removeRef()
133 return umtx_loadAcquire(*((u_atomic_int32_t *)fUnion.fFields.fArray - 1)); in refCount()
138 if((fUnion.fFields.fLengthAndFlags & kRefCounted) && removeRef() == 0) { in releaseArray()
139 uprv_free((int32_t *)fUnion.fFields.fArray - 1); in releaseArray()
152 fUnion.fFields.fLengthAndFlags = 0; in UnicodeString()
193 fUnion.fFields.fLengthAndFlags = kLength1 | kShortString; in UnicodeString()
198 fUnion.fFields.fLengthAndFlags = kShortString; in UnicodeString()
210 fUnion.fFields.fLengthAndFlags = kShortString; in UnicodeString()
216 fUnion.fFields.fLengthAndFlags = kShortString; in UnicodeString()
223 fUnion.fFields.fLengthAndFlags = kReadonlyAlias; in UnicodeString()
246 fUnion.fFields.fLengthAndFlags = kWritableAlias; in UnicodeString()
266 fUnion.fFields.fLengthAndFlags = kShortString; in UnicodeString()
285 fUnion.fFields.fLengthAndFlags = kShortString; in UnicodeString()
292 fUnion.fFields.fLengthAndFlags = kShortString; in UnicodeString()
307 fUnion.fFields.fLengthAndFlags = kShortString; in UnicodeString()
317 fUnion.fFields.fLengthAndFlags = kShortString; in UnicodeString()
324 fUnion.fFields.fLengthAndFlags = kShortString; in UnicodeString()
371 fUnion.fFields.fLengthAndFlags = kShortString; in allocate()
388 fUnion.fFields.fArray = (UChar *)array; in allocate()
389 fUnion.fFields.fCapacity = (int32_t)(numBytes / U_SIZEOF_UCHAR); in allocate()
390 fUnion.fFields.fLengthAndFlags = kLongString; in allocate()
394 fUnion.fFields.fLengthAndFlags = kIsBogus; in allocate()
395 fUnion.fFields.fArray = 0; in allocate()
396 fUnion.fFields.fCapacity = 0; in allocate()
428 if((fUnion.fFields.fLengthAndFlags&(kOpenGetBuffer|kReadonlyAlias|kWritableAlias)) == 0) { in ~UnicodeString()
519 fUnion.fFields.fLengthAndFlags = src.fUnion.fFields.fLengthAndFlags; in copyFrom()
520 switch(src.fUnion.fFields.fLengthAndFlags & kAllStorageFlags) { in copyFrom()
531 fUnion.fFields.fArray = src.fUnion.fFields.fArray; in copyFrom()
532 fUnion.fFields.fCapacity = src.fUnion.fFields.fCapacity; in copyFrom()
534 fUnion.fFields.fLength = src.fUnion.fFields.fLength; in copyFrom()
541 fUnion.fFields.fArray = src.fUnion.fFields.fArray; in copyFrom()
542 fUnion.fFields.fCapacity = src.fUnion.fFields.fCapacity; in copyFrom()
544 fUnion.fFields.fLength = src.fUnion.fFields.fLength; in copyFrom()
565 fUnion.fFields.fLengthAndFlags = kIsBogus; in copyFrom()
566 fUnion.fFields.fArray = 0; in copyFrom()
567 fUnion.fFields.fCapacity = 0; in copyFrom()
584 int16_t lengthAndFlags = fUnion.fFields.fLengthAndFlags = src.fUnion.fFields.fLengthAndFlags; in copyFieldsFrom()
595 fUnion.fFields.fArray = src.fUnion.fFields.fArray; in copyFieldsFrom()
596 fUnion.fFields.fCapacity = src.fUnion.fFields.fCapacity; in copyFieldsFrom()
598 fUnion.fFields.fLength = src.fUnion.fFields.fLength; in copyFieldsFrom()
602 src.fUnion.fFields.fLengthAndFlags = kIsBogus; in copyFieldsFrom()
603 src.fUnion.fFields.fArray = NULL; in copyFieldsFrom()
604 src.fUnion.fFields.fCapacity = 0; in copyFieldsFrom()
616 temp.fUnion.fFields.fLengthAndFlags = kShortString; in swap()
1204 fUnion.fFields.fLengthAndFlags = kIsBogus; in setToBogus()
1205 fUnion.fFields.fArray = 0; in setToBogus()
1206 fUnion.fFields.fCapacity = 0; in setToBogus()
1212 if(fUnion.fFields.fLengthAndFlags & kIsBogus) { in unBogus()
1225 if(fUnion.fFields.fLengthAndFlags & kBufferIsReadonly) { in getTerminatedBuffer()
1233 } else if(((fUnion.fFields.fLengthAndFlags & kRefCounted) == 0 || refCount() == 1)) { in getTerminatedBuffer()
1261 if(fUnion.fFields.fLengthAndFlags & kOpenGetBuffer) { in setTo()
1288 fUnion.fFields.fLengthAndFlags = kReadonlyAlias; in setTo()
1298 if(fUnion.fFields.fLengthAndFlags & kOpenGetBuffer) { in setTo()
1324 fUnion.fFields.fLengthAndFlags = kWritableAlias; in setTo()
1425 if((fUnion.fFields.fLengthAndFlags&kBufferIsReadonly) && srcLength == 0) { in doReplace()
1429 fUnion.fFields.fArray += length; in doReplace()
1430 fUnion.fFields.fCapacity -= length; in doReplace()
1438 fUnion.fFields.fCapacity = start; // not NUL-terminated any more in doReplace()
1489 if((fUnion.fFields.fLengthAndFlags&kUsingStackBuffer) && (newLength > US_STACKBUF_SIZE)) { in doReplace()
1758 fUnion.fFields.fLengthAndFlags|=kOpenGetBuffer; in getBuffer()
1768 if(fUnion.fFields.fLengthAndFlags&kOpenGetBuffer && newLength>=-1) { in releaseBuffer()
1782 fUnion.fFields.fLengthAndFlags&=~kOpenGetBuffer; in releaseBuffer()
1816 fUnion.fFields.fLengthAndFlags & kBufferIsReadonly || in cloneArrayIfNeeded()
1817 (fUnion.fFields.fLengthAndFlags & kRefCounted && refCount() > 1) || in cloneArrayIfNeeded()
1831 int16_t flags = fUnion.fFields.fLengthAndFlags; in cloneArrayIfNeeded()
1844 oldArray = fUnion.fFields.fArray; in cloneArrayIfNeeded()
1888 fUnion.fFields.fArray = oldArray; in cloneArrayIfNeeded()
1890 fUnion.fFields.fLengthAndFlags = flags; in cloneArrayIfNeeded()