• Home
  • Raw
  • Download

Lines Matching refs:utf16Length

1631 string_writeUTF16v2(struct SRBRoot *bundle, struct SResource *res, int32_t utf16Length) {  in string_writeUTF16v2()  argument
1633 res->fRes = URES_MAKE_RESOURCE(URES_STRING_V2, utf16Length); in string_writeUTF16v2()
1639 bundle->f16BitUnits[utf16Length++] = (uint16_t)(0xdc00 + length); in string_writeUTF16v2()
1642 bundle->f16BitUnits[utf16Length] = (uint16_t)(0xdfef + (length >> 16)); in string_writeUTF16v2()
1643 bundle->f16BitUnits[utf16Length + 1] = (uint16_t)length; in string_writeUTF16v2()
1644 utf16Length += 2; in string_writeUTF16v2()
1647 bundle->f16BitUnits[utf16Length] = 0xdfff; in string_writeUTF16v2()
1648 bundle->f16BitUnits[utf16Length + 1] = (uint16_t)(length >> 16); in string_writeUTF16v2()
1649 bundle->f16BitUnits[utf16Length + 2] = (uint16_t)length; in string_writeUTF16v2()
1650 utf16Length += 3; in string_writeUTF16v2()
1655 u_memcpy(bundle->f16BitUnits + utf16Length, res->u.fString.fChars, length + 1); in string_writeUTF16v2()
1656 return utf16Length + length + 1; in string_writeUTF16v2()
1675 int32_t utf16Length = (bundle->f16BitUnitsLength + 20000) & ~1; in bundle_compactStrings() local
1676 bundle->f16BitUnits = (UChar *)uprv_malloc(utf16Length * U_SIZEOF_UCHAR); in bundle_compactStrings()
1685 bundle->f16BitUnitsCapacity = utf16Length; in bundle_compactStrings()
1688 utf16Length = 1; in bundle_compactStrings()
1747 utf16Length = string_writeUTF16v2(bundle, array[i], utf16Length); in bundle_compactStrings()
1758 assert(utf16Length <= bundle->f16BitUnitsLength); in bundle_compactStrings()
1759 bundle->f16BitUnitsLength = utf16Length; in bundle_compactStrings()