Lines Matching refs:i
248 sal_uInt32 i; in test_rtl_OUString_getLength() local
250 for (i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OUString_getLength()
252 sal_Int32 length = arrTestCase[i].input->getLength(); in test_rtl_OUString_getLength()
253 sal_Bool lastRes = (length == arrTestCase[i].expVal); in test_rtl_OUString_getLength()
258 arrTestCase[i].comments, in test_rtl_OUString_getLength()
259 createName( pMeth, "getLength", i ) in test_rtl_OUString_getLength()
333 sal_uInt32 i; in test_rtl_OUString_equals() local
335 for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OUString_equals()
338 ( arrTestCase[i].input1->equals(*(arrTestCase[i].input2)) == in test_rtl_OUString_equals()
339 arrTestCase[i].expVal ); in test_rtl_OUString_equals()
345 arrTestCase[i].comments, in test_rtl_OUString_equals()
346 createName( pMeth, "equals", i ) in test_rtl_OUString_equals()
401 sal_uInt32 i; in test_rtl_OUString_equalsIgnoreAsciiCase() local
403 for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OUString_equalsIgnoreAsciiCase()
406 (arrTestCase[i].input1->equalsIgnoreAsciiCase(*arrTestCase[i].input2) == in test_rtl_OUString_equalsIgnoreAsciiCase()
407 arrTestCase[i].expVal); in test_rtl_OUString_equalsIgnoreAsciiCase()
413 arrTestCase[i].comments, in test_rtl_OUString_equalsIgnoreAsciiCase()
414 createName( pMeth, "equalsIgnoreAsciiCase", i ) in test_rtl_OUString_equalsIgnoreAsciiCase()
486 sal_uInt32 i; in test_rtl_OUString_compareTo_001() local
488 for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OUString_compareTo_001()
490 sal_Int32 cmpRes = arrTestCase[i].input1->compareTo in test_rtl_OUString_compareTo_001()
491 (*arrTestCase[i].input2); in test_rtl_OUString_compareTo_001()
493 sal_Bool lastRes = ( cmpRes == arrTestCase[i].expVal); in test_rtl_OUString_compareTo_001()
500 arrTestCase[i].comments, in test_rtl_OUString_compareTo_001()
501 createName( pMeth, "compareTo_001(const OString&)", i ) in test_rtl_OUString_compareTo_001()
553 sal_uInt32 i; in test_rtl_OUString_compareTo_002() local
555 for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OUString_compareTo_002()
557 sal_Int32 cmpRes = arrTestCase[i].input1->compareTo in test_rtl_OUString_compareTo_002()
558 (*arrTestCase[i].input2, arrTestCase[i].maxLength); in test_rtl_OUString_compareTo_002()
560 sal_Bool lastRes = (cmpRes == arrTestCase[i].expVal); in test_rtl_OUString_compareTo_002()
566 arrTestCase[i].comments, in test_rtl_OUString_compareTo_002()
567 createName( pMeth, "compareTo_002(const OString&, sal_Int32)", i ) in test_rtl_OUString_compareTo_002()
622 sal_uInt32 i; in test_rtl_OUString_match_001() local
624 for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OUString_match_001()
626 sal_Bool lastRes = ( arrTestCase[i].input1->match( in test_rtl_OUString_match_001()
627 *(arrTestCase[i].input2)) == arrTestCase[i].expVal ); in test_rtl_OUString_match_001()
633 arrTestCase[i].comments, in test_rtl_OUString_match_001()
634 createName( pMeth, "match(const OUString & str)", i ) in test_rtl_OUString_match_001()
692 sal_uInt32 i; in test_rtl_OUString_match_002() local
694 for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OUString_match_002()
696 sal_Bool lastRes = ( arrTestCase[i].input1->match in test_rtl_OUString_match_002()
697 (*(arrTestCase[i].input2),arrTestCase[i].fromIndex) == in test_rtl_OUString_match_002()
698 arrTestCase[i].expVal ); in test_rtl_OUString_match_002()
704 arrTestCase[i].comments, in test_rtl_OUString_match_002()
706 "match(const OUString & str,sal_Int32 fromIndex = 0)", i ) in test_rtl_OUString_match_002()
761 sal_uInt32 i; in test_rtl_OUString_op_eq() local
763 for (i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OUString_op_eq()
765 *(arrTestCase[i].input1) = *(arrTestCase[i].input2); in test_rtl_OUString_op_eq()
766 sal_Bool lastRes = (*(arrTestCase[i].input1) == in test_rtl_OUString_op_eq()
767 *(arrTestCase[i].input2)); in test_rtl_OUString_op_eq()
772 arrTestCase[i].comments, in test_rtl_OUString_op_eq()
773 createName( pMeth, "op_eq", i ) in test_rtl_OUString_op_eq()
834 sal_uInt32 i; in test_rtl_OUString_op_peq() local
836 for (i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OUString_op_peq()
838 *(arrTestCase[i].input1) += *(arrTestCase[i].input2); in test_rtl_OUString_op_peq()
839 sal_Bool lastRes = (*(arrTestCase[i].expVal) == in test_rtl_OUString_op_peq()
840 *(arrTestCase[i].input1)); in test_rtl_OUString_op_peq()
845 arrTestCase[i].comments, in test_rtl_OUString_op_peq()
846 createName( pMeth, "op_peq", i ) in test_rtl_OUString_op_peq()
893 sal_uInt32 i; in test_rtl_OUString_csuc() local
894 for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OUString_csuc()
896 const sal_Unicode* pstr = *arrTestCase[i].input1; in test_rtl_OUString_csuc()
902 (sal_Char*)arrTestCase[i].expVal, in test_rtl_OUString_csuc()
903 arrTestCase[i].cmpLen), in test_rtl_OUString_csuc()
904 arrTestCase[i].comments, in test_rtl_OUString_csuc()
905 createName( pMeth, "const sal_Unicode*", i ) in test_rtl_OUString_csuc()
950 sal_uInt32 i; in test_rtl_OUString_getStr() local
951 for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OUString_getStr()
953 const sal_Unicode* pstr = arrTestCase[i].input1->getStr(); in test_rtl_OUString_getStr()
959 (sal_Char*)arrTestCase[i].expVal, in test_rtl_OUString_getStr()
960 arrTestCase[i].cmpLen), in test_rtl_OUString_getStr()
961 arrTestCase[i].comments, in test_rtl_OUString_getStr()
962 createName( pMeth, "getStr", i ) in test_rtl_OUString_getStr()
1024 sal_uInt32 i; in test_rtl_OUString_reverseCompareTo() local
1026 for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OUString_reverseCompareTo()
1028 sal_Int32 cmpRes = arrTestCase[i].input1->reverseCompareTo in test_rtl_OUString_reverseCompareTo()
1029 (*arrTestCase[i].input2); in test_rtl_OUString_reverseCompareTo()
1031 sal_Bool lastRes = ( cmpRes == arrTestCase[i].expVal); in test_rtl_OUString_reverseCompareTo()
1038 arrTestCase[i].comments, in test_rtl_OUString_reverseCompareTo()
1039 createName( pMeth, "compareTo(const OString&)", i ) in test_rtl_OUString_reverseCompareTo()
1096 sal_uInt32 i; in test_rtl_OUString_equalsAscii() local
1098 for (i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OUString_equalsAscii()
1101 sal_Bool lastRes = (arrTestCase[i].expVal == in test_rtl_OUString_equalsAscii()
1102 arrTestCase[i].input1->equalsAscii(arrTestCase[i].input2)); in test_rtl_OUString_equalsAscii()
1107 arrTestCase[i].comments, in test_rtl_OUString_equalsAscii()
1108 createName( pMeth, "equalsAscii", i ) in test_rtl_OUString_equalsAscii()
1175 sal_uInt32 i; in test_rtl_OUString_equalsAsciiL() local
1177 for (i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OUString_equalsAsciiL()
1180 sal_Bool lastRes = (arrTestCase[i].expVal == in test_rtl_OUString_equalsAsciiL()
1181 arrTestCase[i].input1->equalsAsciiL(arrTestCase[i].input2, in test_rtl_OUString_equalsAsciiL()
1182 arrTestCase[i].cmpLen) in test_rtl_OUString_equalsAsciiL()
1188 arrTestCase[i].comments, in test_rtl_OUString_equalsAsciiL()
1189 createName( pMeth, "equalsAsciiL", i ) in test_rtl_OUString_equalsAsciiL()
1253 sal_uInt32 i; in test_rtl_OUString_compareToAscii() local
1255 for (i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OUString_compareToAscii()
1257 sal_Bool lastRes = (arrTestCase[i].expVal == in test_rtl_OUString_compareToAscii()
1258 arrTestCase[i].input1->compareToAscii(arrTestCase[i].input2)); in test_rtl_OUString_compareToAscii()
1264 arrTestCase[i].comments, in test_rtl_OUString_compareToAscii()
1265 createName( pMeth, "equalsAscii", i ) in test_rtl_OUString_compareToAscii()
1309 sal_uInt32 i; in test_rtl_OUString_valueOf_sal_Bool() local
1311 for(i=0;i<(sizeof(arrTestCase))/(sizeof(TestCase));i++) in test_rtl_OUString_valueOf_sal_Bool()
1313 sal_Bool lastRes=(*arrTestCase[i].expVal== in test_rtl_OUString_valueOf_sal_Bool()
1314 OUString::valueOf(arrTestCase[i].input1) in test_rtl_OUString_valueOf_sal_Bool()
1320 arrTestCase[i].comments, in test_rtl_OUString_valueOf_sal_Bool()
1321 createName( pMeth, "valueOf( sal_Bool b )", i ) in test_rtl_OUString_valueOf_sal_Bool()
1373 sal_uInt32 i; in test_rtl_OUString_valueOf_sal_Unicode() local
1375 for(i=0;i<(sizeof(arrTestCase))/(sizeof(TestCase));i++) in test_rtl_OUString_valueOf_sal_Unicode()
1377 sal_Bool lastRes=(*(arrTestCase[i].expVal)== in test_rtl_OUString_valueOf_sal_Unicode()
1378 OUString::valueOf(arrTestCase[i].input1)); in test_rtl_OUString_valueOf_sal_Unicode()
1382 arrTestCase[i].comments, in test_rtl_OUString_valueOf_sal_Unicode()
1383 createName( pMeth, "valueOf( sal_Unicode c )", i ) in test_rtl_OUString_valueOf_sal_Unicode()
1415 sal_Int32 i; in test_valueOf() local
1418 for (i = 0; i < n; i++) in test_valueOf()
1422 OSL_ENSURE( i < 50, "ERROR: leave aUchar bound"); in test_valueOf()
1427 aStr2 = OUString::createFromAscii(resArray[i]); in test_valueOf()
1434 aStr1 = ::rtl::OUString::valueOf((T)i, radix); in test_valueOf()
1438 if ( inArray[i] < 0 ) in test_valueOf()
1441 OSL_ASSERT(strlen(resArray[i]) < 100); in test_valueOf()
1443 if(AStringToUStringCopy(aStr4,resArray[i])) in test_valueOf()
1450 aStr1 = ::rtl::OUString::valueOf((T)inArray[i], radix); in test_valueOf()
1457 (sal_Char*)resArray[i], in test_valueOf()
1458 createName( pMeth, "valueOf", i ) in test_valueOf()
1620 sal_Int32 i; in test_rtl_OUString_valueOf_Int32_Negative() local
1622 for (i = 0; i < kBase36NumsCount; i++ ) in test_rtl_OUString_valueOf_Int32_Negative()
1623 inArr[i] = -i; in test_rtl_OUString_valueOf_Int32_Negative()
1749 sal_uInt32 i; in test_rtl_OUString_valueOf_Int32_defaultParam() local
1751 for(i=0;i<(sizeof(arrTestCase))/(sizeof(TestCase));i++) in test_rtl_OUString_valueOf_Int32_defaultParam()
1753 sal_Bool lastRes=(*(arrTestCase[i].expVal)== in test_rtl_OUString_valueOf_Int32_defaultParam()
1754 OUString::valueOf(arrTestCase[i].input1)); in test_rtl_OUString_valueOf_Int32_defaultParam()
1758 arrTestCase[i].comments, in test_rtl_OUString_valueOf_Int32_defaultParam()
1760 "valueOf( sal_Int32 i, sal_Int16 radix = 10 )", i ) in test_rtl_OUString_valueOf_Int32_defaultParam()
1916 sal_Int32 i; in test_rtl_OUString_valueOf_Int64_Negative() local
1918 for (i = 0; i < 36; i++) { in test_rtl_OUString_valueOf_Int64_Negative()
1919 inArr[i] = -i; in test_rtl_OUString_valueOf_Int64_Negative()
2046 sal_uInt32 i; in test_rtl_OUString_valueOf_Int64_defaultParam() local
2048 for(i=0;i<(sizeof(arrTestCase))/(sizeof(TestCase));i++) in test_rtl_OUString_valueOf_Int64_defaultParam()
2050 sal_Bool lastRes=(*(arrTestCase[i].expVal)== in test_rtl_OUString_valueOf_Int64_defaultParam()
2051 OUString::valueOf(arrTestCase[i].input1)); in test_rtl_OUString_valueOf_Int64_defaultParam()
2055 arrTestCase[i].comments, in test_rtl_OUString_valueOf_Int64_defaultParam()
2057 "valueOf( sal_Int64 i, sal_Int16 radix = 10 )", i ) in test_rtl_OUString_valueOf_Int64_defaultParam()
2389 sal_uInt32 i; in test_rtl_OUString_createFromAscii() local
2391 for(i=0;i<(sizeof(arrTestCase))/(sizeof(TestCase));i++) in test_rtl_OUString_createFromAscii()
2393 sal_Bool lastRes=(*(arrTestCase[i].expVal)== in test_rtl_OUString_createFromAscii()
2394 OUString::createFromAscii(arrTestCase[i].input1)); in test_rtl_OUString_createFromAscii()
2400 arrTestCase[i].comments, in test_rtl_OUString_createFromAscii()
2401 createName( pMeth, "createFromAscii", i ) in test_rtl_OUString_createFromAscii()
2423 sal_Int32 i; in test_index() local
2426 for(i=0;i<num;i++) in test_index()
2432 lastRes=(str.indexOf(input1[i])==expVal[i]); in test_index()
2437 lastRes=(str.indexOf(input1[i],input2[i])==expVal[i]); in test_index()
2465 createName( pMeth,meth, i ) in test_index()
2481 sal_Int32 i; in test_indexStr() local
2484 for(i=0;i<num;i++) in test_indexStr()
2491 OUString s1(input1[i]); in test_indexStr()
2492 lastRes=(str.indexOf(s1)==expVal[i]); in test_indexStr()
2497 OUString s2(input1[i]); in test_indexStr()
2498 lastRes=(str.indexOf(s2,input2[i])==expVal[i]); in test_indexStr()
2527 createName( pMeth,meth, i ) in test_indexStr()
2769 sal_uInt32 i; in test_rtl_OUString_concat() local
2770 for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OUString_concat()
2772 OUString str = arrTestCase[i].input1->concat(*arrTestCase[i].input2); in test_rtl_OUString_concat()
2773 sal_Bool lastRes = (str == *arrTestCase[i].expVal); in test_rtl_OUString_concat()
2779 arrTestCase[i].comments, in test_rtl_OUString_concat()
2780 createName( pMeth, "concat", i) in test_rtl_OUString_concat()
2837 sal_uInt32 i; in test_rtl_OUString_replaceAt() local
2839 for (i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OUString_replaceAt()
2842 aStr1 = arrTestCase[i].input->replaceAt( arrTestCase[i].index, in test_rtl_OUString_replaceAt()
2843 arrTestCase[i].count, *arrTestCase[i].newStr ); in test_rtl_OUString_replaceAt()
2845 sal_Bool lastRes = ( arrTestCase[i].expVal->compareTo(aStr1) == 0 ); in test_rtl_OUString_replaceAt()
2851 arrTestCase[i].comments, in test_rtl_OUString_replaceAt()
2852 createName( pMeth, "replaceAt", i ) in test_rtl_OUString_replaceAt()
2900 sal_uInt32 i; in test_rtl_OUString_replace() local
2902 for (i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OUString_replace()
2905 aStr1= arrTestCase[i].input->replace(arrTestCase[i].oldChar,arrTestCase[i].newChar); in test_rtl_OUString_replace()
2909 (arrTestCase[i].expVal->compareTo(aStr1) == 0), in test_rtl_OUString_replace()
2910 arrTestCase[i].comments, in test_rtl_OUString_replace()
2911 createName( pMeth, "replace", i ) in test_rtl_OUString_replace()
2956 sal_uInt32 i; in test_rtl_OUString_toAsciiLowerCase() local
2959 for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OUString_toAsciiLowerCase()
2961 OUString str = arrTestCase[i].input1->toAsciiLowerCase(); in test_rtl_OUString_toAsciiLowerCase()
2962 if(i<=5) in test_rtl_OUString_toAsciiLowerCase()
2964 lastRes = (str ==* arrTestCase[i].expVal); in test_rtl_OUString_toAsciiLowerCase()
2970 arrTestCase[i].comments, in test_rtl_OUString_toAsciiLowerCase()
2971 createName( pMeth, "toAsciiLowerCase", i) in test_rtl_OUString_toAsciiLowerCase()
2980 arrTestCase[i].comments, in test_rtl_OUString_toAsciiLowerCase()
2981 createName( pMeth, "toAsciiLowerCase", i) in test_rtl_OUString_toAsciiLowerCase()
3026 sal_uInt32 i; in test_rtl_OUString_toAsciiUpperCase() local
3029 for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OUString_toAsciiUpperCase()
3031 OUString str = arrTestCase[i].input1->toAsciiUpperCase(); in test_rtl_OUString_toAsciiUpperCase()
3032 if(i<=5) in test_rtl_OUString_toAsciiUpperCase()
3034 lastRes = (str == *arrTestCase[i].expVal); in test_rtl_OUString_toAsciiUpperCase()
3040 arrTestCase[i].comments, in test_rtl_OUString_toAsciiUpperCase()
3041 createName( pMeth, "toAsciiUpperCase", i) in test_rtl_OUString_toAsciiUpperCase()
3050 arrTestCase[i].comments, in test_rtl_OUString_toAsciiUpperCase()
3051 createName( pMeth, "toAsciiUpperCase", i) in test_rtl_OUString_toAsciiUpperCase()
3121 sal_uInt32 i; in test_rtl_OUString_trim() local
3123 for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OUString_trim()
3125 OUString strRes = arrTestCase[i].input1->trim(); in test_rtl_OUString_trim()
3126 sal_Bool lastRes = (strRes == *arrTestCase[i].expVal); in test_rtl_OUString_trim()
3132 arrTestCase[i].comments, in test_rtl_OUString_trim()
3133 createName( pMeth, "trim", i) in test_rtl_OUString_trim()
3157 sal_Int32 i; in test_toData() local
3162 for(i=0;i<num;i++) in test_toData()
3164 OSL_ENSURE( i < 60, "ERROR: leave aUchar bound"); in test_toData()
3171 str = OUString::createFromAscii(input[i]); in test_toData()
3177 lastRes=(intRes==expVal[i]); in test_toData()
3183 lastRes=(intRes==expVal[i]); in test_toData()
3189 lastRes=(intRes==expVal[i]); in test_toData()
3195 lastRes=(intRes==expVal[i]); in test_toData()
3217 lastRes=(intRes==expVal[i]); in test_toData()
3223 cpynstr( buf + 1, input[i], MAXBUFLENGTH ); in test_toData()
3224 int length = AStringLen( input[i] ); in test_toData()
3233 createName( pMeth,meth, i ) in test_toData()
3344 sal_uInt32 i; in test_rtl_OUString_toBoolean() local
3346 for (i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OUString_toBoolean()
3348 sal_Bool bRes = arrTestCase[i].input->toBoolean(); in test_rtl_OUString_toBoolean()
3349 sal_Bool lastRes = (bRes == arrTestCase[i].expVal); in test_rtl_OUString_toBoolean()
3354 arrTestCase[i].comments, in test_rtl_OUString_toBoolean()
3355 createName( pMeth, "toBoolean", i ) in test_rtl_OUString_toBoolean()
3371 sal_Int32 i; in test_rtl_OUString_toInt32_normal() local
3373 for ( i = 0; i < kBase36NumsCount; i++ ) in test_rtl_OUString_toInt32_normal()
3374 expValues[i] = i; in test_rtl_OUString_toInt32_normal()
3518 sal_Int32 i; in test_rtl_OUString_toInt32_defaultParam() local
3520 for ( i = 0; i < kBase36NumsCount; i++ ) in test_rtl_OUString_toInt32_defaultParam()
3521 expValues[i] = i; in test_rtl_OUString_toInt32_defaultParam()
3591 sal_Int32 i; in test_rtl_OUString_toInt64_normal() local
3593 for (i = 0; i < kBase36NumsCount; expValues[i] = i, i++); in test_rtl_OUString_toInt64_normal()
3742 sal_Int32 i; in test_rtl_OUString_toInt64_defaultParam() local
3744 for ( i = 0; i < kBase36NumsCount; i++ ) in test_rtl_OUString_toInt64_defaultParam()
3745 expValues[i] = i; in test_rtl_OUString_toInt64_defaultParam()