[Libreoffice-commits] .: sal/qa

Thomas Arnhold tarnhold at kemper.freedesktop.org
Tue Jan 24 06:38:57 PST 2012


 sal/qa/inc/valueequal.hxx                   |   48 --
 sal/qa/osl/file/osl_File.cxx                |   48 --
 sal/qa/osl/socket/osl_Socket.cxx            |   15 
 sal/qa/osl/socket/osl_Socket2.cxx           |   15 
 sal/qa/osl/socket/osl_StreamSocket.cxx      |   28 -
 sal/qa/rtl_strings/rtl_OString.cxx          |  316 ------------------
 sal/qa/rtl_strings/rtl_OUString.cxx         |  472 ----------------------------
 sal/qa/rtl_strings/rtl_old_testowstring.cxx |   85 -----
 8 files changed, 5 insertions(+), 1022 deletions(-)

New commits:
commit 83a5267651a3aff55589612891cee6b1e4c87041
Author: Thomas Arnhold <thomas at arnhold.org>
Date:   Tue Jan 24 15:37:36 2012 +0100

    dead code in qa

diff --git a/sal/qa/inc/valueequal.hxx b/sal/qa/inc/valueequal.hxx
index 23fb401..4dc3d78 100644
--- a/sal/qa/inc/valueequal.hxx
+++ b/sal/qa/inc/valueequal.hxx
@@ -74,56 +74,14 @@ bool is_equal(T x, T y, sal_Int16 _nPrec)
 
     if (nDelta > nPrec)
     {
-        // printf("values are not equal! ndelta:%.20f\n", nDelta);
+        // values are not equal
         return false;
     }
-    // else
-    // {
-    // printf("values are equal.     ndelta:%.20f\n", nDelta);
+
+    // values are equal
     return true;
-    // }
 }
 
-// LLA: bool is_float_equal(float x, float y)
-// LLA: {
-// LLA:     // due to the fact that this check looks only if both values are equal
-// LLA:     // we only need to look on one value
-// LLA:
-// LLA:     // 6 digits will announce the checkPrecisionSize
-// LLA:
-// LLA:     const sal_Int32 nPRECISION = 6;
-// LLA:     if (x < 0)
-// LLA:     {
-// LLA:         x = -x;
-// LLA:     }
-// LLA:     if (y < 0)
-// LLA:     {
-// LLA:         y = -y;
-// LLA:     }
-// LLA:
-// LLA:     printf("double equal: %.20f\n#               %.20f\n", x, y);
-// LLA:     sal_Int32 nPrecOfN = -nPRECISION + sal_Int32( log10(x) );
-// LLA:
-// LLA:     printf("prec: %d\n", nPrecOfN);
-// LLA:     double nPrec = pow(10, nPrecOfN) * 1;
-// LLA:
-// LLA:     printf("        prec: %.20f\n", nPrec);
-// LLA:
-// LLA:     double nDelta = fabs( x - y );
-// LLA:     printf("       delta: %.20f\n\n", nDelta);
-// LLA:
-// LLA:     if (nDelta > nPrec)
-// LLA:     {
-// LLA:         // printf("values are not equal! ndelta:%.20f\n", nDelta);
-// LLA:         return false;
-// LLA:     }
-// LLA:     // else
-// LLA:     // {
-// LLA:     // printf("values are equal.     ndelta:%.20f\n", nDelta);
-// LLA:     return true;
-// LLA:     // }
-// LLA: }
-
 bool is_float_equal(float x, float y)
 {
     return is_equal<float>(x, y, PREC_float);
diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx
index a41c761..f2ad580 100644
--- a/sal/qa/osl/file/osl_File.cxx
+++ b/sal/qa/osl/file/osl_File.cxx
@@ -2765,52 +2765,6 @@ namespace osl_FileStatus
         {
         }
 
-/*
- * LLA: removed, m_aSocketItem is wrong initialised.
- */
-
-// LLA:         void getFileType_005()
-// LLA:         {
-// LLA: #if defined ( SOLARIS ) //Socket file may differ in Windows
-// LLA:             // nError1 = ::osl::DirectoryItem::get( aTypeURL1, m_aSocketItem );
-// LLA:             nError1 = ::osl::DirectoryItem::get( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/dev/null")), m_aSocketItem );
-// LLA:             printError(nError1);
-// LLA:             CPPUNIT_ASSERT_MESSAGE("get Socket type file failed", ::osl::FileBase::E_None == nError1 );
-// LLA:
-// LLA:             //check for File type
-// LLA:             ::osl::FileStatus   rFileStatus( osl_FileStatus_Mask_Type );
-// LLA:
-// LLA:             nError1 = m_aSocketItem.getFileStatus( rFileStatus );
-// LLA:             CPPUNIT_ASSERT_MESSAGE("getFileStatus failed", ::osl::FileBase::E_None == nError1 );
-// LLA:
-// LLA:             if (rFileStatus.isValid( osl_FileStatus_Mask_Type ))
-// LLA:             {
-// LLA:                 osl::FileStatus::Type eType = rFileStatus.getFileType();
-// LLA:                 printFileType(eType);
-// LLA:                 CPPUNIT_ASSERT_MESSAGE( "test for getFileType function: Socket, Solaris version ",
-// LLA:                                         ( eType == ::osl::FileStatus::Socket ) );
-// LLA:             }
-// LLA: #endif
-// LLA:         }
-
-
-// deprecated since there is a same case Directory::getNextItem_004
-/*#if defined 0 //( UNX ) //( SOLARIS ) //Link file is not defined in Windows
-        void getFileType_006()
-        {
-  nError1 = ::osl::DirectoryItem::get( aTypeURL3, m_aLinkItem );
-            CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 );
-
-            //check for File type
-             ::osl::FileStatus   rFileStatus( osl_FileStatus_Mask_Type );
-  nError1 = m_aLinkItem.getFileStatus( rFileStatus );
-            CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 );
-
-            CPPUNIT_ASSERT_MESSAGE( "test for getFileType function: Link, UNX version ",
-                                     ( ::osl::FileStatus::Link == rFileStatus.getFileType() ) );
-        }
-#endif  */
-
         void getFileType_007()
         {
 #if defined ( SOLARIS ) //Special file is differ in Windows
@@ -2837,8 +2791,6 @@ namespace osl_FileStatus
         CPPUNIT_TEST( getFileType_001 );
         CPPUNIT_TEST( getFileType_002 );
         CPPUNIT_TEST( getFileType_003 );
-        // LLA: CPPUNIT_TEST( getFileType_005 );
-        //CPPUNIT_TEST( getFileType_006 );
         CPPUNIT_TEST( getFileType_007 );
         SAL_CPPUNIT_TEST_SUITE_END();
     };// class getFileType
diff --git a/sal/qa/osl/socket/osl_Socket.cxx b/sal/qa/osl/socket/osl_Socket.cxx
index 1c3b212..fac6c31 100644
--- a/sal/qa/osl/socket/osl_Socket.cxx
+++ b/sal/qa/osl/socket/osl_Socket.cxx
@@ -2484,26 +2484,11 @@ namespace osl_Socket
 
             t_print("#setOption_001: getOption is %" SAL_PRIdINT32 " \n", *pGetBuffer);
 
-// LLA:             sal_Bool * pbDontTouteSet = ( sal_Bool * )malloc( sizeof ( sal_Bool ) );
-// LLA:             *pbDontTouteSet = sal_True;
-// LLA:             sal_Bool * pbDontTouteGet = ( sal_Bool * )malloc( sizeof ( sal_Bool ) );
-// LLA:             *pbDontTouteGet = sal_False;
-// LLA:             asAcceptorSocket.setOption( osl_Socket_OptionDontRoute,  pbDontTouteSet, sizeof ( sal_Bool ) );
-// LLA:             asAcceptorSocket.getOption( osl_Socket_OptionDontRoute,  pbDontTouteGet, sizeof ( sal_Bool ) );
-// LLA:             ::rtl::OUString suError = outputError(::rtl::OUString::valueOf((sal_Int32)*pbDontTouteGet),
-// LLA:                 ::rtl::OUString::valueOf((sal_Int32)*pbDontTouteSet),
-// LLA:                 "test for setOption function: set osl_Socket_OptionDontRoute and then check");
-// LLA:
-// LLA:             sal_Bool bOK = ( sal_True  ==  *pbDontTouteGet );
-// LLA:             free( pbDontTouteSet );
-// LLA:             free( pbDontTouteGet );
-
             CPPUNIT_ASSERT_MESSAGE( "test for setOption function: set option of a socket and then check.",
                                       ( sal_True == bOK ) && (sal_True == bOK2) );
 
             free( pbDontRouteSet );
             free( pGetBuffer );
-// LLA:             CPPUNIT_ASSERT_MESSAGE( suError, sal_True == bOK );
         }
 
         void setOption_002()
