Home | History | Annotate | Download | only in genrb

Lines Matching refs:f16BitUnitsLength

149     if ((bundle->f16BitUnitsLength + length) > bundle->f16BitUnitsCapacity) {
152 capacity &= ~1; /* ensures padding fits if f16BitUnitsLength needs it */
158 if (bundle->f16BitUnitsLength > 0) {
159 uprv_memcpy(newUnits, bundle->f16BitUnits, bundle->f16BitUnitsLength * 2);
162 bundle->f16BitUnitsLength = 1;
168 return bundle->f16BitUnits + bundle->f16BitUnitsLength;
254 res->fRes = URES_MAKE_RESOURCE(URES_ARRAY16, bundle->f16BitUnitsLength);
259 bundle->f16BitUnitsLength += 1 + res->u.fArray.fCount;
318 res->fRes = URES_MAKE_RESOURCE(URES_TABLE16, bundle->f16BitUnitsLength);
326 bundle->f16BitUnitsLength += 1 + res->u.fTable.fCount * 2;
687 if (bundle->f16BitUnitsLength & 1) {
688 bundle->f16BitUnits[bundle->f16BitUnitsLength++] = 0xaaaa; /* pad to multiple of 4 bytes */
694 byteOffset = bundle->fKeysTop + bundle->f16BitUnitsLength * 2;
793 indexes[URES_INDEX_16BIT_TOP] = (bundle->fKeysTop>>2) + (bundle->f16BitUnitsLength>>1);
816 udata_writeBlock(mem, bundle->f16BitUnits, bundle->f16BitUnitsLength*2);
819 byteOffset = bundle->fKeysTop + bundle->f16BitUnitsLength * 2;
960 bundle->f16BitUnitsLength += res->u.fString.fNumCharsForLength + len + 1; /* +1 for the NUL */
1672 if (bundle->f16BitUnitsLength > 0) {
1681 int32_t utf16Length = (bundle->f16BitUnitsLength + 20000) & ~1;
1695 ++bundle->f16BitUnitsLength;
1764 assert(utf16Length <= bundle->f16BitUnitsLength);
1765 bundle->f16BitUnitsLength = utf16Length;