Lines Matching refs:UPRV_LENGTHOF

735     for(i=0;i<UPRV_LENGTHOF(logicalOrder);i++){  in testReorder()
770 for(i=0;i<UPRV_LENGTHOF(logicalOrder);i++){ in testReorder()
804 for(i=0;i<UPRV_LENGTHOF(logicalOrder);i++){ in testReorder()
835 for(i=0;i<UPRV_LENGTHOF(logicalOrder);i++){ in testReorder()
869 for(i=0;i<UPRV_LENGTHOF(logicalOrder);i++){ in testReorder()
997 for(i=0;i<UPRV_LENGTHOF(logicalOrder);i++){ in testReorderArabicMathSymbols()
1289 #define STRING_TEST_CASE(s) { (s), UPRV_LENGTHOF(s) }
1359 UPRV_LENGTHOF(testCases)); in testGetBaseDirection()
1361 for(i=0; i<UPRV_LENGTHOF(testCases); ++i) { in testGetBaseDirection()
2136 ubidi_setPara(pBidi, multiparaTestString, UPRV_LENGTHOF(multiparaTestString), in testMultipleParagraphs()
2149 for (i = 0; i < UPRV_LENGTHOF(multiparaTestString); i++) { in testMultipleParagraphs()
2165 #define STRING_TEST_CASE(s) { (s), UPRV_LENGTHOF(s) }
2198 log_verbose("inverse Bidi: testInverse(L) with %u test cases ---\n", UPRV_LENGTHOF(testCases)); in testInverse()
2199 for(i=0; i<UPRV_LENGTHOF(testCases); ++i) { in testInverse()
2205 log_verbose("inverse Bidi: testInverse(R) with %u test cases ---\n", UPRV_LENGTHOF(testCases)); in testInverse()
2206 for(i=0; i<UPRV_LENGTHOF(testCases); ++i) { in testInverse()
2283 logicalLength=ubidi_writeReordered(pBiDi, logicalDest, UPRV_LENGTHOF(logicalDest), in _testInverseBidi()
2295 visualLength=ubidi_writeReordered(pBiDi, visualDest, UPRV_LENGTHOF(visualDest), in _testInverseBidi()
2301 … ltrLength=ubidi_writeReverse(src, srcLength, visualLTR, UPRV_LENGTHOF(visualLTR), 0, pErrorCode); in _testInverseBidi()
2309 logicalLength=ubidi_writeReordered(pBiDi, logicalDest, UPRV_LENGTHOF(logicalDest), in _testInverseBidi()
2318 visualLength=ubidi_writeReordered(pBiDi, visualDest, UPRV_LENGTHOF(visualDest), in _testInverseBidi()
2359 length=ubidi_writeReverse(forward, UPRV_LENGTHOF(forward), in _testWriteReverse()
2360 reverse, UPRV_LENGTHOF(reverse), in _testWriteReverse()
2363 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(reverseKeepCombining) || memcmp(reverse, reverseK… in _testWriteReverse()
2365 length, UPRV_LENGTHOF(reverseKeepCombining), u_errorName(errorCode)); in _testWriteReverse()
2368 memset(reverse, 0xa5, UPRV_LENGTHOF(reverse)*U_SIZEOF_UCHAR); in _testWriteReverse()
2370 length=ubidi_writeReverse(forward, UPRV_LENGTHOF(forward), in _testWriteReverse()
2371 reverse, UPRV_LENGTHOF(reverse), in _testWriteReverse()
2374 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(reverseRemoveControlsKeepCombiningDoMirror) || me… in _testWriteReverse()
2377 … length, UPRV_LENGTHOF(reverseRemoveControlsKeepCombiningDoMirror), u_errorName(errorCode)); in _testWriteReverse()
2386 for (i = 0; i < UPRV_LENGTHOF(text); i+=3) { in _testManyAddedPoints()
2393 ubidi_setPara(bidi, text, UPRV_LENGTHOF(text), UBIDI_LTR, NULL, &errorCode); in _testManyAddedPoints()
2395 for (i = 0; i < UPRV_LENGTHOF(expected); i+=4) { in _testManyAddedPoints()
2404 aescstrdup(expected, UPRV_LENGTHOF(expected)), in _testManyAddedPoints()
2417 ubidi_setPara(bidi, src, UPRV_LENGTHOF(src), UBIDI_RTL, NULL, &errorCode); in _testMisc()
2425 aescstrdup(expected, UPRV_LENGTHOF(expected)), in _testMisc()
2467 length=u_shapeArabic(source, UPRV_LENGTHOF(source), in doArabicShapingTest()
2468 dest, UPRV_LENGTHOF(dest), in doArabicShapingTest()
2471 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(source) || memcmp(dest, en2an, length*U_SIZEOF_UC… in doArabicShapingTest()
2478 dest, UPRV_LENGTHOF(dest), in doArabicShapingTest()
2487 length=u_shapeArabic(source, UPRV_LENGTHOF(source), in doArabicShapingTest()
2488 dest, UPRV_LENGTHOF(dest), in doArabicShapingTest()
2491 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(source) || memcmp(dest, logical_alen2an_init_lr, … in doArabicShapingTest()
2497 length=u_shapeArabic(source, UPRV_LENGTHOF(source), in doArabicShapingTest()
2498 dest, UPRV_LENGTHOF(dest), in doArabicShapingTest()
2501 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(source) || memcmp(dest, logical_alen2an_init_al, … in doArabicShapingTest()
2507 length=u_shapeArabic(source, UPRV_LENGTHOF(source), in doArabicShapingTest()
2508 dest, UPRV_LENGTHOF(dest), in doArabicShapingTest()
2511 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(source) || memcmp(dest, reverse_alen2an_init_lr, … in doArabicShapingTest()
2517 length=u_shapeArabic(source, UPRV_LENGTHOF(source), in doArabicShapingTest()
2518 dest, UPRV_LENGTHOF(dest), in doArabicShapingTest()
2521 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(source) || memcmp(dest, reverse_alen2an_init_al, … in doArabicShapingTest()
2527 length=u_shapeArabic(source, UPRV_LENGTHOF(source), in doArabicShapingTest()
2528 dest, UPRV_LENGTHOF(dest), in doArabicShapingTest()
2531 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(source) || memcmp(dest, source, length*U_SIZEOF_U… in doArabicShapingTest()
2537 dest, UPRV_LENGTHOF(dest), in doArabicShapingTest()
2541 …peArabic(en2an, sourceLength=0), returned %d/%s\n", u_errorName(errorCode), UPRV_LENGTHOF(source)); in doArabicShapingTest()
2546 length=u_shapeArabic(source, UPRV_LENGTHOF(source), in doArabicShapingTest()
2550 if(errorCode!=U_BUFFER_OVERFLOW_ERROR || length!=UPRV_LENGTHOF(source)) { in doArabicShapingTest()
2552 length, u_errorName(errorCode), UPRV_LENGTHOF(source)); in doArabicShapingTest()
2557 length=u_shapeArabic(NULL, UPRV_LENGTHOF(source), in doArabicShapingTest()
2558 dest, UPRV_LENGTHOF(dest), in doArabicShapingTest()
2567 dest, UPRV_LENGTHOF(dest), in doArabicShapingTest()
2575 length=u_shapeArabic(source, UPRV_LENGTHOF(source), in doArabicShapingTest()
2576 NULL, UPRV_LENGTHOF(dest), in doArabicShapingTest()
2584 length=u_shapeArabic(source, UPRV_LENGTHOF(source), in doArabicShapingTest()
2593 length=u_shapeArabic(source, UPRV_LENGTHOF(source), in doArabicShapingTest()
2594 dest, UPRV_LENGTHOF(dest), in doArabicShapingTest()
2602 length=u_shapeArabic(source, UPRV_LENGTHOF(source), in doArabicShapingTest()
2603 dest, UPRV_LENGTHOF(dest), in doArabicShapingTest()
2611 length=u_shapeArabic(source, UPRV_LENGTHOF(source), in doArabicShapingTest()
2612 … (UChar *)(source+2), UPRV_LENGTHOF(dest), /* overlap source and destination */ in doArabicShapingTest()
2620 length=u_shapeArabic(lamalef, UPRV_LENGTHOF(lamalef), in doArabicShapingTest()
2621 dest, UPRV_LENGTHOF(dest), in doArabicShapingTest()
2624 if(U_FAILURE(errorCode) || length == UPRV_LENGTHOF(lamalef)) { in doArabicShapingTest()
2684 length=u_shapeArabic(source, UPRV_LENGTHOF(source), in doLamAlefSpecialVLTRArabicShapingTest()
2685 dest, UPRV_LENGTHOF(dest), in doLamAlefSpecialVLTRArabicShapingTest()
2690 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(shape_near) || memcmp(dest, shape_near, length*U_… in doLamAlefSpecialVLTRArabicShapingTest()
2696 length=u_shapeArabic(source, UPRV_LENGTHOF(source), in doLamAlefSpecialVLTRArabicShapingTest()
2697 dest, UPRV_LENGTHOF(dest), in doLamAlefSpecialVLTRArabicShapingTest()
2702 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(shape_at_end) || memcmp(dest, shape_at_end, lengt… in doLamAlefSpecialVLTRArabicShapingTest()
2708 length=u_shapeArabic(source, UPRV_LENGTHOF(source), in doLamAlefSpecialVLTRArabicShapingTest()
2709 dest, UPRV_LENGTHOF(dest), in doLamAlefSpecialVLTRArabicShapingTest()
2714 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(shape_at_begin) || memcmp(dest, shape_at_begin, l… in doLamAlefSpecialVLTRArabicShapingTest()
2720 length=u_shapeArabic(source, UPRV_LENGTHOF(source), in doLamAlefSpecialVLTRArabicShapingTest()
2721 dest, UPRV_LENGTHOF(dest), in doLamAlefSpecialVLTRArabicShapingTest()
2734 length=u_shapeArabic(source, UPRV_LENGTHOF(source), in doLamAlefSpecialVLTRArabicShapingTest()
2735 dest, UPRV_LENGTHOF(dest), in doLamAlefSpecialVLTRArabicShapingTest()
2740 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(shape_excepttashkeel_near) || memcmp(dest, shape_… in doLamAlefSpecialVLTRArabicShapingTest()
2746 length=u_shapeArabic(source, UPRV_LENGTHOF(source), in doLamAlefSpecialVLTRArabicShapingTest()
2747 dest, UPRV_LENGTHOF(dest), in doLamAlefSpecialVLTRArabicShapingTest()
2752 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(shape_excepttashkeel_at_end) || memcmp(dest,shape… in doLamAlefSpecialVLTRArabicShapingTest()
2758 length=u_shapeArabic(source, UPRV_LENGTHOF(source), in doLamAlefSpecialVLTRArabicShapingTest()
2759 dest, UPRV_LENGTHOF(dest), in doLamAlefSpecialVLTRArabicShapingTest()
2764 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(shape_excepttashkeel_at_begin) || memcmp(dest, sh… in doLamAlefSpecialVLTRArabicShapingTest()
2770 length=u_shapeArabic(source, UPRV_LENGTHOF(source), in doLamAlefSpecialVLTRArabicShapingTest()
2771 dest, UPRV_LENGTHOF(dest), in doLamAlefSpecialVLTRArabicShapingTest()
2810 length=u_shapeArabic(source, UPRV_LENGTHOF(source), in doTashkeelSpecialVLTRArabicShapingTest()
2811 dest, UPRV_LENGTHOF(dest), in doTashkeelSpecialVLTRArabicShapingTest()
2816 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(shape_near) || memcmp(dest, shape_near, length*U_… in doTashkeelSpecialVLTRArabicShapingTest()
2822 length=u_shapeArabic(source, UPRV_LENGTHOF(source), in doTashkeelSpecialVLTRArabicShapingTest()
2823 dest, UPRV_LENGTHOF(dest), in doTashkeelSpecialVLTRArabicShapingTest()
2828 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(shape_excepttashkeel_near) || memcmp(dest, shape_… in doTashkeelSpecialVLTRArabicShapingTest()
2864 length=u_shapeArabic(source, UPRV_LENGTHOF(source), in doLOGICALArabicDeShapingTest()
2865 dest, UPRV_LENGTHOF(dest), in doLOGICALArabicDeShapingTest()
2870 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(unshape_near) || memcmp(dest, unshape_near, lengt… in doLOGICALArabicDeShapingTest()
2876 length=u_shapeArabic(source, UPRV_LENGTHOF(source), in doLOGICALArabicDeShapingTest()
2877 dest, UPRV_LENGTHOF(dest), in doLOGICALArabicDeShapingTest()
2882 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(unshape_at_end) || memcmp(dest, unshape_at_end, l… in doLOGICALArabicDeShapingTest()
2888 length=u_shapeArabic(source, UPRV_LENGTHOF(source), in doLOGICALArabicDeShapingTest()
2889 dest, UPRV_LENGTHOF(dest), in doLOGICALArabicDeShapingTest()
2894 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(unshape_at_begin) || memcmp(dest, unshape_at_begi… in doLOGICALArabicDeShapingTest()
2900 length=u_shapeArabic(source, UPRV_LENGTHOF(source), in doLOGICALArabicDeShapingTest()
2901 dest, UPRV_LENGTHOF(dest), in doLOGICALArabicDeShapingTest()
2925 length = u_shapeArabic(src, -1, dst, UPRV_LENGTHOF(dst), in doTailTest()
2931 } else if(u_strncmp(dst,dst_old,UPRV_LENGTHOF(dst))) { in doTailTest()
2942 length = u_shapeArabic(src, -1, dst, UPRV_LENGTHOF(dst), in doTailTest()
2948 } else if(u_strncmp(dst,dst_new,UPRV_LENGTHOF(dst))) { in doTailTest()
2986 length=u_shapeArabic(persian_letters_source, UPRV_LENGTHOF(persian_letters_source), in doArabicShapingTestForBug5421()
2987 dest, UPRV_LENGTHOF(dest), in doArabicShapingTestForBug5421()
2991 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(persian_letters) || memcmp(dest, persian_letters,… in doArabicShapingTestForBug5421()
2997 length=u_shapeArabic(tashkeel_aggregation_source, UPRV_LENGTHOF(tashkeel_aggregation_source), in doArabicShapingTestForBug5421()
2998 dest, UPRV_LENGTHOF(dest), in doArabicShapingTestForBug5421()
3003 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(tashkeel_aggregation) || memcmp(dest, tashkeel_ag… in doArabicShapingTestForBug5421()
3009 … length=u_shapeArabic(untouched_presentation_source, UPRV_LENGTHOF(untouched_presentation_source), in doArabicShapingTestForBug5421()
3010 dest, UPRV_LENGTHOF(dest), in doArabicShapingTestForBug5421()
3015 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(untouched_presentation) || memcmp(dest, untouched… in doArabicShapingTestForBug5421()
3021 …length=u_shapeArabic(untouched_presentation_r_source, UPRV_LENGTHOF(untouched_presentation_r_sourc… in doArabicShapingTestForBug5421()
3022 dest, UPRV_LENGTHOF(dest), in doArabicShapingTestForBug5421()
3027 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(untouched_presentation_r) || memcmp(dest, untouch… in doArabicShapingTestForBug5421()
3075 length=u_shapeArabic(letters_source1, UPRV_LENGTHOF(letters_source1), in doArabicShapingTestForBug8703()
3076 dest, UPRV_LENGTHOF(dest), in doArabicShapingTestForBug8703()
3080 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(letters_dest1) || memcmp(dest, letters_dest1, len… in doArabicShapingTestForBug8703()
3086 length=u_shapeArabic(letters_source2, UPRV_LENGTHOF(letters_source2), in doArabicShapingTestForBug8703()
3087 dest, UPRV_LENGTHOF(dest), in doArabicShapingTestForBug8703()
3091 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(letters_dest2) || memcmp(dest, letters_dest2, len… in doArabicShapingTestForBug8703()
3097 length=u_shapeArabic(letters_source3, UPRV_LENGTHOF(letters_source3), in doArabicShapingTestForBug8703()
3098 dest, UPRV_LENGTHOF(dest), in doArabicShapingTestForBug8703()
3102 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(letters_dest3) || memcmp(dest, letters_dest3, len… in doArabicShapingTestForBug8703()
3108 length=u_shapeArabic(letters_source4, UPRV_LENGTHOF(letters_source4), in doArabicShapingTestForBug8703()
3109 dest, UPRV_LENGTHOF(dest), in doArabicShapingTestForBug8703()
3113 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(letters_dest4) || memcmp(dest, letters_dest4, len… in doArabicShapingTestForBug8703()
3119 length=u_shapeArabic(letters_source5, UPRV_LENGTHOF(letters_source5), in doArabicShapingTestForBug8703()
3120 dest, UPRV_LENGTHOF(dest), in doArabicShapingTestForBug8703()
3124 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(letters_dest5) || memcmp(dest, letters_dest5, len… in doArabicShapingTestForBug8703()
3130 length=u_shapeArabic(letters_source6, UPRV_LENGTHOF(letters_source6), in doArabicShapingTestForBug8703()
3131 dest, UPRV_LENGTHOF(dest), in doArabicShapingTestForBug8703()
3135 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(letters_dest6) || memcmp(dest, letters_dest6, len… in doArabicShapingTestForBug8703()
3141 length=u_shapeArabic(letters_source7, UPRV_LENGTHOF(letters_source7), in doArabicShapingTestForBug8703()
3142 dest, UPRV_LENGTHOF(dest), in doArabicShapingTestForBug8703()
3146 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(letters_dest7) || memcmp(dest, letters_dest7, len… in doArabicShapingTestForBug8703()
3152 length=u_shapeArabic(letters_source8, UPRV_LENGTHOF(letters_source8), in doArabicShapingTestForBug8703()
3153 dest, UPRV_LENGTHOF(dest), in doArabicShapingTestForBug8703()
3157 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(letters_dest8) || memcmp(dest, letters_dest8, len… in doArabicShapingTestForBug8703()
3257 length=u_shapeArabic(letters_source1, UPRV_LENGTHOF(letters_source1), in doArabicShapingTestForBug9024()
3258 dest, UPRV_LENGTHOF(dest), in doArabicShapingTestForBug9024()
3262 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(letters_dest1) || memcmp(dest, letters_dest1, len… in doArabicShapingTestForBug9024()
3268 length=u_shapeArabic(letters_source2, UPRV_LENGTHOF(letters_source2), in doArabicShapingTestForBug9024()
3269 dest, UPRV_LENGTHOF(dest), in doArabicShapingTestForBug9024()
3273 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(letters_dest2) || memcmp(dest, letters_dest2, len… in doArabicShapingTestForBug9024()
3279 length=u_shapeArabic(letters_source3, UPRV_LENGTHOF(letters_source3), in doArabicShapingTestForBug9024()
3280 dest, UPRV_LENGTHOF(dest), in doArabicShapingTestForBug9024()
3284 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(letters_dest3) || memcmp(dest, letters_dest3, len… in doArabicShapingTestForBug9024()
3290 length=u_shapeArabic(letters_source4, UPRV_LENGTHOF(letters_source4), in doArabicShapingTestForBug9024()
3291 dest, UPRV_LENGTHOF(dest), in doArabicShapingTestForBug9024()
3295 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(letters_dest4) || memcmp(dest, letters_dest4, len… in doArabicShapingTestForBug9024()
3301 length=u_shapeArabic(letters_source5, UPRV_LENGTHOF(letters_source5), in doArabicShapingTestForBug9024()
3302 dest, UPRV_LENGTHOF(dest), in doArabicShapingTestForBug9024()
3306 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(letters_dest5) || memcmp(dest, letters_dest5, len… in doArabicShapingTestForBug9024()
3312 length=u_shapeArabic(letters_source6, UPRV_LENGTHOF(letters_source6), in doArabicShapingTestForBug9024()
3313 dest, UPRV_LENGTHOF(dest), in doArabicShapingTestForBug9024()
3317 …if(U_FAILURE(errorCode) || length!=UPRV_LENGTHOF(letters_dest6) || memcmp(dest, letters_dest6, len… in doArabicShapingTestForBug9024()
3556 for (i = 0; i < UPRV_LENGTHOF(letterForms); ++i) { in doArabicShapingTestForNewCharacters()
3673 #define TC_COUNT UPRV_LENGTHOF(textIn)
3674 #define MODES_COUNT UPRV_LENGTHOF(modes)
3675 #define OPTIONS_COUNT UPRV_LENGTHOF(options)
3676 #define LEVELS_COUNT UPRV_LENGTHOF(paraLevels)
4201 for (i = 0, nCases = UPRV_LENGTHOF(testCases); i < nCases; i++) { in testReorderRunsOnly()
4440 int nTests = UPRV_LENGTHOF(testData), nLevels = UPRV_LENGTHOF(paraLevels); in testStreaming()
4530 static const int nEntries = UPRV_LENGTHOF(customClasses); in overrideBidiClass()
4818 #define CONTEXT_COUNT UPRV_LENGTHOF(contextData)