diff --git a/sal/qa/osl/socket/osl_Socket2.cxx b/sal/qa/osl/socket/osl_Socket2.cxx
index ba2c1d6..040c644 100644
--- a/sal/qa/osl/socket/osl_Socket2.cxx
+++ b/sal/qa/osl/socket/osl_Socket2.cxx
@@ -1121,26 +1121,11 @@ namespace osl_Socket
 
             t_print("#setOption_001: getOption is %" SAL_PRIdINT32 " \n", *pGetBuffer);
 
-// LLA:             sal_Bool * pbDontTouteSet = ( sal_Bool * )malloc( sizeof ( sal_Bool ) );
-// LLA:             *pbDontTouteSet = sal_True;
-// LLA:             sal_Bool * pbDontTouteGet = ( sal_Bool * )malloc( sizeof ( sal_Bool ) );
-// LLA:             *pbDontTouteGet = sal_False;
-// LLA:             asAcceptorSocket.setOption( osl_Socket_OptionDontRoute,  pbDontTouteSet, sizeof ( sal_Bool ) );
-// LLA:             asAcceptorSocket.getOption( osl_Socket_OptionDontRoute,  pbDontTouteGet, sizeof ( sal_Bool ) );
-// LLA:             ::rtl::OUString suError = outputError(::rtl::OUString::valueOf((sal_Int32)*pbDontTouteGet),
-// LLA:                 ::rtl::OUString::valueOf((sal_Int32)*pbDontTouteSet),
-// LLA:                 "test for setOption function: set osl_Socket_OptionDontRoute and then check");
-// LLA:
-// LLA:             sal_Bool bOK = ( sal_True  ==  *pbDontTouteGet );
-// LLA:             free( pbDontTouteSet );
-// LLA:             free( pbDontTouteGet );
-
             CPPUNIT_ASSERT_MESSAGE( "test for setOption function: set option of a socket and then check.",
                                       ( sal_True == bOK ) && (sal_True == bOK2) );
 
             free( pbDontRouteSet );
             free( pGetBuffer );
-// LLA:             CPPUNIT_ASSERT_MESSAGE( suError, sal_True == bOK );
         }
 
         void setOption_002()
diff --git a/sal/qa/osl/socket/osl_StreamSocket.cxx b/sal/qa/osl/socket/osl_StreamSocket.cxx
index 9a9d63b..1d36c3a 100644
--- a/sal/qa/osl/socket/osl_StreamSocket.cxx
+++ b/sal/qa/osl/socket/osl_StreamSocket.cxx
@@ -1142,34 +1142,6 @@ namespace osl_StreamSocket
 
 
     public:
-// LLA: orig        void send_recv()
-// LLA: orig             {
-// LLA: orig                if ( ifAvailable(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("margritte.germany"))) == sal_True )
-// LLA: orig                    t_print("margritte is alive ! \n");
-// LLA: orig                if ( ifAvailable(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("10.16.66.252"))) == sal_False )
-// LLA: orig                {
-// LLA: orig            t_print("ip 10.16.66.252 is not alive! \n");
-// LLA: orig            return;
-// LLA: orig        }
-// LLA: orig                 ReadSocket2Thread myReadThread;
-// LLA: orig                 myReadThread.create();
-// LLA: orig
-// LLA: orig                 thread_sleep( 2 );
-// LLA: orig                 // send_Acceptor();
-// LLA: orig                 send_Connector();
-// LLA: orig
-// LLA: orig                 myReadThread.join();
-// LLA: orig
-// LLA: orig                 // statistics
-// LLA: orig                 sal_uInt32 nLength = myReadThread.getCount();
-// LLA: orig                 bool       bIsOk   = myReadThread.isOk(); // check if the values are right.
-// LLA: orig
-// LLA: orig                 t_print("Length:=%d\n", nLength);
-// LLA: orig                 t_print(" bIsOk:=%d\n", bIsOk);
-// LLA: orig             }
-
-        // -----------------------------------------------------------------------------
-
         // LLA: send_Connector_2_margritte works, it send strings to echo server on margritte
         //      but can not receive anything
 
