Lines Matching refs:fUnion
121 umtx_atomic_inc((u_atomic_int32_t *)fUnion.fFields.fArray - 1); in addRef()
126 return umtx_atomic_dec((u_atomic_int32_t *)fUnion.fFields.fArray - 1); in removeRef()
131 return umtx_loadAcquire(*((u_atomic_int32_t *)fUnion.fFields.fArray - 1)); in refCount()
136 if((fUnion.fFields.fLengthAndFlags & kRefCounted) && removeRef() == 0) { in releaseArray()
137 uprv_free((int32_t *)fUnion.fFields.fArray - 1); in releaseArray()
150 fUnion.fFields.fLengthAndFlags = 0; in UnicodeString()
193 fUnion.fFields.fLengthAndFlags = kLength1 | kShortString; in UnicodeString()
194 fUnion.fStackFields.fBuffer[0] = ch; in UnicodeString()
198 fUnion.fFields.fLengthAndFlags = kShortString; in UnicodeString()
201 U16_APPEND(fUnion.fStackFields.fBuffer, i, US_STACKBUF_SIZE, ch, isError); in UnicodeString()
210 fUnion.fFields.fLengthAndFlags = kShortString; in UnicodeString()
216 fUnion.fFields.fLengthAndFlags = kShortString; in UnicodeString()
223 fUnion.fFields.fLengthAndFlags = kReadonlyAlias; in UnicodeString()
244 fUnion.fFields.fLengthAndFlags = kWritableAlias; in UnicodeString()
264 fUnion.fFields.fLengthAndFlags = kShortString; in UnicodeString()
283 fUnion.fFields.fLengthAndFlags = kShortString; in UnicodeString()
290 fUnion.fFields.fLengthAndFlags = kShortString; in UnicodeString()
305 fUnion.fFields.fLengthAndFlags = kShortString; in UnicodeString()
311 fUnion.fFields.fLengthAndFlags = kShortString; in UnicodeString()
318 fUnion.fFields.fLengthAndFlags = kShortString; in UnicodeString()
341 fUnion.fFields.fLengthAndFlags = kShortString; in allocate()
354 fUnion.fFields.fArray = (UChar *)array; in allocate()
355 fUnion.fFields.fCapacity = (int32_t)((words - 1) * (sizeof(int32_t) / U_SIZEOF_UCHAR)); in allocate()
356 fUnion.fFields.fLengthAndFlags = kLongString; in allocate()
358 fUnion.fFields.fLengthAndFlags = kIsBogus; in allocate()
359 fUnion.fFields.fArray = 0; in allocate()
360 fUnion.fFields.fCapacity = 0; in allocate()
454 fUnion.fFields.fLengthAndFlags = src.fUnion.fFields.fLengthAndFlags; in copyFrom()
455 switch(src.fUnion.fFields.fLengthAndFlags & kAllStorageFlags) { in copyFrom()
458 uprv_memcpy(fUnion.fStackFields.fBuffer, src.fUnion.fStackFields.fBuffer, in copyFrom()
466 fUnion.fFields.fArray = src.fUnion.fFields.fArray; in copyFrom()
467 fUnion.fFields.fCapacity = src.fUnion.fFields.fCapacity; in copyFrom()
469 fUnion.fFields.fLength = src.fUnion.fFields.fLength; in copyFrom()
476 fUnion.fFields.fArray = src.fUnion.fFields.fArray; in copyFrom()
477 fUnion.fFields.fCapacity = src.fUnion.fFields.fCapacity; in copyFrom()
479 fUnion.fFields.fLength = src.fUnion.fFields.fLength; in copyFrom()
498 fUnion.fFields.fLengthAndFlags = kIsBogus; in copyFrom()
499 fUnion.fFields.fArray = 0; in copyFrom()
500 fUnion.fFields.fCapacity = 0; in copyFrom()
805 array=fUnion.fStackFields.fBuffer; // anything not NULL because that would make an empty string in tempSubString()
1089 fUnion.fFields.fLengthAndFlags = kIsBogus; in setToBogus()
1090 fUnion.fFields.fArray = 0; in setToBogus()
1091 fUnion.fFields.fCapacity = 0; in setToBogus()
1097 if(fUnion.fFields.fLengthAndFlags & kIsBogus) { in unBogus()
1110 if(fUnion.fFields.fLengthAndFlags & kBufferIsReadonly) { in getTerminatedBuffer()
1118 } else if(((fUnion.fFields.fLengthAndFlags & kRefCounted) == 0 || refCount() == 1)) { in getTerminatedBuffer()
1146 if(fUnion.fFields.fLengthAndFlags & kOpenGetBuffer) { in setTo()
1172 fUnion.fFields.fLengthAndFlags = kReadonlyAlias; in setTo()
1182 if(fUnion.fFields.fLengthAndFlags & kOpenGetBuffer) { in setTo()
1208 fUnion.fFields.fLengthAndFlags = kWritableAlias; in setTo()
1314 if((fUnion.fFields.fLengthAndFlags&kBufferIsReadonly) && srcLength == 0) { in doReplace()
1318 fUnion.fFields.fArray += length; in doReplace()
1319 fUnion.fFields.fCapacity -= length; in doReplace()
1327 fUnion.fFields.fCapacity = start; // not NUL-terminated any more in doReplace()
1379 if((fUnion.fFields.fLengthAndFlags&kUsingStackBuffer) && (newLength > US_STACKBUF_SIZE)) { in doReplace()
1382 u_memcpy(oldStackBuffer, fUnion.fStackFields.fBuffer, oldLength); in doReplace()
1579 fUnion.fFields.fLengthAndFlags|=kOpenGetBuffer; in getBuffer()
1589 if(fUnion.fFields.fLengthAndFlags&kOpenGetBuffer && newLength>=-1) { in releaseBuffer()
1603 fUnion.fFields.fLengthAndFlags&=~kOpenGetBuffer; in releaseBuffer()
1637 fUnion.fFields.fLengthAndFlags & kBufferIsReadonly || in cloneArrayIfNeeded()
1638 (fUnion.fFields.fLengthAndFlags & kRefCounted && refCount() > 1) || in cloneArrayIfNeeded()
1652 int16_t flags = fUnion.fFields.fLengthAndFlags; in cloneArrayIfNeeded()
1659 us_arrayCopy(fUnion.fStackFields.fBuffer, 0, oldStackBuffer, 0, oldLength); in cloneArrayIfNeeded()
1665 oldArray = fUnion.fFields.fArray; in cloneArrayIfNeeded()
1709 fUnion.fFields.fArray = oldArray; in cloneArrayIfNeeded()
1711 fUnion.fFields.fLengthAndFlags = flags; in cloneArrayIfNeeded()