Lines Matching refs:i
306 sal_uInt32 i; in test_rtl_OString_getLength() local
308 for (i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OString_getLength()
310 sal_Int32 length = arrTestCase[i].input->getLength(); in test_rtl_OString_getLength()
311 sal_Bool lastRes = (length == arrTestCase[i].expVal); in test_rtl_OString_getLength()
316 arrTestCase[i].comments, in test_rtl_OString_getLength()
317 createName( pMeth, "getLength", i ) in test_rtl_OString_getLength()
370 sal_uInt32 i; in test_rtl_OString_equals() local
372 for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OString_equals()
375 ( arrTestCase[i].input1->equals(*(arrTestCase[i].input2)) == in test_rtl_OString_equals()
376 arrTestCase[i].expVal ); in test_rtl_OString_equals()
382 arrTestCase[i].comments, in test_rtl_OString_equals()
383 createName( pMeth, "equals", i ) in test_rtl_OString_equals()
430 sal_uInt32 i; in test_rtl_OString_equalsIgnoreAsciiCase() local
432 for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OString_equalsIgnoreAsciiCase()
435 (arrTestCase[i].input1->equalsIgnoreAsciiCase(*arrTestCase[i].input2) in test_rtl_OString_equalsIgnoreAsciiCase()
436 == arrTestCase[i].expVal); in test_rtl_OString_equalsIgnoreAsciiCase()
442 arrTestCase[i].comments, in test_rtl_OString_equalsIgnoreAsciiCase()
443 createName( pMeth, "equalsIgnoreAsciiCase", i ) in test_rtl_OString_equalsIgnoreAsciiCase()
501 sal_uInt32 i; in test_rtl_OString_compareTo_001() local
503 for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OString_compareTo_001()
506 arrTestCase[i].input1->compareTo(*arrTestCase[i].input2); in test_rtl_OString_compareTo_001()
508 sal_Bool lastRes = ( cmpRes == arrTestCase[i].expVal); in test_rtl_OString_compareTo_001()
514 arrTestCase[i].comments, in test_rtl_OString_compareTo_001()
515 createName( pMeth, "compareTo(const OString&)", i ) in test_rtl_OString_compareTo_001()
565 sal_uInt32 i; in test_rtl_OString_compareTo_002() local
567 for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OString_compareTo_002()
570 arrTestCase[i].input1->compareTo(*arrTestCase[i].input2, in test_rtl_OString_compareTo_002()
571 arrTestCase[i].maxLength); in test_rtl_OString_compareTo_002()
573 sal_Bool lastRes = (cmpRes == arrTestCase[i].expVal); in test_rtl_OString_compareTo_002()
579 arrTestCase[i].comments, in test_rtl_OString_compareTo_002()
580 createName( pMeth, "compareTo(const OString&, sal_Int32)", i ) in test_rtl_OString_compareTo_002()
645 sal_Int32 i; in test_rtl_OString_op_cmp() local
647 for(i = 0; i < NCASES; i++) in test_rtl_OString_op_cmp()
650 str1 = (arrOStr[i][0]) ? new OString(arrOStr[i][0]) : new OString() ; in test_rtl_OString_op_cmp()
651 str2 = (arrOStr[i][1]) ? new OString(arrOStr[i][1]) : new OString() ; in test_rtl_OString_op_cmp()
654 sal_Bool lastRes = (cmpRes == arrExpVal[i]); in test_rtl_OString_op_cmp()
661 arrComments[i], in test_rtl_OString_op_cmp()
662 createName( pMeth, "operator ==(OString&, OString&)", i ) in test_rtl_OString_op_cmp()
665 cmpRes = (*str1 == arrOStr[i][1]); in test_rtl_OString_op_cmp()
666 lastRes = (cmpRes == arrExpVal[i]); in test_rtl_OString_op_cmp()
672 arrComments[i], in test_rtl_OString_op_cmp()
673 createName( pMeth, "operator ==(OString&, sal_Char *)", i ) in test_rtl_OString_op_cmp()
676 cmpRes = (arrOStr[i][0] == *str2); in test_rtl_OString_op_cmp()
677 lastRes = (cmpRes == arrExpVal[i]); in test_rtl_OString_op_cmp()
683 arrComments[i], in test_rtl_OString_op_cmp()
684 createName( pMeth, "operator ==(sal_Char *, OString&)", i ) in test_rtl_OString_op_cmp()
738 sal_Int32 i; in test_rtl_OString_op_neq() local
740 for(i = 0; i < NCASES; i++) in test_rtl_OString_op_neq()
743 str1 = (arrOStr[i][0]) ? new OString(arrOStr[i][0]) : new OString() ; in test_rtl_OString_op_neq()
744 str2 = (arrOStr[i][1]) ? new OString(arrOStr[i][1]) : new OString() ; in test_rtl_OString_op_neq()
747 sal_Bool lastRes = (cmpRes == arrExpVal[i]); in test_rtl_OString_op_neq()
753 arrComments[i], in test_rtl_OString_op_neq()
754 createName( pMeth, "operator !=(OString&, OString&)", i ) in test_rtl_OString_op_neq()
757 cmpRes = (*str1 != arrOStr[i][1]); in test_rtl_OString_op_neq()
758 lastRes = (cmpRes == arrExpVal[i]); in test_rtl_OString_op_neq()
764 arrComments[i], in test_rtl_OString_op_neq()
765 createName( pMeth, "operator !=(OString&, sal_Char *)", i ) in test_rtl_OString_op_neq()
768 cmpRes = (arrOStr[i][0] != *str2); in test_rtl_OString_op_neq()
769 lastRes = (cmpRes == arrExpVal[i]); in test_rtl_OString_op_neq()
775 arrComments[i], in test_rtl_OString_op_neq()
776 createName( pMeth, "operator !=(sal_Char *, OString&)", i ) in test_rtl_OString_op_neq()
827 sal_uInt32 i; in test_rtl_OString_op_g() local
829 for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OString_op_g()
831 sal_Bool cmpRes = (*arrTestCase[i].input1 > *arrTestCase[i].input2); in test_rtl_OString_op_g()
832 sal_Bool lastRes = (cmpRes == arrTestCase[i].expVal); in test_rtl_OString_op_g()
838 arrTestCase[i].comments, in test_rtl_OString_op_g()
839 createName( pMeth, "operator >", i ) in test_rtl_OString_op_g()
890 sal_uInt32 i; in test_rtl_OString_op_l() local
892 for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OString_op_l()
894 sal_Bool cmpRes = (*arrTestCase[i].input1 < *arrTestCase[i].input2); in test_rtl_OString_op_l()
895 sal_Bool lastRes = (cmpRes == arrTestCase[i].expVal); in test_rtl_OString_op_l()
901 arrTestCase[i].comments, in test_rtl_OString_op_l()
902 createName( pMeth, "operator <", i ) in test_rtl_OString_op_l()
952 sal_uInt32 i; in test_rtl_OString_op_ge() local
954 for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OString_op_ge()
956 sal_Bool cmpRes = (*arrTestCase[i].input1 >= *arrTestCase[i].input2); in test_rtl_OString_op_ge()
957 sal_Bool lastRes = (cmpRes == arrTestCase[i].expVal); in test_rtl_OString_op_ge()
963 arrTestCase[i].comments, in test_rtl_OString_op_ge()
964 createName( pMeth, "operator >=", i ) in test_rtl_OString_op_ge()
1016 sal_uInt32 i; in test_rtl_OString_op_le() local
1018 for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OString_op_le()
1020 sal_Bool cmpRes = (*arrTestCase[i].input1 <= *arrTestCase[i].input2); in test_rtl_OString_op_le()
1021 sal_Bool lastRes = (cmpRes == arrTestCase[i].expVal); in test_rtl_OString_op_le()
1027 arrTestCase[i].comments, in test_rtl_OString_op_le()
1028 createName( pMeth, "operator <=", i ) in test_rtl_OString_op_le()
1070 sal_uInt32 i; in test_rtl_OString_op_eq_001() local
1072 for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OString_op_eq_001()
1074 *(arrTestCase[i].input1) = *(arrTestCase[i].input2); in test_rtl_OString_op_eq_001()
1077 (*(arrTestCase[i].input1) == *(arrTestCase[i].input2)); in test_rtl_OString_op_eq_001()
1078 sal_Bool lastRes = (cmpRes == arrTestCase[i].expVal); in test_rtl_OString_op_eq_001()
1084 arrTestCase[i].comments, in test_rtl_OString_op_eq_001()
1085 createName( pMeth, "operator =", i ) in test_rtl_OString_op_eq_001()
1188 sal_uInt32 i; in test_rtl_OString_op_plus() local
1189 for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OString_op_plus()
1191 OString str = (*arrTestCase[i].input1) + (*arrTestCase[i].input2); in test_rtl_OString_op_plus()
1192 sal_Bool lastRes = (str == *arrTestCase[i].expVal); in test_rtl_OString_op_plus()
1198 arrTestCase[i].comments, in test_rtl_OString_op_plus()
1199 createName( pMeth, "operator +", i ) in test_rtl_OString_op_plus()
1248 sal_uInt32 i; in test_rtl_OString_op_peq() local
1249 for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OString_op_peq()
1251 str += (*arrTestCase[i].input1); str += (*arrTestCase[i].input2); in test_rtl_OString_op_peq()
1252 sal_Bool lastRes = (str == *arrTestCase[i].expVal); in test_rtl_OString_op_peq()
1258 arrTestCase[i].comments, in test_rtl_OString_op_peq()
1259 createName( pMeth, "operator +", i ) in test_rtl_OString_op_peq()
1296 sal_uInt32 i; in test_rtl_OString_op_cscs() local
1297 for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OString_op_cscs()
1299 const sal_Char* pstr = (*arrTestCase[i].input1); in test_rtl_OString_op_cscs()
1304 cmpstr((sal_Char*)pstr,(sal_Char*)arrTestCase[i].expVal, in test_rtl_OString_op_cscs()
1305 arrTestCase[i].cmpLen), in test_rtl_OString_op_cscs()
1306 arrTestCase[i].comments, in test_rtl_OString_op_cscs()
1307 createName( pMeth, "const sal_Char*", i ) in test_rtl_OString_op_cscs()
1343 sal_uInt32 i; in test_rtl_OString_getStr() local
1344 for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OString_getStr()
1346 const sal_Char* pstr = arrTestCase[i].input1->getStr(); in test_rtl_OString_getStr()
1350 cmpstr(pstr, arrTestCase[i].expVal, in test_rtl_OString_getStr()
1351 arrTestCase[i].cmpLen), in test_rtl_OString_getStr()
1352 arrTestCase[i].comments, in test_rtl_OString_getStr()
1353 createName( pMeth, "getStr", i ) in test_rtl_OString_getStr()
1397 sal_uInt32 i; in test_rtl_OString_copy_001() local
1399 for(i = 0; i <(sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OString_copy_001()
1401 OString src(arrTestCase[i].srcStr); in test_rtl_OString_copy_001()
1405 dst = src.copy(arrTestCase[i].beginIndex); in test_rtl_OString_copy_001()
1411 lastRes= (dst== arrTestCase[i].arrExpStr); in test_rtl_OString_copy_001()
1418 arrTestCase[i].comments, in test_rtl_OString_copy_001()
1420 "copy_001(beginIndex)(check buffer and length)", i ) in test_rtl_OString_copy_001()
1465 sal_uInt32 i; in test_rtl_OString_copy_002() local
1466 for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) { in test_rtl_OString_copy_002()
1469 dst = src.copy(arrTestCase[i].beginIndex, arrTestCase[i].count); in test_rtl_OString_copy_002()
1482 lastRes = (dst.equals(arrTestCase[i].arrExpStr)) ? sal_True : sal_False; in test_rtl_OString_copy_002()
1488 arrTestCase[i].comments, in test_rtl_OString_copy_002()
1490 "copy_002(beginIndex,count)(check buffer and length)", i) in test_rtl_OString_copy_002()
1611 sal_uInt32 i; in test_rtl_OString_concat() local
1612 for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OString_concat()
1615 arrTestCase[i].input1->concat(*arrTestCase[i].input2); in test_rtl_OString_concat()
1616 sal_Bool lastRes = (str == *arrTestCase[i].expVal); in test_rtl_OString_concat()
1622 arrTestCase[i].comments, in test_rtl_OString_concat()
1623 createName( pMeth, "concat", i) in test_rtl_OString_concat()
1666 sal_uInt32 i; in test_rtl_OString_toAsciiLowerCase() local
1668 for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OString_toAsciiLowerCase()
1670 OString str = arrTestCase[i].input1->toAsciiLowerCase(); in test_rtl_OString_toAsciiLowerCase()
1671 sal_Bool lastRes = (str ==* arrTestCase[i].expVal); in test_rtl_OString_toAsciiLowerCase()
1677 arrTestCase[i].comments, in test_rtl_OString_toAsciiLowerCase()
1678 createName( pMeth, "toAsciiLowerCase", i) in test_rtl_OString_toAsciiLowerCase()
1718 sal_uInt32 i; in test_rtl_OString_toAsciiUpperCase() local
1720 for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OString_toAsciiUpperCase()
1722 OString str = arrTestCase[i].input1->toAsciiUpperCase(); in test_rtl_OString_toAsciiUpperCase()
1723 sal_Bool lastRes = (str == *arrTestCase[i].expVal); in test_rtl_OString_toAsciiUpperCase()
1729 arrTestCase[i].comments, in test_rtl_OString_toAsciiUpperCase()
1730 createName( pMeth, "toAsciiLowerCase", i) in test_rtl_OString_toAsciiUpperCase()
1786 sal_uInt32 i; in test_rtl_OString_trim() local
1788 for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OString_trim()
1790 OString strRes = arrTestCase[i].input1->trim(); in test_rtl_OString_trim()
1791 sal_Bool lastRes = (strRes == *arrTestCase[i].expVal); in test_rtl_OString_trim()
1797 arrTestCase[i].comments, in test_rtl_OString_trim()
1798 createName( pMeth, "trim", i) in test_rtl_OString_trim()
1835 sal_uInt32 i; in test_rtl_OString_valueOf_sal_Bool() local
1837 for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OString_valueOf_sal_Bool()
1840 aStr1 = aStr1.valueOf( arrTestCase[i].input1 ); in test_rtl_OString_valueOf_sal_Bool()
1841 sal_Bool lastRes = (arrTestCase[i].expVal->compareTo(aStr1) == 0); in test_rtl_OString_valueOf_sal_Bool()
1847 arrTestCase[i].comments, in test_rtl_OString_valueOf_sal_Bool()
1848 createName( pMeth, "valueof_bool", i) in test_rtl_OString_valueOf_sal_Bool()
1889 sal_uInt32 i; in test_rtl_OString_valueOf_sal_Char() local
1891 for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OString_valueOf_sal_Char()
1894 aStr1 = aStr1.valueOf( arrTestCase[i].input1 ); in test_rtl_OString_valueOf_sal_Char()
1895 sal_Bool lastRes = (arrTestCase[i].expVal->compareTo(aStr1) == 0); in test_rtl_OString_valueOf_sal_Char()
1901 arrTestCase[i].comments, in test_rtl_OString_valueOf_sal_Char()
1902 createName( pMeth, "valueof_char", i) in test_rtl_OString_valueOf_sal_Char()
1934 sal_Int32 i; in test_valueOf() local
1936 for (i = 0; i < n; i++) in test_valueOf()
1939 ::rtl::OString aStr2( resArray[i] ); in test_valueOf()
1942 aStr1 = ::rtl::OString::valueOf((T)i, radix); in test_valueOf()
1945 if ( inArray[i] < 0 ) in test_valueOf()
1948 aStr2 += resArray[i]; in test_valueOf()
1950 aStr1 = ::rtl::OString::valueOf((T)inArray[i], radix); in test_valueOf()
1957 (sal_Char*)resArray[i], in test_valueOf()
1958 createName( pMeth, "valueOf", i ) in test_valueOf()
2120 sal_Int32 i; in test_rtl_OString_valueOf_Int32_Negative() local
2122 for (i = 0; i < kBase36NumsCount; i++ ) in test_rtl_OString_valueOf_Int32_Negative()
2123 inArr[i] = -i; in test_rtl_OString_valueOf_Int32_Negative()
2209 for (int i = 1; i < 32; ++i) in test_rtl_OString_valueOf_Int32_SmallestNegativeValue() local
2367 sal_Int32 i; in test_rtl_OString_valueOf_Int64_Negative() local
2369 for (i = 0; i < 36; i++) { in test_rtl_OString_valueOf_Int64_Negative()
2370 inArr[i] = -i; in test_rtl_OString_valueOf_Int64_Negative()
2457 for (int i = 1; i < 64; ++i) in test_rtl_OString_valueOf_Int64_SmallestNegativeValue() local
2775 sal_uInt32 i; in test_rtl_OString_toChar() local
2777 for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++ ) in test_rtl_OString_toChar()
2779 sal_Char strRes = arrTestCase[i].input1->toChar(); in test_rtl_OString_toChar()
2780 sal_Bool lastRes = ( strRes == arrTestCase[i].expVal ); in test_rtl_OString_toChar()
2784 cpynstr(com + 1, (*arrTestCase[i].input1), MAXBUFLENGTH); in test_rtl_OString_toChar()
2785 int length = AStringLen( (*arrTestCase[i].input1) ); in test_rtl_OString_toChar()
2794 createName( pMeth, "toChar", i ) in test_rtl_OString_toChar()
2847 sal_uInt32 i; in test_rtl_OString_toFloat() local
2851 for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++ ) in test_rtl_OString_toFloat()
2853 float fA = arrTestCase[i].input1->toFloat(); in test_rtl_OString_toFloat()
2854 float fB = arrTestCase[i].expVal; in test_rtl_OString_toFloat()
2855 float fPrec = arrTestCase[i].m_nPrecision; in test_rtl_OString_toFloat()
2863 cpynstr(com + 1, (*arrTestCase[i].input1), MAXBUFLENGTH); in test_rtl_OString_toFloat()
2864 int length = AStringLen( (*arrTestCase[i].input1) ); in test_rtl_OString_toFloat()
2873 createName( pMeth, "toFloat", i ) in test_rtl_OString_toFloat()
2988 sal_uInt32 i; in test_rtl_OString_toBoolean() local
2990 for (i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OString_toBoolean()
2992 sal_Bool bRes = arrTestCase[i].input->toBoolean(); in test_rtl_OString_toBoolean()
2993 sal_Bool lastRes = (bRes == arrTestCase[i].expVal); in test_rtl_OString_toBoolean()
2998 arrTestCase[i].comments, in test_rtl_OString_toBoolean()
2999 createName( pMeth, "toBoolean", i ) in test_rtl_OString_toBoolean()
3019 sal_Int32 i; in test_toInt32() local
3021 for( i = 0; i < num; i++ ) in test_toInt32()
3023 OString str(in[i]); in test_toInt32()
3025 sal_Bool lastRes = (intRes == expVal[i]); in test_toInt32()
3029 cpynstr( buf + 1, in[i], MAXBUFLENGTH ); in test_toInt32()
3030 int length = AStringLen( in[i] ); in test_toInt32()
3039 createName( pMeth,"toInt32", i ) in test_toInt32()
3071 sal_Int32 i; in test_rtl_OString_toInt32() local
3074 for ( i = 0; i < kBase36NumsCount; i++ ) in test_rtl_OString_toInt32()
3075 expValues[i] = i; in test_rtl_OString_toInt32()
3209 sal_Int32 i; in test_toInt64() local
3211 for( i = 0; i < num; i++ ) in test_toInt64()
3213 OString str( in[i] ); in test_toInt64()
3215 sal_Bool lastRes = ( intRes == expVal[i] ); in test_toInt64()
3219 cpynstr( buf + 1, in[i], MAXBUFLENGTH ); in test_toInt64()
3220 int length = AStringLen(in[i]); in test_toInt64()
3229 createName( pMeth, "toInt64", i ) in test_toInt64()
3259 sal_Int32 i; in test_rtl_OString_toInt64() local
3262 for (i = 0; i < kBase36NumsCount; expValues[i] = i, i++); in test_rtl_OString_toInt64()
3423 sal_uInt32 i; in test_rtl_OString_replace() local
3425 for (i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OString_replace()
3428 aStr1= arrTestCase[i].input->replace(arrTestCase[i].oldChar, in test_rtl_OString_replace()
3429 arrTestCase[i].newChar); in test_rtl_OString_replace()
3434 (arrTestCase[i].expVal->compareTo(aStr1) == 0), in test_rtl_OString_replace()
3435 arrTestCase[i].comments, in test_rtl_OString_replace()
3436 createName( pMeth, "replace", i ) in test_rtl_OString_replace()
3489 sal_uInt32 i; in test_rtl_OString_replaceAt() local
3491 for (i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++) in test_rtl_OString_replaceAt()
3494 aStr1= arrTestCase[i].input->replaceAt( arrTestCase[i].index, in test_rtl_OString_replaceAt()
3495 arrTestCase[i].count, *arrTestCase[i].newStr ); in test_rtl_OString_replaceAt()
3497 sal_Bool lastRes = ( arrTestCase[i].expVal->compareTo(aStr1) == 0 ); in test_rtl_OString_replaceAt()
3503 arrTestCase[i].comments, in test_rtl_OString_replaceAt()
3504 createName( pMeth, "replaceAt", i ) in test_rtl_OString_replaceAt()