diff --git a/sal/qa/rtl_strings/rtl_OString.cxx b/sal/qa/rtl_strings/rtl_OString.cxx
index 063e1e9..935d420 100644
--- a/sal/qa/rtl_strings/rtl_OString.cxx
+++ b/sal/qa/rtl_strings/rtl_OString.cxx
@@ -1963,8 +1963,6 @@ sal_Bool test_valueOf( const char** resArray, int n, sal_Int16 radix,
 
 #define test_valueOf_Int32      test_valueOf<sal_Int32>
 #define test_valueOf_Int64      test_valueOf<sal_Int64>
-// LLA: #define test_valueOf_float      test_valueOf<float>
-// LLA: #define test_valueOf_double     test_valueOf<double>
 
 //------------------------------------------------------------------------
 // testing the method valueOf( sal_Int32 i, sal_Int16 radix=2 )
@@ -2464,232 +2462,6 @@ sal_Bool SAL_CALL test_rtl_OString_valueOf_Int64_SmallestNegativeValue(
 }
 
 //------------------------------------------------------------------------
-// testing the method valueOf( float f )
-//------------------------------------------------------------------------
-// LLA: sal_Bool SAL_CALL test_rtl_OString_valueOf_float(
-// LLA:                         hTestResult hRtlTestResult )
-// LLA: {
-// LLA:     sal_Char methName[MAXBUFLENGTH];
-// LLA:     sal_Char* pMeth =methName;
-// LLA:
-// LLA:     typedef struct TestCase
-// LLA:     {
-// LLA:     sal_Char*                    comments;
-// LLA:     float                         input1;
-// LLA:     OString*                     expVal;
-// LLA:
-// LLA:     ~TestCase() {delete expVal;}
-// LLA:     } TestCase;
-// LLA:
-// LLA:     TestCase arrTestCase[] =
-// LLA:     {
-// LLA:         { "3.0", 3.0, new OString("3.0") },
-// LLA:         { "3.5", 3.5f, new OString("3.5")},
-// LLA:         { "3.0625", 3.0625f, new OString("3.0625")},
-// LLA:         { "3.502525", 3.502525f, new OString("3.502525") },
-// LLA:         { "3.141592", 3.141592f, new OString("3.141592") },
-// LLA:         { "3.5025255", 3.5025255f, new OString("3.5025255") },
-// LLA:         { "3.0039062", 3.00390625f, new OString("3.0039062") }
-// LLA:     };
-// LLA:
-// LLA:     sal_Bool res = sal_True;
-// LLA:     sal_Int32 i;
-// LLA:
-// LLA:     for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++)
-// LLA:     {
-// LLA:         ::rtl::OString aStr1;
-// LLA:         aStr1 = aStr1.valueOf( arrTestCase[i].input1 );
-// LLA:         sal_Bool lastRes = (arrTestCase[i].expVal->compareTo(aStr1) == 0);
-// LLA:
-// LLA:         c_rtl_tres_state
-// LLA:         (
-// LLA:             hRtlTestResult,
-// LLA:             lastRes,
-// LLA:             arrTestCase[i].comments,
-// LLA:             createName( pMeth, "valueof_float", i)
-// LLA:         );
-// LLA:
-// LLA:         res &= lastRes;
-// LLA:
-// LLA:     }
-// LLA:
-// LLA:     return ( res );
-// LLA: }
-
-
-
-
-//------------------------------------------------------------------------
-// testing the method valueOf( float f ) for negative value
-//------------------------------------------------------------------------
-// LLA: sal_Bool SAL_CALL test_rtl_OString_valueOf_Float_Negative(
-// LLA:                                               hTestResult hRtlTestResult )
-// LLA: {
-// LLA:     sal_Char methName[MAXBUFLENGTH];
-// LLA:     sal_Char* pMeth =methName;
-// LLA:
-// LLA:     typedef struct TestCase
-// LLA:     {
-// LLA:     sal_Char*                    comments;
-// LLA:     float                         input1;
-// LLA:     OString*                     expVal;
-// LLA:
-// LLA:     ~TestCase() {delete expVal;}
-// LLA:     } TestCase;
-// LLA:
-// LLA:     TestCase arrTestCase[] =
-// LLA:     {
-// LLA:         { "-3.0", -3.0, new OString("-3.0") },
-// LLA:         { "-3.5", -3.5f, new OString("-3.5")},
-// LLA:         { "-3.0625", -3.0625f, new OString("-3.0625")},
-// LLA:         { "-3.502525", -3.502525f, new OString("-3.502525") },
-// LLA:         { "-3.141592", -3.141592f, new OString("-3.141592") },
-// LLA:         { "-3.5025255", -3.5025255f, new OString("-3.5025255") },
-// LLA:         { "-3.0039062", -3.00390625f, new OString("-3.0039062") }
-// LLA:     };
-// LLA:
-// LLA:     sal_Bool res = sal_True;
-// LLA:     sal_Int32 i;
-// LLA:
-// LLA:     for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++)
-// LLA:     {
-// LLA:         ::rtl::OString aStr1;
-// LLA:         aStr1 = aStr1.valueOf( arrTestCase[i].input1 );
-// LLA:         sal_Bool lastRes = (arrTestCase[i].expVal->compareTo(aStr1) == 0);
-// LLA:
-// LLA:         c_rtl_tres_state
-// LLA:         (
-// LLA:             hRtlTestResult,
-// LLA:             lastRes,
-// LLA:             arrTestCase[i].comments,
-// LLA:             createName( pMeth, "valueof_negative float", i)
-// LLA:         );
-// LLA:
-// LLA:         res &= lastRes;
-// LLA:
-// LLA:     }
-// LLA:
-// LLA:     return ( res );
-// LLA: }
-
-//------------------------------------------------------------------------
-// testing the method valueOf( double f )
-//------------------------------------------------------------------------
-// LLA: sal_Bool SAL_CALL test_rtl_OString_valueOf_double(
-// LLA:                                                 hTestResult hRtlTestResult )
-// LLA: {
-// LLA:     sal_Char methName[MAXBUFLENGTH];
-// LLA:     sal_Char* pMeth =methName;
-// LLA:
-// LLA:     typedef struct TestCase
-// LLA:     {
-// LLA:     sal_Char*                    comments;
-// LLA:     double                         input1;
-// LLA:     OString*                     expVal;
-// LLA:
-// LLA:     ~TestCase() {delete expVal;}
-// LLA:     } TestCase;
-// LLA:
-// LLA:     TestCase arrTestCase[] =
-// LLA:     {
-// LLA:         {"3.0", 3.0, new OString("3.0")},
-// LLA:         {"3.5", 3.5, new OString("3.5")},
-// LLA:         {"3.0625", 3.0625, new OString("3.0625")},
-// LLA:         {"3.1415926535", 3.1415926535, new OString("3.1415926535")},
-// LLA:         {"3.1415926535897931", 3.141592653589793,
-// LLA:             new OString("3.1415926535897931")},
-// LLA:         {"3.1415926535897931", 3.1415926535897932,
-// LLA:             new OString("3.1415926535897931")},
-// LLA:         {"3.1415926535897931", 3.14159265358979323,
-// LLA:             new OString("3.1415926535897931")},
-// LLA:         {"3.1415926535897931", 3.141592653589793238462643,
-// LLA:             new OString("3.1415926535897931")}
-// LLA:     };
-// LLA:
-// LLA:     sal_Bool res = sal_True;
-// LLA:     sal_Int32 i;
-// LLA:
-// LLA:     for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++)
-// LLA:     {
-// LLA:         ::rtl::OString aStr1;
-// LLA:         aStr1 = aStr1.valueOf( arrTestCase[i].input1 );
-// LLA:         sal_Bool lastRes = (arrTestCase[i].expVal->compareTo(aStr1) == 0);
-// LLA:
-// LLA:         c_rtl_tres_state
-// LLA:         (
-// LLA:             hRtlTestResult,
-// LLA:             lastRes,
-// LLA:             arrTestCase[i].comments,
-// LLA:             createName( pMeth, "valueof_double", i)
-// LLA:         );
-// LLA:
-// LLA:         res &= lastRes;
-// LLA:
-// LLA:     }
-// LLA:
-// LLA:     return ( res );
-// LLA: }
-
-
-//------------------------------------------------------------------------
-// testing the method valueOf( double f ) for negative value
-//------------------------------------------------------------------------
-// LLA: sal_Bool SAL_CALL test_rtl_OString_valueOf_Double_Negative(
-// LLA:                                                 hTestResult hRtlTestResult )
-// LLA: {
-// LLA:     sal_Char methName[MAXBUFLENGTH];
-// LLA:     sal_Char* pMeth =methName;
-// LLA:
-// LLA:     typedef struct TestCase
-// LLA:     {
-// LLA:     sal_Char*                    comments;
-// LLA:     double                         input1;
-// LLA:     OString*                     expVal;
-// LLA:
-// LLA:     ~TestCase() {delete expVal;}
-// LLA:     } TestCase;
-// LLA:
-// LLA:     TestCase arrTestCase[] =
-// LLA:     {
-// LLA:         {"-3.0", -3.0, new OString("-3.0")},
-// LLA:         {"-3.5", -3.5, new OString("-3.5")},
-// LLA:         {"-3.0625", -3.0625, new OString("-3.0625")},
-// LLA:         {"-3.1415926535", -3.1415926535, new OString("-3.1415926535")},
-// LLA:         {"-3.1415926535897931", -3.141592653589793,
-// LLA:             new OString("-3.1415926535897931")},
-// LLA:         {"-3.1415926535897931", -3.1415926535897932,
-// LLA:             new OString("-3.1415926535897931")},
-// LLA:         {"-3.1415926535897931", -3.14159265358979323,
-// LLA:             new OString("-3.1415926535897931")},
-// LLA:         {"-3.1415926535897931", -3.141592653589793238462643,
-// LLA:             new OString("-3.1415926535897931")}
-// LLA:     };
-// LLA:
-// LLA:     sal_Bool res = sal_True;
-// LLA:     sal_Int32 i;
-// LLA:
-// LLA:     for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++)
-// LLA:     {
-// LLA:         ::rtl::OString aStr1;
-// LLA:         aStr1 = aStr1.valueOf( arrTestCase[i].input1 );
-// LLA:         sal_Bool lastRes = (arrTestCase[i].expVal->compareTo(aStr1) == 0);
-// LLA:
-// LLA:         c_rtl_tres_state
-// LLA:         (
-// LLA:             hRtlTestResult,
-// LLA:             lastRes,
-// LLA:             arrTestCase[i].comments,
-// LLA:             createName( pMeth, "valueof_nagative double", i)
-// LLA:         );
-// LLA:
-// LLA:         res &= lastRes;
-// LLA:
-// LLA:     }
-// LLA:
-// LLA:     return ( res );
-// LLA: }
-
-//------------------------------------------------------------------------
 // testing the method valueOf()
 //------------------------------------------------------------------------
 extern "C" void /* sal_Bool */ SAL_CALL test_rtl_OString_valueOf(
@@ -2714,15 +2486,6 @@ extern "C" void /* sal_Bool */ SAL_CALL test_rtl_OString_valueOf(
     bTState &= test_rtl_OString_valueOf_Int64_SmallestNegativeValue(
                                                             hRtlTestResult );
 
-    // LLA: the tests for valueOf(float) and valueOf(double) are moved to file
-    //      sal/qa/rtl/ostring/rtl_OString2.cxx
-
-    // LLA: bTState &= test_rtl_OString_valueOf_float( hRtlTestResult );
-    // LLA: bTState &= test_rtl_OString_valueOf_Float_Negative( hRtlTestResult );
-
-    // LLA: bTState &= test_rtl_OString_valueOf_double( hRtlTestResult );
-    // LLA: bTState &= test_rtl_OString_valueOf_Double_Negative( hRtlTestResult );
-
     c_rtl_tres_state_end(hRtlTestResult, "valueOf");
 //    return ( bTState );
 }
@@ -2877,84 +2640,6 @@ extern "C" void /* sal_Bool */ SAL_CALL test_rtl_OString_toFloat(
 //    return (res);
 }
 
-
-//------------------------------------------------------------------------
-// testing the method toDouble()
-//------------------------------------------------------------------------
-// LLA: extern "C" void /* sal_Bool */ SAL_CALL test_rtl_OString_toDouble(
-// LLA:                                                 hTestResult hRtlTestResult )
-// LLA: {
-// LLA:     sal_Char methName[MAXBUFLENGTH];
-// LLA:     sal_Char* pMeth = methName;
-// LLA:
-// LLA:     c_rtl_tres_state_start(hRtlTestResult, "toDouble");
-// LLA:     typedef struct TestCase
-// LLA:     {
-// LLA:     double                       expVal;
-// LLA:     double                       expDiff;
-// LLA:     OString*                     input1;
-// LLA:     ~TestCase() {delete input1;}
-// LLA:     } TestCase;
-// LLA:
-// LLA:
-// LLA:     TestCase arrTestCase[] =
-// LLA:     {
-// LLA:         {3.0, 1e-35, new OString("3")},
-// LLA:         {3.1, 1e-2, new OString("3.1")},
-// LLA:         {3.1415, 1e-5, new OString("3.1415")},
-// LLA:         {3.1415926535, 1e-11, new OString("3.1415926535")},
-// LLA:         {3.141592653589793, 1e-15,
-// LLA:             new OString("3.141592653589793")},
-// LLA:         {3.1415926535897932, 1e-16,
-// LLA:             new OString("3.1415926535897932")},
-// LLA:         {3.14159265358979323, 1e-15,
-// LLA:             new OString("3.14159265358979323")},
-// LLA:         {3.141592653589793238462643, 1e-15,
-// LLA:             new OString("3.141592653589793238462643")},
-// LLA:         {6.5822e-16, 1e-20, new OString("6.5822e-16")},
-// LLA:         {9.1096e-31, 1e-35, new OString("9.1096e-31")},
-// LLA:         {2.997925e8, 10, new OString("2.997925e8")},
-// LLA:         {6.241e18, 100, new OString("6.241e18")},
-// LLA:         {1.7e-308, 1e-35, new OString("1.7e-308")},
-// LLA:         {1.7e+308, 100, new OString("1.7e+308")},
-// LLA:         {3.1, 1e-2, new OString("03.1")},
-// LLA:         {3.1, 1e-2, new OString(" 3.1")},
-// LLA:         {-3.1, 1e-2, new OString("-3.1")},
-// LLA:         {3.1, 1e-2, new OString("+3.1")},
-// LLA:         {0.0, 1e-2, new OString("-0.0")}
-// LLA:     };
-// LLA:
-// LLA:     sal_Bool res = sal_True;
-// LLA:     sal_Int32 i;
-// LLA:
-// LLA:     for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++ )
-// LLA:     {
-// LLA:         double dRes = arrTestCase[i].input1->toDouble();
-// LLA:         double dErg = dRes - arrTestCase[i].expVal ;
-// LLA:         double dComp = fabs( dErg );
-// LLA:         sal_Bool lastRes = ( dComp <= arrTestCase[i].expDiff );
-// LLA:
-// LLA:         char com[MAXBUFLENGTH];
-// LLA:         com[0] = '\'';
-// LLA:         cpynstr(com + 1, (*arrTestCase[i].input1), MAXBUFLENGTH);
-// LLA:         int length = AStringLen( (*arrTestCase[i].input1) );
-// LLA:         com[length + 1] = '\'';
-// LLA:         com[length + 2] = 0;
-// LLA:
-// LLA:         c_rtl_tres_state
-// LLA:         (
-// LLA:             hRtlTestResult,
-// LLA:             lastRes,
-// LLA:             com,
-// LLA:             createName( pMeth, "toDouble", i )
-// LLA:         );
-// LLA:
-// LLA:     }
-// LLA:
-// LLA:     c_rtl_tres_state_end(hRtlTestResult, "toDouble");
-// LLA: //    return (res);
-// LLA: }
-
 //------------------------------------------------------------------------
 // testing the method toBoolean()
 //------------------------------------------------------------------------
@@ -3537,7 +3222,6 @@ extern "C" void /* sal_Bool */ SAL_CALL test_rtl_OString( hTestResult hRtlTestRe
     test_rtl_OString_valueOf( hRtlTestResult );
     test_rtl_OString_toChar( hRtlTestResult );
     test_rtl_OString_toFloat( hRtlTestResult );
-    // LLA: test_rtl_OString_toDouble( hRtlTestResult );
     test_rtl_OString_toBoolean( hRtlTestResult );
     test_rtl_OString_toInt32( hRtlTestResult );
     test_rtl_OString_toInt64( hRtlTestResult );
diff --git a/sal/qa/rtl_strings/rtl_OUString.cxx b/sal/qa/rtl_strings/rtl_OUString.cxx
index 8da5b2e..8b6552c 100644
--- a/sal/qa/rtl_strings/rtl_OUString.cxx
+++ b/sal/qa/rtl_strings/rtl_OUString.cxx
@@ -1464,8 +1464,6 @@ sal_Bool test_valueOf( const char** resArray, int n, sal_Int16 radix,
 
 #define test_valueOf_Int32      test_valueOf<sal_Int32>
 #define test_valueOf_Int64      test_valueOf<sal_Int64>
-// LLA: #define test_valueOf_float      test_valueOf<float>
-// LLA: #define test_valueOf_double     test_valueOf<double>
 
 //------------------------------------------------------------------------
 // testing the method valueOf( sal_Int32 i, sal_Int16 radix=2 )
@@ -2062,259 +2060,6 @@ static sal_Bool SAL_CALL test_rtl_OUString_valueOf_Int64_defaultParam(
     return(res);
 
 }
-//------------------------------------------------------------------------
-// testing the method valueOf( float f )
-//------------------------------------------------------------------------
-// LLA: sal_Bool SAL_CALL test_rtl_OUString_valueOf_float(
-// LLA:     hTestResult hRtlTestResult )
-// LLA: {
-// LLA:     sal_Char methName[MAXBUFLENGTH];
-// LLA:     sal_Char* pMeth =methName;
-// LLA:
-// LLA:     typedef struct TestCase
-// LLA:     {
-// LLA:         sal_Char*                    comments;
-// LLA:         float                         input1;
-// LLA:         OUString*                     expVal;
-// LLA:
-// LLA:         ~TestCase() {delete expVal;}
-// LLA:     } TestCase;
-// LLA:
-// LLA:     TestCase arrTestCase[] =
-// LLA:     {
-// LLA:         { "3.0", 3.0, new OUString("3.0",3,kEncodingRTLTextUSASCII,
-// LLA:                                    kConvertFlagsOStringToOUString) },
-// LLA:         { "3.5", 3.5f, new OUString("3.5",3,kEncodingRTLTextUSASCII,
-// LLA:                                     kConvertFlagsOStringToOUString)},
-// LLA:         { "3.0625", 3.0625f, new OUString("3.0625",6,kEncodingRTLTextUSASCII,
-// LLA:                                           kConvertFlagsOStringToOUString)},
-// LLA:         { "3.502525", 3.502525f, new OUString("3.502525",8,
-// LLA:                                               kEncodingRTLTextUSASCII,kConvertFlagsOStringToOUString) },
-// LLA:         { "3.141592", 3.141592f, new OUString("3.141592",8,
-// LLA:                                               kEncodingRTLTextUSASCII,kConvertFlagsOStringToOUString) },
-// LLA:         { "3.5025255", 3.5025255f, new OUString("3.5025255",9,
-// LLA:                                                 kEncodingRTLTextUSASCII,kConvertFlagsOStringToOUString) },
-// LLA:         { "3.0039062", 3.00390625f, new OUString("3.0039062",9,
-// LLA:                                                  kEncodingRTLTextUSASCII,kConvertFlagsOStringToOUString) }
-// LLA:     };
-// LLA:
-// LLA:     sal_Bool res = sal_True;
-// LLA:     sal_Int32 i;
-// LLA:
-// LLA:     for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++)
-// LLA:     {
-// LLA:         ::rtl::OUString aStr1;
-// LLA:         aStr1 = aStr1.valueOf( arrTestCase[i].input1 );
-// LLA:         sal_Bool lastRes = (arrTestCase[i].expVal->compareTo(aStr1) == 0);
-// LLA:
-// LLA:         c_rtl_tres_state
-// LLA:             (
-// LLA:                 hRtlTestResult,
-// LLA:                 lastRes,
-// LLA:                 arrTestCase[i].comments,
-// LLA:                 createName( pMeth, "valueof_float", i)
-// LLA:                 );
-// LLA:
-// LLA:         res &= lastRes;
-// LLA:
-// LLA:     }
-// LLA:
-// LLA:     return ( res );
-// LLA: }
-
-//------------------------------------------------------------------------
-// testing the method valueOf( float f ) for negative value
-//------------------------------------------------------------------------
-// LLA: sal_Bool SAL_CALL test_rtl_OUString_valueOf_Float_Negative(
-// LLA:     hTestResult hRtlTestResult )
-// LLA: {
-// LLA:     sal_Char methName[MAXBUFLENGTH];
-// LLA:     sal_Char* pMeth =methName;
-// LLA:
-// LLA:     typedef struct TestCase
-// LLA:     {
-// LLA:         sal_Char*                    comments;
-// LLA:         float                         input1;
-// LLA:         OUString*                     expVal;
-// LLA:
-// LLA:         ~TestCase() {delete expVal;}
-// LLA:     } TestCase;
-// LLA:
-// LLA:     TestCase arrTestCase[] =
-// LLA:     {
-// LLA:         { "-3.0", -3.0, new OUString("-3.0",4,kEncodingRTLTextUSASCII,
-// LLA:                                      kConvertFlagsOStringToOUString) },
-// LLA:         { "-3.5", -3.5f, new OUString("-3.5",4,kEncodingRTLTextUSASCII,
-// LLA:                                       kConvertFlagsOStringToOUString)},
-// LLA:         { "-3.0625", -3.0625f, new OUString("-3.0625",7,
-// LLA:                                             kEncodingRTLTextUSASCII,kConvertFlagsOStringToOUString)},
-// LLA:         { "-3.502525", -3.502525f, new OUString("-3.502525",9,
-// LLA:                                                 kEncodingRTLTextUSASCII,kConvertFlagsOStringToOUString) },
-// LLA:         { "-3.141592", -3.141592f, new OUString("-3.141592",9,
-// LLA:                                                 kEncodingRTLTextUSASCII,kConvertFlagsOStringToOUString) },
-// LLA:         { "-3.5025255", -3.5025255f, new OUString("-3.5025255",10,
-// LLA:                                                   kEncodingRTLTextUSASCII,kConvertFlagsOStringToOUString) },
-// LLA:         { "-3.0039062", -3.00390625f, new OUString("-3.0039062",10,
-// LLA:                                                    kEncodingRTLTextUSASCII,kConvertFlagsOStringToOUString) }
-// LLA:     };
-// LLA:
-// LLA:     sal_Bool res = sal_True;
-// LLA:     sal_Int32 i;
-// LLA:
-// LLA:     for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++)
-// LLA:     {
-// LLA:         ::rtl::OUString aStr1;
-// LLA:         aStr1 = aStr1.valueOf( arrTestCase[i].input1 );
-// LLA:         sal_Bool lastRes = (arrTestCase[i].expVal->compareTo(aStr1) == 0);
-// LLA:
-// LLA:         c_rtl_tres_state
-// LLA:             (
-// LLA:                 hRtlTestResult,
-// LLA:                 lastRes,
-// LLA:                 arrTestCase[i].comments,
-// LLA:                 createName( pMeth, "valueof_negative float", i)
-// LLA:                 );
-// LLA:
-// LLA:         res &= lastRes;
-// LLA:
-// LLA:     }
-// LLA:
-// LLA:     return ( res );
-// LLA: }
-
-//------------------------------------------------------------------------
-// testing the method valueOf( double f )
-//------------------------------------------------------------------------
-// LLA: sal_Bool SAL_CALL test_rtl_OUString_valueOf_double(
-// LLA:     hTestResult hRtlTestResult )
-// LLA: {
-// LLA:     sal_Char methName[MAXBUFLENGTH];
-// LLA:     sal_Char* pMeth =methName;
-// LLA:
-// LLA:     typedef struct TestCase
-// LLA:     {
-// LLA:         sal_Char*       comments;
-// LLA:         double          input1;
-// LLA:         OUString*       expVal;
-// LLA:
-// LLA:         ~TestCase() {delete expVal;}
-// LLA:     } TestCase;
-// LLA:
-// LLA:     TestCase arrTestCase[] =
-// LLA:     {
-// LLA:         {"3.0", 3.0, new OUString("3.0",3,kEncodingRTLTextUSASCII,
-// LLA:                                   kConvertFlagsOStringToOUString)},
-// LLA:         {"3.5", 3.5, new OUString("3.5",3,kEncodingRTLTextUSASCII,
-// LLA:                                   kConvertFlagsOStringToOUString)},
-// LLA:         {"3.0625", 3.0625, new OUString("3.0625",6,kEncodingRTLTextUSASCII,
-// LLA:                                         kConvertFlagsOStringToOUString)},
-// LLA:         {"3.1415926535", 3.1415926535, new OUString("3.1415926535",12,
-// LLA:                                                     kEncodingRTLTextUSASCII,kConvertFlagsOStringToOUString)},
-// LLA:         {"3.1415926535897931", 3.141592653589793,
-// LLA:          new OUString("3.1415926535897931",18,kEncodingRTLTextUSASCII,
-// LLA:                       kConvertFlagsOStringToOUString)},
-// LLA:         {"3.1415926535897931", 3.1415926535897932,
-// LLA:          new OUString("3.1415926535897931",18,kEncodingRTLTextUSASCII,
-// LLA:                       kConvertFlagsOStringToOUString)},
-// LLA:         {"3.1415926535897931", 3.14159265358979323,
-// LLA:          new OUString("3.1415926535897931",18,kEncodingRTLTextUSASCII,
-// LLA:                       kConvertFlagsOStringToOUString)},
-// LLA:         {"3.1415926535897931", 3.141592653589793238462643,
-// LLA:          new OUString("3.1415926535897931",18,kEncodingRTLTextUSASCII,
-// LLA:                       kConvertFlagsOStringToOUString)}
-// LLA:     };
-// LLA:
-// LLA:     sal_Bool res = sal_True;
-// LLA:     sal_Int32 i;
-// LLA:
-// LLA:     for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++)
-// LLA:     {
-// LLA:         ::rtl::OUString aStr1;
-// LLA:         aStr1 = aStr1.valueOf( arrTestCase[i].input1 );
-// LLA:         sal_Bool lastRes = (arrTestCase[i].expVal->compareTo(aStr1) == 0);
-// LLA:
-// LLA:         c_rtl_tres_state
-// LLA:             (
-// LLA:                 hRtlTestResult,
-// LLA:                 lastRes,
-// LLA:                 arrTestCase[i].comments,
-// LLA:                 createName( pMeth, "valueof_double", i)
-// LLA:                 );
-// LLA:
-// LLA:         res &= lastRes;
-// LLA:
-// LLA:     }
-// LLA:
-// LLA:     return ( res );
-// LLA: }
-
-
-//------------------------------------------------------------------------
-// testing the method valueOf( double f ) for negative value
-//------------------------------------------------------------------------
-// LLA: sal_Bool SAL_CALL test_rtl_OUString_valueOf_Double_Negative(
-// LLA:     hTestResult hRtlTestResult )
-// LLA: {
-// LLA:     sal_Char methName[MAXBUFLENGTH];
-// LLA:     sal_Char* pMeth =methName;
-// LLA:
-// LLA:     typedef struct TestCase
-// LLA:     {
-// LLA:         sal_Char*        comments;
-// LLA:         double           input1;
-// LLA:         OUString*        expVal;
-// LLA:
-// LLA:         ~TestCase() {delete expVal;}
-// LLA:     } TestCase;
-// LLA:
-// LLA:     TestCase arrTestCase[] =
-// LLA:     {
-// LLA:         {"-3.0", -3.0, new OUString("-3.0",4,kEncodingRTLTextUSASCII,
-// LLA:                                     kConvertFlagsOStringToOUString)},
-// LLA:         {"-3.5", -3.5, new OUString("-3.5",4,kEncodingRTLTextUSASCII,
-// LLA:                                     kConvertFlagsOStringToOUString)},
-// LLA:         {"-3.0625", -3.0625, new OUString("-3.0625",7,kEncodingRTLTextUSASCII,
-// LLA:                                           kConvertFlagsOStringToOUString)},
-// LLA:         {"-3.1415926535", -3.1415926535,
-// LLA:          new OUString("-3.1415926535",13,kEncodingRTLTextUSASCII,
-// LLA:                       kConvertFlagsOStringToOUString)},
-// LLA:         {"-3.1415926535897931", -3.141592653589793,
-// LLA:          new OUString("-3.1415926535897931",19,kEncodingRTLTextUSASCII,
-// LLA:                       kConvertFlagsOStringToOUString)},
-// LLA:         {"-3.1415926535897931", -3.1415926535897932,
-// LLA:          new OUString("-3.1415926535897931",19,kEncodingRTLTextUSASCII,
-// LLA:                       kConvertFlagsOStringToOUString)},
-// LLA:         {"-3.1415926535897931", -3.14159265358979323,
-// LLA:          new OUString("-3.1415926535897931",19,kEncodingRTLTextUSASCII,
-// LLA:                       kConvertFlagsOStringToOUString)},
-// LLA:         {"-3.1415926535897931", -3.141592653589793238462643,
-// LLA:          new OUString("-3.1415926535897931",19,kEncodingRTLTextUSASCII,
-// LLA:                       kConvertFlagsOStringToOUString)}
-// LLA:     };
-// LLA:
-// LLA:     sal_Bool res = sal_True;
-// LLA:     sal_Int32 i;
-// LLA:
-// LLA:     for(i = 0; i < (sizeof (arrTestCase))/(sizeof (TestCase)); i++)
-// LLA:     {
-// LLA:         ::rtl::OUString aStr1;
-// LLA:         aStr1 = aStr1.valueOf( arrTestCase[i].input1 );
-// LLA:         sal_Bool lastRes = (arrTestCase[i].expVal->compareTo(aStr1) == 0);
-// LLA:
-// LLA:         c_rtl_tres_state
-// LLA:             (
-// LLA:                 hRtlTestResult,
-// LLA:                 lastRes,
-// LLA:                 arrTestCase[i].comments,
-// LLA:                 createName( pMeth, "valueof_nagative double", i)
-// LLA:                 );
-// LLA:
-// LLA:         res &= lastRes;
-// LLA:
-// LLA:     }
-// LLA:
-// LLA:     return ( res );
-// LLA: }
 
 //------------------------------------------------------------------------
 // testing the method valueOf()
@@ -2335,11 +2080,7 @@ extern "C" void /* sal_Bool */ SAL_CALL test_rtl_OUString_valueOf(
     bTState &= test_rtl_OUString_valueOf_Int64_WrongRadix( hRtlTestResult );
     bTState &= test_rtl_OUString_valueOf_Int64_defaultParam(
         hRtlTestResult );
-    // LLA: bTState &= test_rtl_OUString_valueOf_float( hRtlTestResult );
-    // LLA: bTState &= test_rtl_OUString_valueOf_Float_Negative( hRtlTestResult );
 
-    // LLA: bTState &= test_rtl_OUString_valueOf_double( hRtlTestResult );
-    // LLA: bTState &= test_rtl_OUString_valueOf_Double_Negative( hRtlTestResult );
     c_rtl_tres_state_end( hRtlTestResult, "valueOf");
 //    return ( bTState );
 }
@@ -2436,25 +2177,6 @@ sal_Bool test_index( const T* input1, int num,const sal_Int32* input2,
             lastRes=(str.indexOf(input1[i],input2[i])==expVal[i]);
             meth="indexOf_002";
         }
-// LLA:         if(base==2)
-// LLA:         {
-// LLA:             lastRes=(str.lastIndexOf(input1[i])==expVal[i]);
-// LLA:             meth="lastIndexOf_001(sal_Unicode)";
-// LLA:         }
-// LLA:         if(base==3)
-// LLA:         {
-// LLA: /*
-// LLA:             OUString s4(&input1[i]);
-// LLA:             rtl::OString sStr;
-// LLA:             sStr <<= str;
-// LLA:             t_print("str = %s\n", sStr.getStr());
-// LLA:             rtl::OString sInput1;
-// LLA:             sInput1 <<= s4; // rtl::OUString((sal_Unicode*)input1[i]);
-// LLA:             t_print("%d = lastIndexOf(\"%s\", %d) =? %d\n", str.lastIndexOf(input1[i], input2[i]), sInput1.getStr(), input2[i], expVal[i]);
-// LLA: */
-// LLA:             lastRes=(str.lastIndexOf(input1[i],input2[i])==expVal[i]);
-// LLA:             meth="lastIndexOf_002(sal_Unicode , sal_Int32 )";
-// LLA:         }
 
         c_rtl_tres_state
             (
@@ -2497,26 +2219,6 @@ sal_Bool test_indexStr( const T** input1, int num,const sal_Int32* input2,
             lastRes=(str.indexOf(s2,input2[i])==expVal[i]);
             meth="indexOf_004";
         }
-// LLA:         if(base==2)
-// LLA:         {
-// LLA:             OUString s3(input1[i]);
-// LLA:             lastRes=(str.lastIndexOf(s3)==expVal[i]);
-// LLA:             meth="lastIndexOf_003(const OUString)";
-// LLA:         }
-// LLA:         if(base==3)
-// LLA:         {
-// LLA:             OUString s4(input1[i]);
-// LLA:
-// LLA:             rtl::OString sStr;
-// LLA:             sStr <<= str;
-// LLA:             t_print("str = \"%s\"\n", sStr.getStr());
-// LLA:             rtl::OString sInput1;
-// LLA:             sInput1 <<= s4; // rtl::OUString((sal_Unicode*)input1[i]);
-// LLA:             t_print("%d = lastIndexOf(\"%s\", %d) =? %d\n", str.lastIndexOf(input1[i], input2[i]), sInput1.getStr(), input2[i], expVal[i]);
-// LLA:
-// LLA:             lastRes=(str.lastIndexOf(s4,input2[i])==expVal[i]);
-// LLA:             meth="lastIndexOf_004(const OUString,sal_Int32)";
-// LLA:         }
 
         c_rtl_tres_state
             (
@@ -2611,92 +2313,6 @@ sal_Bool SAL_CALL test_rtl_OUString_indexOf_004(
 
     return ( bRes );
 }
-// LLA: //------------------------------------------------------------------------
-// LLA: // testing the method lastIndexOf( sal_Unicode ch )
-// LLA: //------------------------------------------------------------------------
-// LLA: sal_Bool SAL_CALL test_rtl_OUString_lastIndexOf_001(
-// LLA:     hTestResult hRtlTestResult )
-// LLA: {
-// LLA:     sal_Bool bRes=sal_False;
-// LLA:
-// LLA:     bRes=c_rtl_tres_state
-// LLA:         (
-// LLA:             hRtlTestResult,
-// LLA:             test_index<sal_Unicode>((const sal_Unicode*)input1lastDefault,
-// LLA:                                     nlastDefaultCount,input2lastDefault,
-// LLA:                                     expVallastDefault,2,hRtlTestResult),
-// LLA:             "lastIndex",
-// LLA:             "lastIndexDefault(sal_Unicode ch)"
-// LLA:             );
-// LLA:
-// LLA:     return ( bRes );
-// LLA: }
-// LLA: //------------------------------------------------------------------------
-// LLA: // testing the method lastIndexOf(  sal_Unicode ch, sal_Int32 fromIndex )
-// LLA: //------------------------------------------------------------------------
-// LLA: sal_Bool SAL_CALL test_rtl_OUString_lastIndexOf_002(
-// LLA:     hTestResult hRtlTestResult )
-// LLA: {
-// LLA:     sal_Bool bRes=sal_False;
-// LLA:
-// LLA:     bRes=c_rtl_tres_state
-// LLA:         (
-// LLA:             hRtlTestResult,
-// LLA:             test_index<sal_Unicode>((const sal_Unicode*)input1lastNormal,
-// LLA:                                     nlastNormalCount,input2lastNormal,
-// LLA:                                     expVallastNormal,3,hRtlTestResult),
-// LLA:             "lastIndex",
-// LLA:             "lastIndexNormal(sal_Unicode ch, sal_Int32 fromIndex)"
-// LLA:             );
-// LLA:
-// LLA:     return ( bRes );
-// LLA: }
-// LLA: //------------------------------------------------------------------------
-// LLA: // testing the method lastIndexOf(  OUString ch )
-// LLA: //------------------------------------------------------------------------
-// LLA: sal_Bool SAL_CALL test_rtl_OUString_lastIndexOf_003(
-// LLA:     hTestResult hRtlTestResult )
-// LLA: {
-// LLA:     sal_Bool bRes=sal_False;
-// LLA:
-// LLA:     bRes=c_rtl_tres_state
-// LLA:         (
-// LLA:             hRtlTestResult,
-// LLA:             test_indexStr<sal_Unicode>((const sal_Unicode**)input1StrLastDefault,
-// LLA:                                        nStrLastDefaultCount,input2StrLastDefault,
-// LLA:                                        expValStrLastDefault,2,hRtlTestResult),
-// LLA:             "lastIndexOf",
-// LLA:             "lastIndexOf(OUString ch)"
-// LLA:             );
-// LLA:
-// LLA:     return ( bRes );
-// LLA: }
-// LLA: //------------------------------------------------------------------------
-// LLA: // testing the method lastIndexOf(  OUString ch, sal_Int32 fromIndex )
-// LLA: //------------------------------------------------------------------------
-// LLA: sal_Bool SAL_CALL test_rtl_OUString_lastIndexOf_004(
-// LLA:     hTestResult hRtlTestResult )
-// LLA: {
-// LLA:     sal_Bool bRes=sal_False;
-// LLA:
-// LLA:     for (int i=0;i<nStrLastNormalCount;i++)
-// LLA:     {
-// LLA:         rtl::OUString aStr = rtl::OUString(input1StrLastNormal[i]);
-// LLA:         volatile int dummy = 0;
-// LLA:     }
-// LLA:
-// LLA:     bRes=c_rtl_tres_state
-// LLA:         (
-// LLA:             hRtlTestResult,
-// LLA:             test_indexStr<sal_Unicode>((const sal_Unicode**)input1StrLastNormal,
-// LLA:                                        nStrLastNormalCount,input2StrLastNormal,
-// LLA:                                        expValStrLastNormal,3,hRtlTestResult),
-// LLA:             "lastIndexOf",
-// LLA:             "lastIndexOf(OUString ch, sal_Int32 fromIndex)"
-// LLA:             );
-// LLA:
-// LLA:     return ( bRes );
-// LLA: }
 //------------------------------------------------------------------------
 extern "C" void /* sal_Bool */ SAL_CALL test_rtl_OUString_indexOf(
     hTestResult hRtlTestResult )
@@ -2710,18 +2326,6 @@ extern "C" void /* sal_Bool */ SAL_CALL test_rtl_OUString_indexOf(
 //    return ( res );
 }
 //------------------------------------------------------------------------
-// LLA: extern "C" void /* sal_Bool */ SAL_CALL test_rtl_OUString_lastIndexOf(
-// LLA:     hTestResult hRtlTestResult )
-// LLA: {
-// LLA:     c_rtl_tres_state_start( hRtlTestResult, "lastIndexOf");
-// LLA:     sal_Bool res = test_rtl_OUString_lastIndexOf_001(hRtlTestResult);
-// LLA:     res &= test_rtl_OUString_lastIndexOf_002(hRtlTestResult);
-// LLA:     res &= test_rtl_OUString_lastIndexOf_003(hRtlTestResult);
-// LLA:     res &= test_rtl_OUString_lastIndexOf_004(hRtlTestResult);
-// LLA:     c_rtl_tres_state_end( hRtlTestResult, "lastIndexOf");
-// LLA: //    return ( res );
-// LLA: }
-//------------------------------------------------------------------------
 // testing the method concat( const OString & aStr )
 //------------------------------------------------------------------------
 extern "C" void /* sal_Bool */ SAL_CALL test_rtl_OUString_concat(
@@ -3154,7 +2758,6 @@ sal_Bool test_toData( const char** input, int num, sal_Int16 radix,
     sal_Char    *meth = '\0';
     sal_Char*   pMeth=methName;
     sal_Int32   i;
-//  static      sal_Unicode aUchar[60]={0x00};
     T           intRes;
     sal_Bool    lastRes=sal_False;
 
@@ -3162,10 +2765,6 @@ sal_Bool test_toData( const char** input, int num, sal_Int16 radix,
     {
         OSL_ENSURE( i < 60, "ERROR: leave aUchar bound");
 
-// LLA: stored for the posterity
-//      AStringToUStringCopy(aUchar,input[i]);
-//      OUString str(aUchar);
-
         OUString str;
         str = OUString::createFromAscii(input[i]);
 
@@ -3194,22 +2793,8 @@ sal_Bool test_toData( const char** input, int num, sal_Int16 radix,
             lastRes=(intRes==expVal[i]);
             meth="toInt64normal";
         }
-// LLA: does no longer exist, moved to rtl/oustring
-// LLA:         if(base==4)
-// LLA:         {
-// LLA:             intRes=str.toDouble();
-// LLA:             lastRes=(fabs(intRes-expVal[i])<=1e-35);
-// LLA:             meth="toDouble";
-// LLA:         }
-
-// LLA: dt:20040802 create compile problems within wntmsci10
-//      if(base==5)
-//      {
-//            intRes=str.toFloat();
-//            T nPrec = _fPrecision[i];
-//            lastRes=(fabs((T)(intRes-expVal[i])) <= nPrec /* 1e-35 */ );
-//            meth="toFloat";
-//        }
+        // base 4: does no longer exist, moved to rtl/oustring
+        // base 5: dt:20040802 create compile problems within wntmsci10
         if(base==6)
         {
             intRes=str.toChar();
@@ -3238,56 +2823,6 @@ sal_Bool test_toData( const char** input, int num, sal_Int16 radix,
     return( res );
 }
 //------------------------------------------------------------------------
-//    testing the method toDouble()
-//------------------------------------------------------------------------
-
-// LLA: extern "C" void /* sal_Bool */ SAL_CALL test_rtl_OUString_toDouble(
-// LLA:     hTestResult hRtlTestResult )
-// LLA: {
-// LLA:     c_rtl_tres_state_start( hRtlTestResult, "toDouble");
-// LLA:     sal_Bool bRes=sal_False;
-// LLA:
-// LLA:     bRes=c_rtl_tres_state
-// LLA:         (
-// LLA:             hRtlTestResult,
-// LLA:             test_toData<double>((const char**)inputDouble,nDoubleCount,10,
-// LLA:                                 expValDouble,4,hRtlTestResult),
-// LLA:             "toDouble",
-// LLA:             "toDouble()"
-// LLA:             );
-// LLA:     c_rtl_tres_state_end( hRtlTestResult, "toDouble");
-// LLA: //   return ( bRes );
-// LLA: }
-
-//------------------------------------------------------------------------
-//    testing the method toFloat()
-//------------------------------------------------------------------------
-// LLA: dt:20040802 the test_toData() has compile problems.
-// LLA: extern "C" void /* sal_Bool */ SAL_CALL test_rtl_OUString_toFloat(
-// LLA:     hTestResult hRtlTestResult )
-// LLA: {
-// LLA:     c_rtl_tres_state_start( hRtlTestResult, "toFloat");
-// LLA:     sal_Bool bRes=sal_False;
-// LLA:
-// LLA:     bRes=c_rtl_tres_state
-// LLA:         (
-// LLA:             hRtlTestResult,
-// LLA:             test_toData<float>((const char**)inputFloat,
-// LLA:                                nFloatCount,
-// LLA:                                10, /* radix */
-// LLA:                                expValFloat,
-// LLA:                                5,  /* float */
-// LLA:                                fPrecision,
-// LLA:                                hRtlTestResult),
-// LLA:             "toFloat",
-// LLA:             "toFloat()"
-// LLA:             );
-// LLA:
-// LLA:     c_rtl_tres_state_end( hRtlTestResult, "toFloat");
-// LLA: //   return ( bRes );
-// LLA:
-// LLA: }
-//------------------------------------------------------------------------
 //    testing the method toChar()
 //------------------------------------------------------------------------
 extern "C" void /* sal_Bool */ SAL_CALL test_rtl_OUString_toChar(
@@ -3827,15 +3362,12 @@ extern "C" void /* sal_Bool */ SAL_CALL test_rtl_OUString( hTestResult hRtlTestR
     test_rtl_OUString_valueOf( hRtlTestResult );
     test_rtl_OUString_createFromAscii( hRtlTestResult );
     test_rtl_OUString_indexOf( hRtlTestResult );
-// LLA: removed, it is in a new test in rtl/oustring. test_rtl_OUString_lastIndexOf( hRtlTestResult );
     test_rtl_OUString_concat( hRtlTestResult );
     test_rtl_OUString_replaceAt( hRtlTestResult );
     test_rtl_OUString_replace( hRtlTestResult );
     test_rtl_OUString_toAsciiLowerCase( hRtlTestResult );
     test_rtl_OUString_toAsciiUpperCase( hRtlTestResult );
     test_rtl_OUString_trim( hRtlTestResult );
-// LLA: removed, it is in a new test in rtl/oustring. test_rtl_OUString_toDouble( hRtlTestResult );
-// LLA: removed, has compile problems.    test_rtl_OUString_toFloat( hRtlTestResult );
     test_rtl_OUString_toChar( hRtlTestResult );
     test_rtl_OUString_toBoolean( hRtlTestResult );
     test_rtl_OUString_toInt32( hRtlTestResult );
diff --git a/sal/qa/rtl_strings/rtl_old_testowstring.cxx b/sal/qa/rtl_strings/rtl_old_testowstring.cxx
index c4cec88..0b99361 100644
--- a/sal/qa/rtl_strings/rtl_old_testowstring.cxx
+++ b/sal/qa/rtl_strings/rtl_old_testowstring.cxx
@@ -121,38 +121,6 @@ void oldtests::test_OUString()
     s6 = s5.valueOf(m);
     TEST_ENSURE( s6.compareTo( OUString(RTL_CONSTASCII_USTRINGPARAM("-3223372036854775807")) ) == 0, "test_OWString error 17");
 
-// LLA: locale tests removed        ::rtl::OLocale locale = ::rtl::OLocale::getDefault();
-// LLA: locale tests removed
-// LLA: locale tests removed    OUString s61(OUString(RTL_CONSTASCII_USTRINGPARAM("HaLLo")));
-// LLA: locale tests removed    s61 = s61.toLowerCase(locale);
-// LLA: locale tests removed    TEST_ENSURE( s61 == OUString(RTL_CONSTASCII_USTRINGPARAM("hallo")), "test_OWString error 17a");
-// LLA: locale tests removed    s61 = s61.toUpperCase();
-// LLA: locale tests removed    TEST_ENSURE( s61 == OUString(RTL_CONSTASCII_USTRINGPARAM("HALLO")), "test_OWString error 17b");
-// LLA: locale tests removed    s61 = s61.toLowerCase();
-// LLA: locale tests removed    TEST_ENSURE( s61 == OUString(RTL_CONSTASCII_USTRINGPARAM("hallo")), "test_OWString error 17c");
-// LLA: locale tests removed
-// LLA: locale tests removed    ::rtl::OLocale::setDefault( OUString(RTL_CONSTASCII_USTRINGPARAM("de")), OUString(RTL_CONSTASCII_USTRINGPARAM("DE")), OUString() );
-// LLA: locale tests removed    locale = OLocale::getDefault();
-// LLA: locale tests removed
-// LLA: locale tests removed    // AB, 24.3.2000, removed NAMESPACE_RTL(OLocale)::getENGLISH() and error 18
-// LLA: locale tests removed
-// LLA: locale tests removed    OUString s7(OUString(RTL_CONSTASCII_USTRINGPARAM("HaLLo")));
-// LLA: locale tests removed    s7 = s7.toLowerCase(locale);
-// LLA: locale tests removed    TEST_ENSURE( s7 == OUString(RTL_CONSTASCII_USTRINGPARAM("hallo")), "test_OWString error 19");
-// LLA: locale tests removed    s7 = s7.toUpperCase(locale);
-// LLA: locale tests removed    TEST_ENSURE( s7 == OUString(RTL_CONSTASCII_USTRINGPARAM("HALLO")), "test_OWString error 20");
-// LLA: locale tests removed
-// LLA: locale tests removed    OUString s8(OUString(RTL_CONSTASCII_USTRINGPARAM("HaLLo ICH BIn eIn ")));
-// LLA: locale tests removed    s8 += OUString::valueOf( (sal_Unicode)0xDF );
-// LLA: locale tests removed    locale = OLocale::registerLocale( OUString(RTL_CONSTASCII_USTRINGPARAM("tr")), OUString(RTL_CONSTASCII_USTRINGPARAM("TR")), OUString());
-// LLA: locale tests removed    s8 = s8.toLowerCase(locale);
-// LLA: locale tests removed    s8 = s8.toUpperCase(locale);
-// LLA: locale tests removed    TEST_ENSURE( s8 == OUString(RTL_CONSTASCII_USTRINGPARAM("HALLO ICH BIN EIN SS")), "test_OWString error 21");
-// LLA: locale tests removed
-// LLA: locale tests removed    s7 = OUString(RTL_CONSTASCII_USTRINGPARAM("Hallo ich bIn ein I"));
-// LLA: locale tests removed    s7 = s8.toUpperCase(locale);
-// LLA: locale tests removed    TEST_ENSURE( s7 != OUString(RTL_CONSTASCII_USTRINGPARAM("HALLO ICH BIN EIN I")), "test_OWString error 21.b");
-
      OUString s7;
     OUString s8(OUString(RTL_CONSTASCII_USTRINGPARAM("HALLO ICH BIN EIN SS")));
     s7 = OUString(RTL_CONSTASCII_USTRINGPARAM("          "));
@@ -162,7 +130,6 @@ void oldtests::test_OUString()
 
     s7 = s8.trim();
     TEST_ENSURE( s7 == OUString(RTL_CONSTASCII_USTRINGPARAM("HALLO ICH BIN EIN SS")), "test_OWString error 23");
-//  TEST_ENSURE( wcscmp(s7.getStr(), L"HALLO ICH BIN EIN SS") == 0, "test_OWString error 24");
 
     s7 = OUString(RTL_CONSTASCII_USTRINGPARAM("Hallo"));
     s8 = OUString(RTL_CONSTASCII_USTRINGPARAM("aber Hallo"));
@@ -179,54 +146,11 @@ void oldtests::test_OUString()
 
     s8 = s8.replace((sal_Unicode)'l', (sal_Unicode)'r');
     TEST_ENSURE( s8 == OUString(RTL_CONSTASCII_USTRINGPARAM("Harro")), "test_OWString error 32");
-// LLA: len() unknown   TEST_ENSURE( s8.len() == 5, "test_OWString error 33");
 
     //       "Ich bin ein String mit einem A und C und vielen m, m, m, m"
     //        |    |    |    |    |    |    |    |    |    |    |    |
     //index   0    5    10   15   20   25   30   35   40   45   50   55
     s8 = OUString(RTL_CONSTASCII_USTRINGPARAM("Ich bin ein String mit einem A und C und vielen m, m, m, m"));
-// LLA: no matching     TEST_ENSURE( s8.search((sal_Unicode)'I') == 0, "test_OWString error 34");
-// LLA: no matching     TEST_ENSURE( s8.search((sal_Unicode)'A') == 29, "test_OWString error 35");
-// LLA: no matching     s7 = OUString(RTL_CONSTASCII_USTRINGPARAM("A und C"));
-// LLA: no matching     TEST_ENSURE( s8.search(s7) == 29, "test_OWString error 36");
-// LLA: no matching     TEST_ENSURE( s8.search(OUString(RTL_CONSTASCII_USTRINGPARAM("mit einem A"))) == 19, "test_OWString error 37");
-// LLA: no matching
-// LLA: no matching     s8 = OUString(RTL_CONSTASCII_USTRINGPARAM("||token1|token2|token3||token4|token5||"));
-// LLA: no matching     TEST_ENSURE( s8.getTokenCount('|') == 10, "test_OWString error 38a");
-// LLA: no matching     TEST_ENSURE( s8.getToken(10,'|') == OUString(), "test_OWString error 39a");
-// LLA: no matching
-// LLA: no matching     s8 = OUString(RTL_CONSTASCII_USTRINGPARAM("token1"));
-// LLA: no matching     TEST_ENSURE( s8.getTokenCount('|') == 1, "test_OWString error 38b");
-// LLA: no matching     TEST_ENSURE( s8.getToken(0,'|') == OUString(RTL_CONSTASCII_USTRINGPARAM("token1")), "test_OWString error 39b");
-// LLA: no matching     TEST_ENSURE( s8.getToken(-1,'|') == OUString(), "test_OWString error 39c");
-// LLA: no matching     TEST_ENSURE( s8.getToken(1,'|') == OUString(), "test_OWString error 39d");
-// LLA: no matching
-// LLA: no matching     s8 = OUString(RTL_CONSTASCII_USTRINGPARAM("|hallo1|hallo2|hallo3|hallo4|hallo5|hallo6|hallo7|hallo8|"));
-// LLA: no matching     TEST_ENSURE( s8.getTokenCount((sal_Unicode)'|') == 10, "test_OWString error 38");
-// LLA: no matching     TEST_ENSURE( s8.getToken(3, (sal_Unicode)'|') == OUString(RTL_CONSTASCII_USTRINGPARAM("hallo3")), "test_OWString error 39");
-
-// LLA: removed due to the fact, this is not a clean test!
-
-// LLA:     s7 = OUString();
-// LLA:     s7 += s8;
-// LLA:     TEST_ENSURE( s7 == s8, "test_OWString error 40");
-// LLA:
-// LLA:     s7 = s8.replaceAt(8, 6, OUString(RTL_CONSTASCII_USTRINGPARAM("mmmmmmmmmm")));
-// LLA:     TEST_ENSURE( s7.getLength() == 61, "test_OWString error 41");
-// LLA:
-// LLA:     s8 = s7.replaceAt(8, 11, OUString());
-// LLA:     TEST_ENSURE( s8.getLength() == 50, "test_OWString error 42");
-// LLA:
-// LLA:     s7 = s8.replaceAt(8, 0, OUString(RTL_CONSTASCII_USTRINGPARAM("hallo2|")));
-// LLA:     TEST_ENSURE( s7.getLength() == 57, "test_OWString error 43");
-// LLA:
-// LLA:     sal_Int32 pos = 0;
-// LLA:     while ((pos = s7.indexOf(OUString(RTL_CONSTASCII_USTRINGPARAM("|")))) >= 0)
-// LLA:     {
-// LLA:         s8 = s7.replaceAt(pos, 1, OUString(RTL_CONSTASCII_USTRINGPARAM("**")));
-// LLA:         s7 = s8;
-// LLA:     }
-// LLA:     TEST_ENSURE( s7.getLength() == 66, "test_OWString error 44");
 
     TEST_ENSURE( OUString(RTL_CONSTASCII_USTRINGPARAM("aaa")).compareTo( OUString(RTL_CONSTASCII_USTRINGPARAM("bbb")) ) < 0, "test_OWString error 46" );
     TEST_ENSURE( OUString(RTL_CONSTASCII_USTRINGPARAM("aaa")).compareTo( OUString(RTL_CONSTASCII_USTRINGPARAM("aaa")) ) == 0, "test_OWString error 46" );
@@ -348,15 +272,6 @@ void oldtests::test_OUString()
     sal_Int64 n3 = s13.toInt64( 16 );
     TEST_ENSURE( n3 == 0x4423A61, "test_OWString error 73" );
 
-// LLA: Value tests fails most the time, this is not a good test
-// LLA:     double d = 1.23456781;
-// LLA:     OUString sDouble = OUString::valueOf( d );
-// LLA:     char str[] = "1.2345678099999999";
-// LLA:     sal_Int32 nLength = sDouble.getLength();
-// LLA:     TEST_ENSURE( nLength == strlen( str ), "test_OWString error 74" );
-// LLA:     sal_Int32 nCompare = sDouble.compareToAscii( str );
-// LLA:     TEST_ENSURE( nCompare == 0, "test_OWString error 75" );
-
     printf("test_OWString OK !!!\n");
     return;
 }


More information about the Libreoffice-commits mailing list