Lines Matching defs:d16
790 : CollPerfFunction(coll, ucoll), d16(data16),
791 source(new UnicodeString*[d16->count]) {
792 for (int32_t i = 0; i < d16->count; ++i) {
793 source[i] = new UnicodeString(TRUE, d16->dataOf(i), d16->lengthOf(i));
799 const CA_uchar* d16;
804 for (int32_t i = 0; i < d16->count; ++i) {
817 dest(new UnicodeString*[d16->count]) {}
833 int32_t count = d16->count;
966 int32_t count = d16->count;
1077 const CA_uchar* d16,
1080 static CA_char* getData8FromData16(const CA_uchar* d16, UErrorCode &status);
1300 CA_uchar* d16 = new CA_uchar();
1317 d16->append_one(len);
1318 u_memcpy(d16->last(), line, len);
1326 data16 = d16;
1328 delete d16;
1346 const CA_uchar* d16 = getData16(status);
1351 for (int32_t i = 0; i < d16->count; i++) {
1352 const UChar *s = d16->dataOf(i);
1353 int32_t len = d16->lengthOf(i) + 1; // including NULL terminator
1361 if (j >= d16->count) {
1364 const UChar *s1 = d16->dataOf(j);
1365 UChar lastChar1 = s1[d16->lengthOf(j) - 1];
1386 ArrayAndColl(const CA_uchar* a, const Collator& c) : d16(a), coll(c) {}
1387 const CA_uchar* d16;
1394 const CA_uchar* d16 = ac.d16;
1398 return ac.coll.compare(d16->dataOf(leftIndex), d16->lengthOf(leftIndex),
1399 d16->dataOf(rightIndex), d16->lengthOf(rightIndex),
1405 const CA_uchar* d16 = (const CA_uchar*)context;
1408 int32_t leftHash = ustr_hashUCharsN(d16->dataOf(leftIndex), d16->lengthOf(leftIndex));
1409 int32_t rightHash = ustr_hashUCharsN(d16->dataOf(rightIndex), d16->lengthOf(rightIndex));
1420 return sortedData16 = sortData16(ac.d16, U16CollatorComparator, &ac, status);
1434 const CA_uchar* d16 = getData16(status);
1435 return randomData16 = sortData16(d16, U16HashComparator, d16, status);
1444 CA_uchar* CollPerf2Test::sortData16(const CA_uchar* d16,
1449 LocalArray<int32_t> indexes(new int32_t[d16->count]);
1450 for (int32_t i = 0; i < d16->count; ++i) {
1453 uprv_sortArray(indexes.getAlias(), d16->count, 4, cmp, context, TRUE, &status);
1458 for (int32_t i = 0; i < d16->count; i++) {
1459 const UChar* s = d16->dataOf(i);
1460 int32_t len = d16->lengthOf(i);
1473 CA_char* CollPerf2Test::getData8FromData16(const CA_uchar* d16, UErrorCode &status) {
1478 for (int32_t i = 0; i < d16->count; i++) {
1479 const UChar *s16 = d16->dataOf(i);
1480 int32_t length16 = d16->lengthOf(i);