Home | History | Annotate | Download | only in intltest

Lines Matching refs:target

108 IntlTestCollator::compareUsingPartials(UCollator *coll, const UChar source[], int32_t sLen, const UChar target[], int32_t tLen, int32_t pieceSize, UErrorCode &status) {
120 uiter_setString(&tIter, target, tLen);
142 IntlTestCollator::doTestVariant(Collator* col, const UnicodeString &source, const UnicodeString &target, Collator::EComparisonResult result)
148 Collator::EComparisonResult compareResult = col->compare(source, target);
152 col->getCollationKey(target, tgtkey, status);
158 reportCResult(source, target, srckey, tgtkey, compareResult, keyResult, result, result);
162 int32_t sLen = source.length(), tLen = target.length();
164 const UChar* trg = target.getBuffer();
173 errln("Different result for iterative comparison "+source+" "+target);
188 /*log_verbose("Strings converted to UTF-8:%s, %s\n", aescstrdup(source,-1), aescstrdup(target,-1));*/
192 uiter_setString(&tIter, target, tLen);*/
200 errln("different results in iterative comparison for UTF-16 and UTF-8 encoded strings. "+source+", "+target);
203 errln("different results in iterative when normalization is turned on with UTF-8 strings. "+source+", "+target);
206 log("Target UTF-8 buffer too small! Did not compare!\n");
229 errln("Partial sortkey comparison returned wrong result: "+source+", "+target+" (size "+partialSizes[i]+")");
238 errln("Partial sortkey comparison gets different result when normalization is on: "+source+", "+target+" (size "+partialSizes[i]+")");
255 IntlTestCollator::doTest(Collator* col, const UChar *source, const UChar *target, Collator::EComparisonResult result) {
256 doTest(col, UnicodeString(source), UnicodeString(target), result);
260 IntlTestCollator::doTest(Collator* col, const UnicodeString &source, const UnicodeString &target, Collator::EComparisonResult result)
263 doTestVariant(col, source, target, result);
265 doTestVariant(col, target, source, Collator::GREATER);
267 doTestVariant(col, target, source, Collator::LESS);
274 c->setText(target, status);
275 logln("Testing iterating target: "+target);
284 IntlTestCollator::reportCResult( const UnicodeString &source, const UnicodeString &target,
311 IntlTest::prettify(target, prettyTarget);
356 UnicodeString& target)
360 target += "LESS";
364 target += "EQUAL";
368 target += "GREATER";
374 target += (huh + (int32_t)result);
377 return target;
381 UnicodeString &IntlTestCollator::prettify(const CollationKey &source, UnicodeString &target)
386 target.remove();
387 target += "[";
392 target += " ";
394 appendHex(bytes[i], 2, target);
397 target += "]";
399 return target;