Lines Matching refs:target

106 IntlTestCollator::compareUsingPartials(UCollator *coll, const UChar source[], int32_t sLen, const UChar target[], int32_t tLen, int32_t pieceSize, UErrorCode &status) {
118 uiter_setString(&tIter, target, tLen);
140 IntlTestCollator::doTestVariant(Collator* col, const UnicodeString &source, const UnicodeString &target, Collator::EComparisonResult result)
146 Collator::EComparisonResult compareResult = col->compare(source, target);
150 col->getCollationKey(target, tgtkey, status);
156 reportCResult(source, target, srckey, tgtkey, compareResult, keyResult, result, result);
160 int32_t sLen = source.length(), tLen = target.length();
162 const UChar* trg = target.getBuffer();
171 errln("Different result for iterative comparison "+source+" "+target);
186 /*log_verbose("Strings converted to UTF-8:%s, %s\n", aescstrdup(source,-1), aescstrdup(target,-1));*/
190 uiter_setString(&tIter, target, tLen);*/
198 errln("different results in iterative comparison for UTF-16 and UTF-8 encoded strings. "+source+", "+target);
201 errln("different results in iterative when normalization is turned on with UTF-8 strings. "+source+", "+target);
227 errln("Partial sortkey comparison returned wrong result: "+source+", "+target+" (size "+partialSizes[i]+")");
236 errln("Partial sortkey comparison gets different result when normalization is on: "+source+", "+target+" (size "+partialSizes[i]+")");
253 IntlTestCollator::doTest(Collator* col, const UChar *source, const UChar *target, Collator::EComparisonResult result) {
254 doTest(col, UnicodeString(source), UnicodeString(target), result);
258 IntlTestCollator::doTest(Collator* col, const UnicodeString &source, const UnicodeString &target, Collator::EComparisonResult result)
261 doTestVariant(col, source, target, result);
263 doTestVariant(col, target, source, Collator::GREATER);
265 doTestVariant(col, target, source, Collator::LESS);
272 c->setText(target, status);
273 logln("Testing iterating target: "+target);
282 IntlTestCollator::reportCResult( const UnicodeString &source, const UnicodeString &target,
309 IntlTest::prettify(target, prettyTarget);
354 UnicodeString& target)
358 target += "LESS";
362 target += "EQUAL";
366 target += "GREATER";
372 target += (huh + (int32_t)result);
375 return target;
379 UnicodeString &IntlTestCollator::prettify(const CollationKey &source, UnicodeString &target)
384 target.remove();
385 target += "[";
390 target += " ";
392 appendHex(bytes[i], 2, target);
395 target += "]";
397 return target;