Lines Matching full:tlen
51 const UChar *target, const int tLen);
659 static UCollationResult ucaTest(void *collator, const int object, const UChar *source, const int sLen, const UChar *target, const int tLen) {
661 return ucol_strcoll(UCA, source, sLen, target, tLen);
665 static UCollationResult winTest(void *collator, const int object, const UChar *source, const int sLen, const UChar *target, const int tLen) {
668 return (UCollationResult)CompareString(lcid, 0, source, sLen, target, tLen);
678 const UChar *t, const uint32_t tLen) {
687 return func(collator, opts, source, sLen+1, target, tLen+1);
693 const UChar *t, const uint32_t tLen) {
700 target[tLen] = s2;
702 return func(collator, opts, source, sLen+1, target, tLen+1);
707 const UChar *t, const uint32_t tLen,
725 if(swampEarlier(func, collator, opts, sSecondary, fSecondary, s, sLen, t, tLen) == result) {
727 } else if((swampEarlier(func, collator, opts, sTertiary, 0x310f, s, sLen, t, tLen) == result) &&
728 (swampEarlier(func, collator, opts, 0x310f, sTertiary, s, sLen, t, tLen) == result)) {
730 } else if((swampLater(func, collator, opts, sTertiary, fTertiary, s, sLen, t, tLen) == result) &&
731 (swampLater(func, collator, opts, fTertiary, sTertiary, s, sLen, t, tLen) == result)) {
733 } else if((swampLater(func, collator, opts, sTertiary, 0x310f, s, sLen, t, tLen) == oposite) &&
734 (swampLater(func, collator, opts, fTertiary, sTertiary, s, sLen, t, tLen) == oposite)) {
767 const UChar *target, const uint32_t tLen,
794 for(i = 0; i<tLen; i++) {
900 uint32_t tLen = u_strlen(second);
902 realResult = func(collator, opts, first, sLen, second, tLen);
903 realStrength = probeStrength(func, collator, opts, first, sLen, second, tLen, realResult);
906 logFailure(msg, "tailoring", first, sLen, second, tLen, realResult, realStrength, UCOL_EQUAL, strength, error);
909 logFailure(msg, "tailoring", first, sLen, second, tLen, realResult, realStrength, UCOL_LESS, strength, error);
2939 uint32_t tlen = u_unescape(testString, test, 32);
2947 klen = ucol_getSortKey(coll, test, tlen, key, 256);
4016 int32_t sLen = 0, tLen = 0;
4026 tLen = u_unescape(cases[j], target, 256);
4027 source[tLen] = 0;
4923 int32_t rLen, tLen, ruleLen, sLen, kLen;
4982 tLen = u_strlen(tData[j]);
4983 log_verbose("\n Data :%s \tlen: %d key: ", tData[j], tLen);
4984 rLen = ucol_getSortKey(coll, tData[j], tLen, resColl, 100);
5006 tLen = u_strlen(tData[j]);
5007 log_verbose("\n Data :%s \tlen: %d key: ", tData[j], tLen);
5008 rLen = ucol_getSortKey(coll, tData[j], tLen, resColl, 100);
5025 tLen = u_strlen(tailorData[j]);
5026 if ( !ucol_equal(coll, tailorData[0], sLen, tailorData[j], tLen)) {
5031 tLen = u_strlen(tailorData[0]);
5032 kLen=ucol_getSortKey(coll, tailorData[0], tLen, expColl, 100);
5034 tLen = u_strlen(tailorData[j]);
5035 rLen = ucol_getSortKey(coll, tailorData[j], tLen, resColl, 100);
5037 log_err("\n Data[%d] :%s \tlen: %d key: ", j, tailorData[j], tLen);
5048 tLen = u_strlen(tailorData2[0]);
5049 kLen=ucol_getSortKey(coll, tailorData2[0], tLen, expColl, 100);
5051 tLen = u_strlen(tailorData2[j]);
5052 rLen = ucol_getSortKey(coll, tailorData2[j], tLen, resColl, 100);
5054 log_err("\n After tailoring Data[%d] :%s \tlen: %d key: ", j, tailorData[j], tLen);
5065 tLen = u_strlen(tailorData3[3]);
5066 kLen=ucol_getSortKey(coll, tailorData3[3], tLen, expColl, 100);
5068 tLen = u_strlen(tailorData3[j]);
5069 rLen = ucol_getSortKey(coll, tailorData3[j], tLen, resColl, 100);
5072 log_err("\n After tailoring Data[%d] :%s \tlen: %d key: ", j, tailorData[j], tLen);
5078 log_verbose("\n Test Data[%d] :%s \tlen: %d key: ", j, tailorData[j], tLen);
5093 int32_t rLen, tLen, ruleLen;
5137 tLen = u_strlen(tData1[0]);
5138 rLen = ucol_getSortKey(coll, tData1[0], tLen, resColl, 100);
5140 log_err("Bad result for &[lpi]<<a...: Data[%d] :%s \tlen: %d key: ", 0, tData1[0], rLen);
5146 tLen = u_strlen(tData1[1]);
5147 rLen = ucol_getSortKey(coll, tData1[1], tLen, resColl, 100);
5149 log_err("Bad result for &[lpi]<<a...: Data[%d] :%s \tlen: %d key: ", 1, tData1[1], rLen);
5166 tLen = u_strlen(tData2[0]);
5167 rLen = ucol_getSortKey(coll, tData2[0], tLen, resColl, 100);
5169 log_err("Bad result for &[lsi]<<<a...: Data[%d] :%s \tlen: %d key: ", 0, tData2[0], rLen);
5176 tLen = u_strlen(tData2[1]);
5177 rLen = ucol_getSortKey(coll, tData2[1], tLen, resColl, 100);
5179 log_err("Bad result for &[lsi]<<<a...: Data[%d] :%s \tlen: %d key: ", 1, tData2[1], rLen);
5196 int32_t rLen, tLen, ruleLen;
5222 tLen = u_strlen(tData1[j]);
5223 rLen = ucol_getSortKey(coll, tData1[j], tLen, resColl, 100);
5228 log_verbose("\n Data[%d] :%s \tlen: %d key: ", j, tData1[j], rLen);
5244 tLen = u_strlen(tData1[j]);
5245 rLen = ucol_getSortKey(coll, tData1[j], tLen, resColl, 100);
5250 log_verbose("\n Data[%d] :%s \tlen: %d key: ", j, tData1[j], rLen);
5267 tLen = u_strlen(tData1[j]);
5268 rLen = ucol_getSortKey(coll, tData1[j], tLen, resColl, 100);
5273 log_verbose("\n Data[%d] :%s \tlen: %d key: ", j, tData1[j], rLen);
5290 tLen = u_strlen(tData1[j]);
5291 rLen = ucol_getSortKey(coll, tData1[j], tLen, resColl, 100);
5300 log_verbose("\n Data[%d] :%s \tlen: %d key: ", j, tData1[j], rLen);