Home | History | Annotate | Download | only in intltest

Lines Matching refs:source

106 IntlTestCollator::compareUsingPartials(UCollator *coll, const UChar source[], int32_t sLen, const UChar target[], int32_t tLen, int32_t pieceSize, UErrorCode &status) {
117 uiter_setString(&sIter, source, sLen);
140 IntlTestCollator::doTestVariant(Collator* col, const UnicodeString &source, const UnicodeString &target, Collator::EComparisonResult result)
146 Collator::EComparisonResult compareResult = col->compare(source, target);
149 col->getCollationKey(source, srckey, status);
156 reportCResult(source, target, srckey, tgtkey, compareResult, keyResult, result, result);
160 int32_t sLen = source.length(), tLen = target.length();
161 const UChar* src = source.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));*/
189 /*uiter_setString(&sIter, source, sLen);
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);
269 LocalPointer<CollationElementIterator> c(((RuleBasedCollator *)col)->createCollationElementIterator(source));
270 logln("Testing iterating source: "+source);
282 IntlTestCollator::reportCResult( const UnicodeString &source, const UnicodeString &target,
308 IntlTest::prettify(source, prettySource);
379 UnicodeString &IntlTestCollator::prettify(const CollationKey &source, UnicodeString &target)
382 const uint8_t *bytes = source.getByteArray(byteCount);