Lines Matching refs:arrTestCase
295 TestCase arrTestCase[]={ 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()
348 TestCase arrTestCase[]={ 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()
412 TestCase arrTestCase[]={ 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()
468 TestCase arrTestCase[]={ 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()
544 TestCase arrTestCase[] = 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()
807 TestCase arrTestCase[] = 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()
870 TestCase arrTestCase[] = 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()
932 TestCase arrTestCase[] = 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()
994 TestCase arrTestCase[] = 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()
1057 TestCase arrTestCase[] = 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()
1169 TestCase arrTestCase[] = 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()
1229 TestCase arrTestCase[] = 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()
1289 TestCase arrTestCase[] = 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()
1336 TestCase arrTestCase[] = 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()
1386 TestCase arrTestCase[] = 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()
1450 TestCase arrTestCase[] ={ 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()
1586 TestCase arrTestCase[] = 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()
1653 TestCase arrTestCase[] = 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()
1706 TestCase arrTestCase[] = 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()
1759 TestCase arrTestCase[] = 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()
1828 TestCase arrTestCase[] = 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()
1872 TestCase arrTestCase[] = 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()
2752 TestCase arrTestCase[] = 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()
2823 TestCase arrTestCase[] = 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()
2979 TestCase arrTestCase[]={ 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()
3411 TestCase arrTestCase[]={ 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()
3469 TestCase arrTestCase[]= 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()