Lines Matching defs:LEN
44 #define LEN(a) (sizeof(a)/sizeof(a[0]))
342 uint32_t len = 512;
373 fprintf(stderr, "%s\n", ucol_sortKeyToString(coll, sortkey, buffer, &len));
855 uint32_t len = u_strlen(rules);
862 for(i = 0; i<len; i++) {
1560 const uint32_t len;
1571 genericRulesStarter(tests[i].rules, tests[i].data, tests[i].len);
1657 uint32_t len = 0;
1680 len = 0;
1681 UTF_APPEND_CHAR_UNSAFE(comp, len, ch);
1682 nfcSize = unorm_normalize(comp, len, UNORM_NFC, 0, t[noCases]->NFC, NORM_BUFFER_TEST_LEN, &status);
1683 nfdSize = unorm_normalize(comp, len, UNORM_NFD, 0, t[noCases]->NFD, NORM_BUFFER_TEST_LEN, &status);
1686 || (len != nfdSize || (uprv_memcmp(comp, t[noCases]->NFD, nfdSize * sizeof(UChar)) != 0))) {
1688 if(len != nfdSize || (uprv_memcmp(comp, t[noCases]->NFD, nfdSize * sizeof(UChar)) != 0)) {
1689 u_strncpy(t[noCases]->NFC, comp, len);
1690 t[noCases]->NFC[len] = 0;
1714 len = 0;
1715 UTF_APPEND_CHAR_UNSAFE(comp, len, u);
1716 comp[len] = 0;
1717 nfcSize = unorm_normalize(comp, len, UNORM_NFC, 0, t[noCases]->NFC, NORM_BUFFER_TEST_LEN, &status);
1718 nfdSize = unorm_normalize(comp, len, UNORM_NFD, 0, t[noCases]->NFD, NORM_BUFFER_TEST_LEN, &status);
3297 const uint32_t len;
3312 genericRulesStarter(tests[i].rules, tests[i].data, tests[i].len);
3492 const uint32_t len;
3503 genericRulesStarterWithResult(tests[i].rules, tests[i].data, tests[i].len, UCOL_EQUAL);
3512 const uint32_t len;
3530 genericRulesStarter(tests[i].rules, tests[i].data, tests[i].len);
3659 const uint32_t len;
3731 genericRulesStarter(tests[i].rules, tests[i].data, tests[i].len);
3745 const uint32_t len;
3754 genericRulesStarter(tests[i].rules, tests[i].data, tests[i].len);
4502 n = checkUEnumeration("ucol_openAvailableLocales", e, AVAIL, LEN(AVAIL));
4514 n = checkUEnumeration("ucol_getKeywords", e, KW, LEN(KW));
4525 n = checkUEnumeration("ucol_getKeywordValues", e, KWVAL, LEN(KWVAL));
4537 n = checkUEnumeration("ucol_getKeywordValues [with warning code set]", e, KWVAL, LEN(KWVAL));
4585 "len"
5583 static int nRangeTestcases = LEN(rangeTestcases);
5595 static int nRangeTestcasesSupplemental = LEN(rangeTestcasesSupplemental);
5616 static int nRangeTestcasesQwerty = LEN(rangeTestcasesQwerty);
5627 doTestOneTestCase(rangeTestcases, nRangeTestcases, strRules, LEN(strRules));
5643 doTestOneTestCase(rangeTestcases, nRangeTestcases, strRules, LEN(strRules));
5654 doTestOneTestCase(rangeTestcasesSupplemental, nRangeTestcasesSupplemental, strRules, LEN(strRules));
5673 doTestOneTestCase(rangeTestcasesQwerty, nRangeTestcasesQwerty, strRules, LEN(strRules));
5686 doTestOneTestCase(rangeTestcasesQwerty, nRangeTestcasesQwerty, strRules, LEN(strRules));
5694 doTestOneTestCase(rangeTestcases, nRangeTestcases, strRules, LEN
5702 doTestOneTestCase(rangeTestcasesSupplemental, nRangeTestcasesSupplemental, strRules, LEN(strRules));
5724 doTestOneTestCase(specialCharacterStrings, LEN(specialCharacterStrings), strRules, LEN(strRules));
5743 doTestOneTestCase(privateUseCharacterStrings, LEN(privateUseCharacterStrings), strRules, LEN(strRules));
5763 doTestOneTestCase(privateUseCharacterStrings, LEN(privateUseCharacterStrings), strRules, LEN(strRules));
5783 doTestOneTestCase(privateUseCharacterStrings, LEN(privateUseCharacterStrings), strRules, LEN(strRules));
5809 int n_rules = LEN(invalidRules);
5864 rulesLength = u_unescape(srules, rules, LEN(rules));
5935 baseKeyLength = ucol_getSortKey(myCollation, testString, LEN(testString), baseKey, 256);
5937 ucol_setReorderCodes(myCollation, reorderCodes, LEN(reorderCodes), &status);
5942 reorderKeyLength = ucol_getSortKey(myCollation, testString, LEN(testString), reorderKey, 256);
5964 baseKeyLength = ucol_getSortKey(myCollation, testString, LEN(testString), baseKey, 256);
5966 ucol_setReorderCodes(myCollation, reorderCodes, LEN(reorderCodes), &status);
5971 reorderKeyLength = ucol_getSortKey(myCollation, testString, LEN(testString), reorderKey, 256);
6015 ucol_setReorderCodes(myCollation, reorderCodes, LEN(reorderCodes), &status);
6028 if (retrievedReorderCodesLength != LEN(reorderCodes)) {
6029 log_err_status(status, "ERROR: retrieved reorder codes length was %d but should have been %d\n", retrievedReorderCodesLength, LEN(reorderCodes));
6033 retrievedReorderCodesLength = ucol_getReorderCodes(myCollation, retrievedReorderCodes, LEN(retrievedReorderCodes), &status);
6038 if (retrievedReorderCodesLength != LEN(reorderCodes)) {
6039 log_err_status(status, "ERROR: retrieved reorder codes length was %d but should have been %d\n", retrievedReorderCodesLength, LEN(reorderCodes));
6048 collResult = ucol_strcoll(myCollation, greekString, LEN(greekString), punctuationString, LEN(punctuationString));
6068 collResult = ucol_strcoll(myCollation, greekString, LEN(greekString), punctuationString, LEN(punctuationString));
6075 ucol_setReorderCodes(myCollation, duplicateReorderCodes, LEN(duplicateReorderCodes), &status);
6083 ucol_setReorderCodes(myCollation, reorderCodesStartingWithDefault, LEN(reorderCodesStartingWithDefault), &status);
6121 retrievedReorderCodesLength = ucol_getReorderCodes(myCollation, retrievedReorderCodes, LEN(retrievedReorderCodes), &status);
6126 if (retrievedReorderCodesLength != LEN(rulesReorderCodes)) {
6127 log_err_status(status, "ERROR: retrieved reorder codes length was %d but should have been %d\n", retrievedReorderCodesLength, LEN(rulesReorderCodes));
6136 collResult = ucol_strcoll(myCollation, greekString, LEN(greekString), hanString, LEN(hanString));
6144 ucol_setReorderCodes(myCollation, reorderCodes, LEN(reorderCodes), &status);
6157 if (retrievedReorderCodesLength != LEN(reorderCodes)) {
6158 log_err_status(status, "ERROR: retrieved reorder codes length was %d but should have been %d\n", retrievedReorderCodesLength, LEN(reorderCodes));
6162 retrievedReorderCodesLength = ucol_getReorderCodes(myCollation, retrievedReorderCodes, LEN(retrievedReorderCodes), &status);
6167 if (retrievedReorderCodesLength != LEN(reorderCodes)) {
6168 log_err_status(status, "ERROR: retrieved reorder codes length was %d but should have been %d\n", retrievedReorderCodesLength, LEN(reorderCodes));
6177 collResult = ucol_strcoll(myCollation, greekString, LEN(greekString), punctuationString, LEN(punctuationString));
6197 collResult = ucol_strcoll(myCollation, greekString, LEN(greekString), punctuationString, LEN(punctuationString));
6241 qsort(equivalentScriptsResult, LEN(equivalentScriptsResult), sizeof(int32_t), compareUScriptCodes);
6244 equivalentScriptsLength = ucol_getEquivalentReorderCodes(USCRIPT_GOTHIC, equivalentScripts, LEN(equivalentScripts), &status);
6256 if (equivalentScriptsLength != LEN(equivalentScriptsResult)) {
6257 log_err_status(status, "ERROR: retrieved equivalent script length wrong: expected = %d, was = %d\n", LEN(equivalentScriptsResult), equivalentScriptsLength);
6268 equivalentScriptsLength = ucol_getEquivalentReorderCodes(USCRIPT_SHAVIAN, equivalentScripts, LEN(equivalentScripts), &status);
6273 if (equivalentScriptsLength != LEN(equivalentScriptsResult)) {
6274 log_err_status(status, "ERROR: retrieved equivalent script length wrong: expected = %d, was = %d\n", LEN(equivalentScriptsResult), equivalentScriptsLength);
6307 ucol_setReorderCodes(myCollation, reorderCodes, LEN(reorderCodes), &status);
6321 retrievedReorderCodesLength = ucol_getReorderCodes(clonedCollation, retrievedReorderCodes, LEN(retrievedReorderCodes), &status);
6326 if (retrievedReorderCodesLength != LEN(reorderCodes)) {
6327 log_err_status(status, "ERROR: retrieved reorder codes length was %d but should have been %d\n", retrievedReorderCodesLength, LEN(reorderCodes));
6396 doTestOneTestCase(privateUseCharacterStrings, LEN(privateUseCharacterStrings), strRules, LEN(strRules));
6399 doTestOneReorderingAPITestCase(privateUseCharacterStrings, LEN(privateUseCharacterStrings), apiRules, LEN(apiRules));
6421 doTestOneTestCase(privateUseCharacterStrings, LEN(privateUseCharacterStrings), strRules, LEN(strRules));
6424 doTestOneReorderingAPITestCase(privateUseCharacterStrings, LEN(privateUseCharacterStrings), apiRules, LEN(apiRules));
6448 doTestOneTestCase(privateUseCharacterStrings, LEN(privateUseCharacterStrings), strRules, LEN(strRules));
6451 doTestOneReorderingAPITestCase(privateUseCharacterStrings, LEN(privateUseCharacterStrings), apiRules, LEN(apiRules));
6474 doTestOneTestCase(privateUseCharacterStrings, LEN(privateUseCharacterStrings), strRules, LEN(strRules));
6477 doTestOneReorderingAPITestCase(privateUseCharacterStrings, LEN(privateUseCharacterStrings), apiRules, LEN(apiRules));
6497 doTestOneTestCase(collationTestCases, LEN(collationTestCases), strRules, LEN(strRules));
6500 doTestOneReorderingAPITestCase(collationTestCases, LEN(collationTestCases), apiRules, LEN(apiRules));