Lines Matching refs:rtl

38 inline void printOUString( ::rtl::OUString const & _suStr )  in printOUString()
40 rtl::OString aString; in printOUString()
43 aString = ::rtl::OUStringToOString( _suStr, RTL_TEXTENCODING_ASCII_US ); in printOUString()
57rtl::OUString *pStr = new rtl::OUString( rtl::OUString::createFromAscii("a String") ); in ctors_001()
59 rtl::OUString aStrToTest(pStr->pData); in ctors_001()
67 sal_Bool bResult = aStrToTest.equals(rtl::OUString::createFromAscii("a String")); in ctors_001()
85 rtl::OUString suValue; in valueOf_float_test_impl()
86 suValue = rtl::OUString::valueOf( _nValue ); in valueOf_float_test_impl()
87 rtl::OString sValue; in valueOf_float_test_impl()
156 rtl::OUString suValue; in valueOf_double_test_impl()
157 suValue = rtl::OUString::valueOf( _nValue ); in valueOf_double_test_impl()
158 rtl::OString sValue; in valueOf_double_test_impl()
344 (rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("-76543210")). in test()
348 (rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("+FEDCBA98")). in test()
352 (rtl::OUString( in test()
357 (rtl::OUString( in test()
373 void toDouble_test_impl(rtl::OString const& _sValue) in toDouble_test_impl()
378 rtl::OUString suValue = rtl::OUString::createFromAscii( _sValue.getStr() ); in toDouble_test_impl()
386 void toDouble_test(rtl::OString const& _sValue) in toDouble_test()
391 rtl::OString sNegativValue("-"); in toDouble_test()
421 rtl::OString sValue("3"); in toDouble_test_3()
426 rtl::OString sValue("3.5"); in toDouble_test_3_5()
431 rtl::OString sValue("3.0625"); in toDouble_test_3_0625()
437 rtl::OString sValue("3.141592653589793238462643383279502884197169399375"); in toDouble_test_pi()
443 rtl::OString sValue("1"); in toDouble_test_1()
448 rtl::OString sValue("10"); in toDouble_test_10()
453 rtl::OString sValue("100"); in toDouble_test_100()
458 rtl::OString sValue("1000"); in toDouble_test_1000()
463 rtl::OString sValue("10000"); in toDouble_test_10000()
468 rtl::OString sValue("1e99"); in toDouble_test_1e99()
473 rtl::OString sValue("1e-99"); in toDouble_test_1e_n99()
478 rtl::OString sValue("1e308"); in toDouble_test_1e308()
510 void toFloat_test_impl(rtl::OString const& _sValue) in toFloat_test_impl()
515 rtl::OUString suValue = rtl::OUString::createFromAscii( _sValue.getStr() ); in toFloat_test_impl()
523 void toFloat_test(rtl::OString const& _sValue) in toFloat_test()
528 rtl::OString sNegativValue("-"); in toFloat_test()
551 rtl::OString sValue("3"); in toFloat_test_3()
556 rtl::OString sValue("3.5"); in toFloat_test_3_5()
561 rtl::OString sValue("3.0625"); in toFloat_test_3_0625()
566 rtl::OString sValue("3.0625e-4"); in toFloat_test_3_0625_e()
572 rtl::OString sValue("3.141592653589793238462643383279502884197169399375"); in toFloat_test_pi()
578 rtl::OString sValue("1"); in toFloat_test_1()
583 rtl::OString sValue("10"); in toFloat_test_10()
588 rtl::OString sValue("100"); in toFloat_test_100()
593 rtl::OString sValue("1000"); in toFloat_test_1000()
598 rtl::OString sValue("10000"); in toFloat_test_10000()
603 rtl::OString sValue("456789321455.123456789012"); in toFloat_test_mix()
608 rtl::OString sValue("1e99"); in toFloat_test_1e99()
613 rtl::OString sValue("1e-9"); in toFloat_test_1e_n99()
618 rtl::OString sValue("1e308"); in toFloat_test_1e308()
653 …void lastIndexOf_oustring(rtl::OUString const& _suStr, rtl::OUString const& _suSearchStr, sal_Int3… in lastIndexOf_oustring()
663 …void lastIndexOf_salunicode(rtl::OUString const& _suStr, sal_Unicode _cuSearchChar, sal_Int32 _nEx… in lastIndexOf_salunicode()
673 …void lastIndexOf_oustring_offset(rtl::OUString const& _suStr, rtl::OUString const& _suSearchStr, s… in lastIndexOf_oustring_offset()
679 …void lastIndexOf_salunicode_offset(rtl::OUString const& _suStr, sal_Unicode _cuSearchChar, sal_Int… in lastIndexOf_salunicode_offset()
690 rtl::OUString aStr = rtl::OUString::createFromAscii("sun java system"); in lastIndexOf_test_oustring_offset_001()
691 rtl::OUString aSearchStr = rtl::OUString::createFromAscii("sun"); in lastIndexOf_test_oustring_offset_001()
698 rtl::OUString aStr = rtl::OUString::createFromAscii("sun java system"); in lastIndexOf_test_oustring_offset_002()
699 rtl::OUString aSearchStr = rtl::OUString::createFromAscii("sun"); in lastIndexOf_test_oustring_offset_002()
706 rtl::OUString aStr = rtl::OUString::createFromAscii("sun java system"); in lastIndexOf_test_oustring_offset_003()
707 rtl::OUString aSearchStr = rtl::OUString::createFromAscii("sun"); in lastIndexOf_test_oustring_offset_003()
714 rtl::OUString aStr = rtl::OUString::createFromAscii("sun java system"); in lastIndexOf_test_oustring_offset_004()
715 rtl::OUString aSearchStr = rtl::OUString::createFromAscii("sun"); in lastIndexOf_test_oustring_offset_004()
722 rtl::OUString aStr = rtl::OUString::createFromAscii("sun java system"); in lastIndexOf_test_oustring_001()
723 rtl::OUString aSearchStr = rtl::OUString::createFromAscii("sun"); in lastIndexOf_test_oustring_001()
730 rtl::OUString aStr = rtl::OUString::createFromAscii("the sun java system"); in lastIndexOf_test_oustring_002()
731 rtl::OUString aSearchStr = rtl::OUString::createFromAscii("sun"); in lastIndexOf_test_oustring_002()
738 rtl::OUString aStr = rtl::OUString::createFromAscii("the sun sun java system"); in lastIndexOf_test_oustring_003()
739 rtl::OUString aSearchStr = rtl::OUString::createFromAscii("sun"); in lastIndexOf_test_oustring_003()
746 rtl::OUString aStr = rtl::OUString::createFromAscii("the sun sun"); in lastIndexOf_test_oustring_004()
747 rtl::OUString aSearchStr = rtl::OUString::createFromAscii("sun"); in lastIndexOf_test_oustring_004()
754 rtl::OUString aStr = rtl::OUString::createFromAscii("the sun su"); in lastIndexOf_test_oustring_005()
755 rtl::OUString aSearchStr = rtl::OUString::createFromAscii("sun"); in lastIndexOf_test_oustring_005()
762 rtl::OUString aStr = rtl::OUString::createFromAscii("the su su"); in lastIndexOf_test_oustring_006()
763 rtl::OUString aSearchStr = rtl::OUString::createFromAscii("sun"); in lastIndexOf_test_oustring_006()
770 rtl::OUString aStr = rtl::OUString::createFromAscii("the su su"); in lastIndexOf_test_oustring_007()
771 rtl::OUString aSearchStr = rtl::OUString::createFromAscii("earth"); in lastIndexOf_test_oustring_007()
778 rtl::OUString aStr = rtl::OUString(); in lastIndexOf_test_oustring_008()
779 rtl::OUString aSearchStr = rtl::OUString::createFromAscii("earth"); in lastIndexOf_test_oustring_008()
786 rtl::OUString aStr = rtl::OUString(); in lastIndexOf_test_oustring_009()
787 rtl::OUString aSearchStr = rtl::OUString(); in lastIndexOf_test_oustring_009()
795 rtl::OUString aStr = rtl::OUString::createFromAscii("the sun sun java system"); in lastIndexOf_test_salunicode_001()
803 rtl::OUString aStr = rtl::OUString::createFromAscii("the sun sun java system"); in lastIndexOf_test_salunicode_002()
811 rtl::OUString aStr = rtl::OUString::createFromAscii("the sun sun java system"); in lastIndexOf_test_salunicode_offset_001()
818 rtl::OUString aStr = rtl::OUString::createFromAscii("the sun sun java system"); in lastIndexOf_test_salunicode_offset_002()
825 rtl::OUString aStr = rtl::OUString::createFromAscii("the sun sun java system"); in lastIndexOf_test_salunicode_offset_003()
870 rtl::OUString suTokenStr; in getToken_000()
875 rtl::OUString suToken = suTokenStr.getToken( 0, ';', nIndex ); in getToken_000()
884 rtl::OUString suTokenStr = rtl::OUString::createFromAscii("a;b"); in getToken_001()
888 rtl::OUString suToken = suTokenStr.getToken( 0, ';', nIndex ); in getToken_001()
889 …CPPUNIT_ASSERT_MESSAGE("Token should be a 'a'", suToken.equals(rtl::OUString::createFromAscii("a")… in getToken_001()
892 …CPPUNIT_ASSERT_MESSAGE("Token should be a 'b'", suToken.equals(rtl::OUString::createFromAscii("b")… in getToken_001()
898 rtl::OUString suTokenStr = rtl::OUString::createFromAscii("a;b.c"); in getToken_002()
902 rtl::OUString suToken = suTokenStr.getToken( 0, ';', nIndex ); in getToken_002()
903 …CPPUNIT_ASSERT_MESSAGE("Token should be a 'a'", suToken.equals(rtl::OUString::createFromAscii("a")… in getToken_002()
906 …CPPUNIT_ASSERT_MESSAGE("Token should be a 'b'", suToken.equals(rtl::OUString::createFromAscii("b")… in getToken_002()
909 …CPPUNIT_ASSERT_MESSAGE("Token should be a 'c'", suToken.equals(rtl::OUString::createFromAscii("c")… in getToken_002()
915 rtl::OUString suTokenStr = rtl::OUString::createFromAscii("a;;b"); in getToken_003()
919 rtl::OUString suToken = suTokenStr.getToken( 0, ';', nIndex ); in getToken_003()
920 …CPPUNIT_ASSERT_MESSAGE("Token should be a 'a'", suToken.equals(rtl::OUString::createFromAscii("a")… in getToken_003()
926 …CPPUNIT_ASSERT_MESSAGE("Token should be a 'b'", suToken.equals(rtl::OUString::createFromAscii("b")… in getToken_003()
932 rtl::OUString suTokenStr = rtl::OUString::createFromAscii("longer.then.ever."); in getToken_004()
936 rtl::OUString suToken = suTokenStr.getToken( 0, '.', nIndex ); in getToken_004()
937 …CPPUNIT_ASSERT_MESSAGE("Token should be 'longer'", suToken.equals(rtl::OUString::createFromAscii("… in getToken_004()
940 …CPPUNIT_ASSERT_MESSAGE("Token should be 'then'", suToken.equals(rtl::OUString::createFromAscii("th… in getToken_004()
943 …CPPUNIT_ASSERT_MESSAGE("Token should be 'ever'", suToken.equals(rtl::OUString::createFromAscii("ev… in getToken_004()
952 rtl::OUString ab(RTL_CONSTASCII_USTRINGPARAM("ab")); in getToken_005()
982 rtl::OString s; in test()
984 rtl::OUString(utf16, sizeof utf16 / sizeof utf16[0]).convertToString( in test()
989 rtl::OString(RTL_CONSTASCII_STRINGPARAM("A+AOQ-a")), s); in test()
1001 ::rtl::OUString aFoo( RTL_CONSTASCII_USTRINGPARAM("foo") ); in construct()
1007 …::rtl::OUString aBaa( RTL_CONSTASCII_USTRINGPARAM("this is a very long string with a lot of long t… in construct()
1017 rtl::OUString aEmpty = rtl::OUString().intern(); in intern()
1018 rtl::OUString aEmpty2 = rtl::OUString::intern( RTL_CONSTASCII_USTRINGPARAM( "" ) ); in intern()
1020 ::rtl::OUString aFoo( RTL_CONSTASCII_USTRINGPARAM("foo") ); in intern()
1021 ::rtl::OUString aFooIntern = aFoo.intern(); in intern()
1030 rtl::OUString *pStrs; in intern()
1033 pStrs = new rtl::OUString[nSequence]; in intern()
1037 pStrs[i] = rtl::OUString::valueOf( sqrt( static_cast<double>(i) ) ).intern(); in intern()
1042 rtl::OUString aNew = rtl::OUString::valueOf( sqrt( static_cast<double>(i) ) ).intern(); in intern()
1051 pStrs[i] = rtl::OUString(); in intern()
1052 pStrs[i] = rtl::OUString::valueOf( sqrt( static_cast<double>(i) ) ); in intern()
1057 rtl::OUString aIntern; in intern()
1059 aIntern = rtl::OUString::valueOf( sqrt( static_cast<double>(i) ) ).intern(); in intern()
1088 rtl::OUString().indexOfAsciiL(RTL_CONSTASCII_STRINGPARAM(""))); in test()
1091 rtl::OUString().lastIndexOfAsciiL(RTL_CONSTASCII_STRINGPARAM(""))); in test()
1094 rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("foo")).indexOfAsciiL( in test()
1098 rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("foo")).lastIndexOfAsciiL( in test()
1102 rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("fofoobar")).indexOfAsciiL( in test()
1106 rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("foofoofob")). in test()
1110 rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("foofoobar")).indexOfAsciiL( in test()
1126 rtl::OUString().endsWithAsciiL(RTL_CONSTASCII_STRINGPARAM(""))); in test()
1129 rtl::OUString().endsWithAsciiL(RTL_CONSTASCII_STRINGPARAM("foo"))); in test()
1132 rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("bar")).endsWithAsciiL( in test()
1136 rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("foobar")).endsWithAsciiL( in test()
1140 rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("FOOBAR")).endsWithAsciiL( in test()
1156 rtl::OUString(static_cast< sal_uInt32 const * >(NULL), 0).getLength()); in test()
1158 rtl::OUString s(cp, sizeof cp / sizeof (sal_uInt32)); in test()
1181 rtl::OUString s(utf16, sizeof utf16 / sizeof (sal_Unicode)); in testNotWellFormed()
1221 rtl::OUString t; in test()