Lines Matching refs:LEN

44 #define LEN(a) (sizeof(a)/sizeof(a[0]))  macro
1306 resultlen = ucol_getSortKey(coll, secstr, 150, result, LEN(result)); in TestCompressOverlap()
1320 resultlen = ucol_getSortKey(coll, tertstr, 150, result, LEN(result)); in TestCompressOverlap()
1334 resultlen = ucol_getSortKey(coll, secstr, 150, result, LEN(result)); in TestCompressOverlap()
1347 resultlen = ucol_getSortKey(coll, tertstr, 150, result, LEN(result)); in TestCompressOverlap()
3175 n = checkUEnumeration("ucol_openAvailableLocales", e, AVAIL, LEN(AVAIL)); in TestSeparateTrees()
3188 n = checkUEnumeration("ucol_getKeywords", e, KW, LEN(KW)); in TestSeparateTrees()
3199 n = checkUEnumeration("ucol_getKeywordValues", e, KWVAL, LEN(KWVAL)); in TestSeparateTrees()
3211 … n = checkUEnumeration("ucol_getKeywordValues [with warning code set]", e, KWVAL, LEN(KWVAL)); in TestSeparateTrees()
3822 if (rLen != LEN(lastPrimaryIgnCE) || uprv_memcmp(resColl, lastPrimaryIgnCE, rLen) != 0) { in TestTailor6179()
3831 if (rLen != LEN(firstPrimaryIgnCE) || uprv_memcmp(resColl, firstPrimaryIgnCE, rLen) != 0) { in TestTailor6179()
3853 if (rLen != LEN(lastSecondaryIgnCE) || uprv_memcmp(resColl, lastSecondaryIgnCE, rLen) != 0) { in TestTailor6179()
3862 if (rLen != LEN(firstSecondaryIgnCE) || uprv_memcmp(resColl, firstSecondaryIgnCE, rLen) != 0) { in TestTailor6179()
4280 static int nRangeTestcases = LEN(rangeTestcases);
4292 static int nRangeTestcasesSupplemental = LEN(rangeTestcasesSupplemental);
4313 static int nRangeTestcasesQwerty = LEN(rangeTestcasesQwerty);
4324 doTestOneTestCase(rangeTestcases, nRangeTestcases, strRules, LEN(strRules)); in TestSameStrengthList()
4340 doTestOneTestCase(rangeTestcases, nRangeTestcases, strRules, LEN(strRules)); in TestSameStrengthListQuoted()
4351 …doTestOneTestCase(rangeTestcasesSupplemental, nRangeTestcasesSupplemental, strRules, LEN(strRules)… in TestSameStrengthListSupplemental()
4370 doTestOneTestCase(rangeTestcasesQwerty, nRangeTestcasesQwerty, strRules, LEN(strRules)); in TestSameStrengthListQwerty()
4383 doTestOneTestCase(rangeTestcasesQwerty, nRangeTestcasesQwerty, strRules, LEN(strRules)); in TestSameStrengthListQuotedQwerty()
4391 doTestOneTestCase(rangeTestcases, nRangeTestcases, strRules, LEN(strRules)); in TestSameStrengthListRanges()
4400 …doTestOneTestCase(rangeTestcasesSupplemental, nRangeTestcasesSupplemental, strRules, LEN(strRules)… in TestSameStrengthListSupplementalRanges()
4422 doTestOneTestCase(specialCharacterStrings, LEN(specialCharacterStrings), strRules, LEN(strRules)); in TestSpecialCharacters()
4441 …doTestOneTestCase(privateUseCharacterStrings, LEN(privateUseCharacterStrings), strRules, LEN(strRu… in TestPrivateUseCharacters()
4461 …doTestOneTestCase(privateUseCharacterStrings, LEN(privateUseCharacterStrings), strRules, LEN(strRu… in TestPrivateUseCharactersInList()
4481 …doTestOneTestCase(privateUseCharacterStrings, LEN(privateUseCharacterStrings), strRules, LEN(strRu… in TestPrivateUseCharactersInRange()
4507 int n_rules = LEN(invalidRules); in TestInvalidListsAndRanges()
4565 rulesLength = u_unescape(srules, rules, LEN(rules)); in TestBeforeRuleWithScriptReordering()
4636 baseKeyLength = ucol_getSortKey(myCollation, testString, LEN(testString), baseKey, 256); in TestNonLeadBytesDuringCollationReordering()
4638 ucol_setReorderCodes(myCollation, reorderCodes, LEN(reorderCodes), &status); in TestNonLeadBytesDuringCollationReordering()
4643 reorderKeyLength = ucol_getSortKey(myCollation, testString, LEN(testString), reorderKey, 256); in TestNonLeadBytesDuringCollationReordering()
4665 baseKeyLength = ucol_getSortKey(myCollation, testString, LEN(testString), baseKey, 256); in TestNonLeadBytesDuringCollationReordering()
4667 ucol_setReorderCodes(myCollation, reorderCodes, LEN(reorderCodes), &status); in TestNonLeadBytesDuringCollationReordering()
4672 reorderKeyLength = ucol_getSortKey(myCollation, testString, LEN(testString), reorderKey, 256); in TestNonLeadBytesDuringCollationReordering()
4717 ucol_setReorderCodes(myCollation, reorderCodes, LEN(reorderCodes), &status); in TestReorderingAPI()
4730 if (retrievedReorderCodesLength != LEN(reorderCodes)) { in TestReorderingAPI()
4731 …er codes length was %d but should have been %d\n", retrievedReorderCodesLength, LEN(reorderCodes)); in TestReorderingAPI()
4735 …retrievedReorderCodesLength = ucol_getReorderCodes(myCollation, retrievedReorderCodes, LEN(retriev… in TestReorderingAPI()
4740 if (retrievedReorderCodesLength != LEN(reorderCodes)) { in TestReorderingAPI()
4741 …er codes length was %d but should have been %d\n", retrievedReorderCodesLength, LEN(reorderCodes)); in TestReorderingAPI()
4750 …collResult = ucol_strcoll(myCollation, greekString, LEN(greekString), punctuationString, LEN(punct… in TestReorderingAPI()
4770 …collResult = ucol_strcoll(myCollation, greekString, LEN(greekString), punctuationString, LEN(punct… in TestReorderingAPI()
4793 ucol_setReorderCodes(myCollation, duplicateReorderCodes, LEN(duplicateReorderCodes), &status); in TestReorderingAPI()
4801 …ucol_setReorderCodes(myCollation, reorderCodesStartingWithDefault, LEN(reorderCodesStartingWithDef… in TestReorderingAPI()
4840 …retrievedReorderCodesLength = ucol_getReorderCodes(myCollation, retrievedReorderCodes, LEN(retriev… in TestReorderingAPIWithRuleCreatedCollator()
4845 if (retrievedReorderCodesLength != LEN(rulesReorderCodes)) { in TestReorderingAPIWithRuleCreatedCollator()
4846 …des length was %d but should have been %d\n", retrievedReorderCodesLength, LEN(rulesReorderCodes)); in TestReorderingAPIWithRuleCreatedCollator()
4855 … collResult = ucol_strcoll(myCollation, greekString, LEN(greekString), hanString, LEN(hanString)); in TestReorderingAPIWithRuleCreatedCollator()
4862 ucol_setReorderCodes(myCollation, reorderCodes, LEN(reorderCodes), &status); in TestReorderingAPIWithRuleCreatedCollator()
4875 if (retrievedReorderCodesLength != LEN(reorderCodes)) { in TestReorderingAPIWithRuleCreatedCollator()
4876 …er codes length was %d but should have been %d\n", retrievedReorderCodesLength, LEN(reorderCodes)); in TestReorderingAPIWithRuleCreatedCollator()
4880 …retrievedReorderCodesLength = ucol_getReorderCodes(myCollation, retrievedReorderCodes, LEN(retriev… in TestReorderingAPIWithRuleCreatedCollator()
4885 if (retrievedReorderCodesLength != LEN(reorderCodes)) { in TestReorderingAPIWithRuleCreatedCollator()
4886 …er codes length was %d but should have been %d\n", retrievedReorderCodesLength, LEN(reorderCodes)); in TestReorderingAPIWithRuleCreatedCollator()
4895 …collResult = ucol_strcoll(myCollation, greekString, LEN(greekString), punctuationString, LEN(punct… in TestReorderingAPIWithRuleCreatedCollator()
4915 …collResult = ucol_strcoll(myCollation, greekString, LEN(greekString), punctuationString, LEN(punct… in TestReorderingAPIWithRuleCreatedCollator()
4927 …retrievedReorderCodesLength = ucol_getReorderCodes(myCollation, retrievedReorderCodes, LEN(retriev… in TestReorderingAPIWithRuleCreatedCollator()
4932 if (retrievedReorderCodesLength != LEN(rulesReorderCodes)) { in TestReorderingAPIWithRuleCreatedCollator()
4933 …des length was %d but should have been %d\n", retrievedReorderCodesLength, LEN(rulesReorderCodes)); in TestReorderingAPIWithRuleCreatedCollator()
4972 USCRIPT_GOTHIC, equivalentScripts, LEN(equivalentScripts), &status); in TestEquivalentReorderingScripts()
4984 USCRIPT_HIRAGANA, equivalentScripts, LEN(equivalentScripts), &status); in TestEquivalentReorderingScripts()
4989 if (length != LEN(expectedScripts)) { in TestEquivalentReorderingScripts()
4992 LEN(expectedScripts), length); in TestEquivalentReorderingScripts()
5002 for (i = 0; i < LEN(expectedScripts); i++) { in TestEquivalentReorderingScripts()
5010 USCRIPT_KATAKANA, equivalentScripts, LEN(equivalentScripts), &status); in TestEquivalentReorderingScripts()
5015 if (length != LEN(expectedScripts)) { in TestEquivalentReorderingScripts()
5018 LEN(expectedScripts), length); in TestEquivalentReorderingScripts()
5020 for (i = 0; i < LEN(expectedScripts); i++) { in TestEquivalentReorderingScripts()
5028 USCRIPT_KATAKANA_OR_HIRAGANA, equivalentScripts, LEN(equivalentScripts), &status); in TestEquivalentReorderingScripts()
5029 if (U_FAILURE(status) || length != LEN(expectedScripts)) { in TestEquivalentReorderingScripts()
5032 LEN(expectedScripts), length); in TestEquivalentReorderingScripts()
5036 USCRIPT_HAN, equivalentScripts, LEN(equivalentScripts), &status); in TestEquivalentReorderingScripts()
5042 USCRIPT_SIMPLIFIED_HAN, equivalentScripts, LEN(equivalentScripts), &status); in TestEquivalentReorderingScripts()
5048 USCRIPT_TRADITIONAL_HAN, equivalentScripts, LEN(equivalentScripts), &status); in TestEquivalentReorderingScripts()
5055 USCRIPT_MEROITIC_CURSIVE, equivalentScripts, LEN(equivalentScripts), &status); in TestEquivalentReorderingScripts()
5061 USCRIPT_MEROITIC_HIEROGLYPHS, equivalentScripts, LEN(equivalentScripts), &status); in TestEquivalentReorderingScripts()
5089 ucol_setReorderCodes(myCollation, reorderCodes, LEN(reorderCodes), &status); in TestReorderingAcrossCloning()
5103 …retrievedReorderCodesLength = ucol_getReorderCodes(clonedCollation, retrievedReorderCodes, LEN(ret… in TestReorderingAcrossCloning()
5108 if (retrievedReorderCodesLength != LEN(reorderCodes)) { in TestReorderingAcrossCloning()
5109 …er codes length was %d but should have been %d\n", retrievedReorderCodesLength, LEN(reorderCodes)); in TestReorderingAcrossCloning()
5178 …doTestOneTestCase(privateUseCharacterStrings, LEN(privateUseCharacterStrings), strRules, LEN(strRu… in TestGreekFirstReorder()
5181 …OneReorderingAPITestCase(privateUseCharacterStrings, LEN(privateUseCharacterStrings), apiRules, LE… in TestGreekFirstReorder()
5203 …doTestOneTestCase(privateUseCharacterStrings, LEN(privateUseCharacterStrings), strRules, LEN(strRu… in TestGreekLastReorder()
5206 …OneReorderingAPITestCase(privateUseCharacterStrings, LEN(privateUseCharacterStrings), apiRules, LE… in TestGreekLastReorder()
5230 …doTestOneTestCase(privateUseCharacterStrings, LEN(privateUseCharacterStrings), strRules, LEN(strRu… in TestNonScriptReorder()
5233 …OneReorderingAPITestCase(privateUseCharacterStrings, LEN(privateUseCharacterStrings), apiRules, LE… in TestNonScriptReorder()
5256 …doTestOneTestCase(privateUseCharacterStrings, LEN(privateUseCharacterStrings), strRules, LEN(strRu… in TestHaniReorder()
5259 …OneReorderingAPITestCase(privateUseCharacterStrings, LEN(privateUseCharacterStrings), apiRules, LE… in TestHaniReorder()
5283 …doTestOneTestCase(privateUseCharacterStrings, LEN(privateUseCharacterStrings), strRules, LEN(strRu… in TestHaniReorderWithOtherRules()
5303 doTestOneTestCase(collationTestCases, LEN(collationTestCases), strRules, LEN(strRules)); in TestMultipleReorder()
5306 …doTestOneReorderingAPITestCase(collationTestCases, LEN(collationTestCases), apiRules, LEN(apiRules… in TestMultipleReorder()
5352 ucol_setReorderCodes(myReorderCollation, reorderCodes, LEN(reorderCodes), &status); in TestReorderWithNumericCollation()
5358 fortyS_sortKey_Length = ucol_getSortKey(myCollation, fortyS, LEN(fortyS), fortyS_sortKey, 128); in TestReorderWithNumericCollation()
5359 …fortyThreeP_sortKey_Length = ucol_getSortKey(myCollation, fortyThreeP, LEN(fortyThreeP), fortyThre… in TestReorderWithNumericCollation()
5360 …fortyS_sortKey_reorder_Length = ucol_getSortKey(myReorderCollation, fortyS, LEN(fortyS), fortyS_so… in TestReorderWithNumericCollation()
5361 …fortyThreeP_sortKey_reorder_Length = ucol_getSortKey(myReorderCollation, fortyThreeP, LEN(fortyThr… in TestReorderWithNumericCollation()
5367 collResult = ucol_strcoll(myCollation, fortyS, LEN(fortyS), fortyThreeP, LEN(fortyThreeP)); in TestReorderWithNumericCollation()
5368 …collResultReorder = ucol_strcoll(myReorderCollation, fortyS, LEN(fortyS), fortyThreeP, LEN(fortyTh… in TestReorderWithNumericCollation()
5422 doTestOneTestCase(normalTests, LEN(normalTests), normalRules, LEN(normalRules)); in TestImportRulesDeWithPhonebook()
5423 doTestOneTestCase(importTests, LEN(importTests), importRules, LEN(importRules)); in TestImportRulesDeWithPhonebook()
5477 doTestOneTestCase(defaultTests, LEN(defaultTests), defaultRules, LEN(defaultRules));
5478 doTestOneTestCase(eorTests, LEN(eorTests), eorRules, LEN(eorRules));
5479 doTestOneTestCase(fiStdTests, LEN(fiStdTests), fiStdRules, LEN(fiStdRules));
5480 doTestOneTestCase(fiEorTests, LEN(fiEorTests), eorFiStdRules, LEN(eorFiStdRules));
5522 doTestOneTestCase(defaultTests, LEN(defaultTests), defaultRules, LEN(defaultRules));
5523 doTestOneTestCase(unihanTests, LEN(unihanTests), unihanRules, LEN(unihanRules));