Lines Matching refs:f16BitUnitsLength
184 bundle->f16BitUnitsLength += res->u.fString.fNumCharsForLength + len + 1; /* +1 for the NUL */
249 if ((bundle->f16BitUnitsLength + length) > bundle->f16BitUnitsCapacity) {
252 capacity &= ~1; /* ensures padding fits if f16BitUnitsLength needs it */
258 if (bundle->f16BitUnitsLength > 0) {
259 uprv_memcpy(newUnits, bundle->f16BitUnits, bundle->f16BitUnitsLength * 2);
262 bundle->f16BitUnitsLength = 1;
268 return bundle->f16BitUnits + bundle->f16BitUnitsLength;
351 res->fRes = URES_MAKE_RESOURCE(URES_ARRAY16, bundle->f16BitUnitsLength);
356 bundle->f16BitUnitsLength += 1 + res->u.fArray.fCount;
415 res->fRes = URES_MAKE_RESOURCE(URES_TABLE16, bundle->f16BitUnitsLength);
423 bundle->f16BitUnitsLength += 1 + res->u.fTable.fCount * 2;
784 if (bundle->f16BitUnitsLength & 1) {
785 bundle->f16BitUnits[bundle->f16BitUnitsLength++] = 0xaaaa; /* pad to multiple of 4 bytes */
791 byteOffset = bundle->fKeysTop + bundle->f16BitUnitsLength * 2;
890 indexes[URES_INDEX_16BIT_TOP] = (bundle->fKeysTop>>2) + (bundle->f16BitUnitsLength>>1);
913 udata_writeBlock(mem, bundle->f16BitUnits, bundle->f16BitUnitsLength*2);
916 byteOffset = bundle->fKeysTop + bundle->f16BitUnitsLength * 2;
1712 if (bundle->f16BitUnitsLength > 0) {
1721 int32_t utf16Length = (bundle->f16BitUnitsLength + 20000) & ~1;
1736 ++bundle->f16BitUnitsLength;
1805 assert(utf16Length <= bundle->f16BitUnitsLength);
1806 bundle->f16BitUnitsLength = utf16Length;