summaryrefslogtreecommitdiff
path: root/sal/qa/OStringBuffer
diff options
context:
space:
mode:
Diffstat (limited to 'sal/qa/OStringBuffer')
-rw-r--r--sal/qa/OStringBuffer/rtl_OStringBuffer.cxx319
-rw-r--r--sal/qa/OStringBuffer/rtl_String_Const.h2
-rw-r--r--sal/qa/OStringBuffer/rtl_String_Utils.cxx169
-rw-r--r--sal/qa/OStringBuffer/rtl_String_Utils.hxx62
4 files changed, 0 insertions, 552 deletions
diff --git a/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx b/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
index 7491bcf3a292..d31488b716e9 100644
--- a/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
+++ b/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx
@@ -20,7 +20,6 @@
#include <sal/types.h>
#include <rtl/string.hxx>
#include <rtl_String_Const.h>
-#include <rtl_String_Utils.hxx>
#include <rtl/strbuf.hxx>
#include "cppunit/TestAssert.h"
@@ -15112,165 +15111,6 @@ namespace rtl_OStringBuffer
}
- void append_026()
- {
- ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
- float input = (float)atof("3.141592");
-
- sal_Int32 nLen = aStrBuf.getLength();
- aStrBuf.append( input );
-
- CPPUNIT_ASSERT_MESSAGE
- (
- "arrOUS[3] append 3.141592",
- checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
- );
-
- }
-
- void append_027()
- {
- ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
- float input = (float)atof("3.5025255");
-
- sal_Int32 nLen = aStrBuf.getLength();
- aStrBuf.append( input );
-
- CPPUNIT_ASSERT_MESSAGE
- (
- "arrOUS[3] append 3.5025255",
- checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
- );
-
- }
-
- void append_028()
- {
- ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
- float input = (float)atof("3.00390625");
-
- sal_Int32 nLen = aStrBuf.getLength();
- aStrBuf.append( input );
-
- CPPUNIT_ASSERT_MESSAGE
- (
- "arrOUS[3] append 3.0039062",
- checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
- );
-
- }
-
- void append_029()
- {
- ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
- float input = (float)atof("3.0");
-
- sal_Int32 nLen = aStrBuf.getLength();
- aStrBuf.append( input );
-
- CPPUNIT_ASSERT_MESSAGE
- (
- "arrOUS[4] append 3.0",
- checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
- );
-
- }
-
- void append_030()
- {
- ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
- float input = (float)atof("3.5");
-
- sal_Int32 nLen = aStrBuf.getLength();
- aStrBuf.append( input );
-
- CPPUNIT_ASSERT_MESSAGE
- (
- "arrOUS[4] append 3.5",
- checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
- );
-
- }
-
- void append_031()
- {
- ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
- float input = (float)atof("3.0625");
-
- sal_Int32 nLen = aStrBuf.getLength();
- aStrBuf.append( input );
-
- CPPUNIT_ASSERT_MESSAGE
- (
- "arrOUS[4] append 3.0625",
- checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
- );
-
- }
-
- void append_032()
- {
- ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
- float input = (float)atof("3.502525");
-
- sal_Int32 nLen = aStrBuf.getLength();
- aStrBuf.append( input );
-
- CPPUNIT_ASSERT_MESSAGE
- (
- "arrOUS[4] append 3.502525",
- checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
- );
-
- }
-
- void append_033()
- {
- ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
- float input = (float)atof("3.141592");
-
- sal_Int32 nLen = aStrBuf.getLength();
- aStrBuf.append( input );
-
- CPPUNIT_ASSERT_MESSAGE
- (
- "arrOUS[4] append 3.141592",
- checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
- );
-
- }
-
- void append_034()
- {
- ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
- float input = (float)atof("3.5025255");
-
- sal_Int32 nLen = aStrBuf.getLength();
- aStrBuf.append( input );
-
- CPPUNIT_ASSERT_MESSAGE
- (
- "arrOUS[4] append 3.5025255",
- checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
- );
-
- }
-
- void append_035()
- {
- ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
- float input = (float)atof("3.00390625");
-
- sal_Int32 nLen = aStrBuf.getLength();
- aStrBuf.append( input );
-
- CPPUNIT_ASSERT_MESSAGE
- (
- "arrOUS[4] append 3.0039062",
- checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
- );
-
- }
#ifdef WITH_CORE
void append_036()
{
@@ -15844,165 +15684,6 @@ namespace rtl_OStringBuffer
}
- void append_026()
- {
- ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
- float input = (float)atof("-3.141592");
-
- sal_Int32 nLen = aStrBuf.getLength();
- aStrBuf.append( input );
-
- CPPUNIT_ASSERT_MESSAGE
- (
- "arrOUS[3] append -3.141592",
- checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
- );
-
- }
-
- void append_027()
- {
- ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
- float input = (float)atof("-3.5025255");
-
- sal_Int32 nLen = aStrBuf.getLength();
- aStrBuf.append( input );
-
- CPPUNIT_ASSERT_MESSAGE
- (
- "arrOUS[3] append -3.5025255",
- checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
- );
-
- }
-
- void append_028()
- {
- ::rtl::OStringBuffer aStrBuf( *arrOUS[3] );
- float input = (float)atof("-3.00390625");
-
- sal_Int32 nLen = aStrBuf.getLength();
- aStrBuf.append( input );
-
- CPPUNIT_ASSERT_MESSAGE
- (
- "arrOUS[3] append -3.0039062",
- checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
- );
-
- }
-
- void append_029()
- {
- ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
- float input = (float)atof("-3.0");
-
- sal_Int32 nLen = aStrBuf.getLength();
- aStrBuf.append( input );
-
- CPPUNIT_ASSERT_MESSAGE
- (
- "arrOUS[4] append -3.0",
- checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
- );
-
- }
-
- void append_030()
- {
- ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
- float input = (float)atof("-3.5");
-
- sal_Int32 nLen = aStrBuf.getLength();
- aStrBuf.append( input );
-
- CPPUNIT_ASSERT_MESSAGE
- (
- "arrOUS[4] append -3.5",
- checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
- );
-
- }
-
- void append_031()
- {
- ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
- float input = (float)atof("-3.0625");
-
- sal_Int32 nLen = aStrBuf.getLength();
- aStrBuf.append( input );
-
- CPPUNIT_ASSERT_MESSAGE
- (
- "arrOUS[4] append -3.0625",
- checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
- );
-
- }
-
- void append_032()
- {
- ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
- float input = (float)atof("-3.502525");
-
- sal_Int32 nLen = aStrBuf.getLength();
- aStrBuf.append( input );
-
- CPPUNIT_ASSERT_MESSAGE
- (
- "arrOUS[4] append -3.502525",
- checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
- );
-
- }
-
- void append_033()
- {
- ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
- float input = (float)atof("-3.141592");
-
- sal_Int32 nLen = aStrBuf.getLength();
- aStrBuf.append( input );
-
- CPPUNIT_ASSERT_MESSAGE
- (
- "arrOUS[4] append -3.141592",
- checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
- );
-
- }
-
- void append_034()
- {
- ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
- float input = (float)atof("-3.5025255");
-
- sal_Int32 nLen = aStrBuf.getLength();
- aStrBuf.append( input );
-
- CPPUNIT_ASSERT_MESSAGE
- (
- "arrOUS[4] append -3.5025255",
- checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
- );
-
- }
-
- void append_035()
- {
- ::rtl::OStringBuffer aStrBuf( *arrOUS[4] );
- float input = (float)atof("-3.00390625");
-
- sal_Int32 nLen = aStrBuf.getLength();
- aStrBuf.append( input );
-
- CPPUNIT_ASSERT_MESSAGE
- (
- "arrOUS[4] append -3.0039062",
- checkIfStrBufContainAtPosTheFloat(aStrBuf, nLen, input)
- );
-
- }
#ifdef WITH_CORE
void append_036()
{
diff --git a/sal/qa/OStringBuffer/rtl_String_Const.h b/sal/qa/OStringBuffer/rtl_String_Const.h
index c0c647eb757b..7cc383701954 100644
--- a/sal/qa/OStringBuffer/rtl_String_Const.h
+++ b/sal/qa/OStringBuffer/rtl_String_Const.h
@@ -20,8 +20,6 @@
#ifndef _RTL_STRING_CONST_H_
#define _RTL_STRING_CONST_H_
-#include <rtl_String_Utils.hxx>
-
#include <limits.h>
#include <sal/types.h>
#include <rtl/textenc.h>
diff --git a/sal/qa/OStringBuffer/rtl_String_Utils.cxx b/sal/qa/OStringBuffer/rtl_String_Utils.cxx
deleted file mode 100644
index 04404660cf3b..000000000000
--- a/sal/qa/OStringBuffer/rtl_String_Utils.cxx
+++ /dev/null
@@ -1,169 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <math.h>
-#include <stdlib.h>
-
-#include <sal/types.h>
-
-#include <rtl/ustring.h>
-#include <rtl/string.hxx>
-#include <rtl_String_Utils_Const.h>
-
-using ::rtl::OString;
-sal_uInt32 AStringLen( const sal_Char *pAStr )
-{
- sal_uInt32 nStrLen = 0;
-
- if ( pAStr != NULL )
- {
- const sal_Char *pTempStr = pAStr;
-
- while( *pTempStr )
- {
- pTempStr++;
- } // while
-
- nStrLen = (sal_uInt32)( pTempStr - pAStr );
- } // if
-
- return nStrLen;
-} // AStringLen
-
-sal_Char* cpystr( sal_Char* dst, const sal_Char* src )
-{
- const sal_Char* psrc = src;
- sal_Char* pdst = dst;
-
- while( (*pdst++ = *psrc++) ) {}
-
- return dst;
-}
-
-sal_Char* cpynstr( sal_Char* dst, const sal_Char* src, sal_uInt32 cnt )
-{
-
- const sal_Char* psrc = src;
- sal_Char* pdst = dst;
- sal_uInt32 len = cnt;
- sal_uInt32 i;
-
- if ( len >= AStringLen(src) )
- {
- return( cpystr( dst, src ) );
- }
-
- // copy string by char
- for( i = 0; i < len; i++ )
- *pdst++ = *psrc++;
- *pdst = '\0';
-
- return ( dst );
-}
-
-bool cmpstr( const sal_Char* str1, const sal_Char* str2, sal_uInt32 len )
-{
- const sal_Char* pBuf1 = str1;
- const sal_Char* pBuf2 = str2;
- sal_uInt32 i = 0;
-
- while ( (*pBuf1 == *pBuf2) && i < len )
- {
- (pBuf1)++;
- (pBuf2)++;
- i++;
- }
- return( i == len );
-}
-
-bool cmpstr( const sal_Char* str1, const sal_Char* str2 )
-{
- const sal_Char* pBuf1 = str1;
- const sal_Char* pBuf2 = str2;
- bool res = true;
-
- while ( (*pBuf1 == *pBuf2) && *pBuf1 !='\0' && *pBuf2 != '\0')
- {
- (pBuf1)++;
- (pBuf2)++;
- }
- if (*pBuf1 == '\0' && *pBuf2 == '\0')
- res = true;
- else
- res = false;
- return (res);
-}
-
-bool cmpustr( const sal_Unicode* str1, const sal_Unicode* str2, sal_uInt32 len )
-{
- const sal_Unicode* pBuf1 = str1;
- const sal_Unicode* pBuf2 = str2;
- sal_uInt32 i = 0;
-
- while ( (*pBuf1 == *pBuf2) && i < len )
- {
- (pBuf1)++;
- (pBuf2)++;
- i++;
- }
- return( i == len );
-}
-
-bool cmpustr( const sal_Unicode* str1, const sal_Unicode* str2 )
-{
- const sal_Unicode* pBuf1 = str1;
- const sal_Unicode* pBuf2 = str2;
- bool res = true;
-
- while ( (*pBuf1 == *pBuf2) && *pBuf1 !='\0' && *pBuf2 != '\0')
- {
- (pBuf1)++;
- (pBuf2)++;
- }
- if (*pBuf1 == '\0' && *pBuf2 == '\0')
- res = true;
- else
- res = false;
- return (res);
-}
-
-sal_Char* createName( sal_Char* dst, const sal_Char* meth, sal_uInt32 cnt )
-{
- sal_Char* pdst = dst;
- sal_Char nstr[16];
- sal_Char* pstr = nstr;
- rtl_str_valueOfInt32( pstr, cnt, 10 );
-
- cpystr( pdst, meth );
- cpystr( pdst+ AStringLen(meth), "_" );
-
- if ( cnt < 100 )
- {
- cpystr(pdst + AStringLen(pdst), "0" );
- }
- if ( cnt < 10 )
- {
- cpystr(pdst + AStringLen(pdst), "0" );
- }
-
- cpystr( pdst + AStringLen(pdst), nstr );
- return( pdst );
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sal/qa/OStringBuffer/rtl_String_Utils.hxx b/sal/qa/OStringBuffer/rtl_String_Utils.hxx
deleted file mode 100644
index 3a674a8c64df..000000000000
--- a/sal/qa/OStringBuffer/rtl_String_Utils.hxx
+++ /dev/null
@@ -1,62 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _RTL_STRING_UTILS_HXX_
-#define _RTL_STRING_UTILS_HXX_
-
-#ifdef __cplusplus
-
-#include <math.h>
-#include <stdlib.h>
-
-#include <sal/types.h>
-#include <rtl/ustring.h>
-#include <rtl/string.hxx>
-
-sal_Char* cpystr( sal_Char* dst, const sal_Char* src );
-sal_Char* cpynstr( sal_Char* dst, const sal_Char* src, sal_uInt32 cnt );
-
-bool cmpstr( const sal_Char* str1, const sal_Char* str2, sal_uInt32 len );
-bool cmpstr( const sal_Char* str1, const sal_Char* str2 );
-bool cmpustr( const sal_Unicode* str1, const sal_Unicode* str2, sal_uInt32 len );
-bool cmpustr( const sal_Unicode* str1, const sal_Unicode* str2 );
-
-sal_Char* createName( sal_Char* dst, const sal_Char* src, sal_uInt32 cnt );
-
-sal_uInt32 AStringLen( const sal_Char *pAStr );
-
-bool AStringNIsValid( const sal_Char *pAStr,
- const sal_uInt32 nStrLen
- );
-
-sal_Int32 AStringToUStringCompare( const sal_Unicode *pUStr,
- const sal_Char *pAStr
- );
-
-sal_Int32 AStringToUStringNCompare( const sal_Unicode *pUStr,
- const sal_Char *pAStr,
- const sal_uInt32 nAStrCount
- );
-
-#endif /* __cplusplus */
-
-#endif /* _RTL_STRING_UTILS_HXX */
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */