diff options
Diffstat (limited to 'sal/qa/rtl_strings')
-rw-r--r-- | sal/qa/rtl_strings/rtl_OUString.cxx | 2 | ||||
-rw-r--r-- | sal/qa/rtl_strings/rtl_String_Const.h | 51 | ||||
-rw-r--r-- | sal/qa/rtl_strings/rtl_String_Utils.cxx | 20 | ||||
-rw-r--r-- | sal/qa/rtl_strings/rtl_String_Utils.hxx | 14 | ||||
-rw-r--r-- | sal/qa/rtl_strings/rtl_String_Utils_Const.h | 18 |
5 files changed, 0 insertions, 105 deletions
diff --git a/sal/qa/rtl_strings/rtl_OUString.cxx b/sal/qa/rtl_strings/rtl_OUString.cxx index 47930f2412d1..bb00fd3e5544 100644 --- a/sal/qa/rtl_strings/rtl_OUString.cxx +++ b/sal/qa/rtl_strings/rtl_OUString.cxx @@ -37,8 +37,6 @@ #include <rtl/ustring.h> #include <rtl/ustring.hxx> -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ #include <osl/thread.h> #include <rtl_String_Const.h> #include <rtl_String_Utils.hxx> diff --git a/sal/qa/rtl_strings/rtl_String_Const.h b/sal/qa/rtl_strings/rtl_String_Const.h index 1a65f8c9fe6a..37128465acb6 100644 --- a/sal/qa/rtl_strings/rtl_String_Const.h +++ b/sal/qa/rtl_strings/rtl_String_Const.h @@ -26,9 +26,6 @@ * ************************************************************************/ -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ - #ifndef _RTL_STRING_CONST_H_ #define _RTL_STRING_CONST_H_ @@ -36,14 +33,8 @@ #include <rtl_String_Utils.hxx> #endif -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ - #include <limits.h> -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ - #ifndef _SAL_TYPES_H_ #include <sal/types.h> #endif @@ -56,28 +47,16 @@ #include <rtl/ustring.h> #endif -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ - #ifdef __cplusplus extern "C" { #endif -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ - static const rtl_TextEncoding kEncodingRTLTextUSASCII = RTL_TEXTENCODING_ASCII_US; -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ - static const sal_uInt32 kConvertFlagsOUStringToOString = OUSTRING_TO_OSTRING_CVTFLAGS; static const sal_uInt32 kConvertFlagsOStringToOUString = OSTRING_TO_OUSTRING_CVTFLAGS; -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ - static const sal_Char *kTestStr1 = "Sun Microsystems"; static const sal_Char *kTestStr2 = "Sun Microsystems Java Technology"; static const sal_Char *kTestStr3 = "Sun microsystems"; @@ -137,8 +116,6 @@ static const sal_Char *kTestStr56 = "\50\3\5\7\11\13\15\17suns"; //static const sal_Char *kTestStr57 = "\50\3\5\7\11\13\15\17sun\77777"; //static const sal_Char *kTestStr58 = "\50\3\5\7\11\13\15\17sun\10000"; static const sal_Char *kTestStr1PlusStr6 = "Sun Microsystems" "Java Technology"; -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ static const sal_Int32 kTestStr1Len = 16; static const sal_Int32 kTestStr2Len = 32; @@ -200,8 +177,6 @@ static const sal_Int32 kTestStr57Len = 12; static const sal_Int32 kTestStr58Len = 12; static const sal_Int32 kTestStr1PlusStr6Len = kTestStr1Len + kTestStr6Len; -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ static sal_Unicode aUStr1[kTestStr1Len+1]; static sal_Unicode aUStr2[kTestStr2Len+1]; static sal_Unicode aUStr3[kTestStr3Len+1]; @@ -401,33 +376,18 @@ static const sal_Int32 uTestStr5Len = 16; static const sal_Int32 uTestStr9Len = 32; static const sal_Int32 uTestStr22Len = 32; - - -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ const sal_Unicode uTestStr31[]= {0x400,0x410,0x4DF}; const sal_Unicode uTestStr32[]= {0x9F9F,0xA000,0x8F80,0x9AD9}; - - -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ - static const sal_Int32 uTestStr31Len = 3; static const sal_Int32 uTestStr32Len = 4; -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ - static const sal_Int16 kRadixBinary = 2; static const sal_Int16 kRadixOctol = 8; static const sal_Int16 kRadixDecimal = 10; static const sal_Int16 kRadixHexdecimal = 16; static const sal_Int16 kRadixBase36 = 36; -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ - static const sal_Int8 kSInt8Max = SCHAR_MAX; static const sal_Int16 kUInt8Max = UCHAR_MAX; static const sal_Int16 kSInt16Max = SHRT_MAX; @@ -460,9 +420,6 @@ static const sal_Int64 kInt64MaxNums[kInt64MaxNumsCount] = kSInt64Max }; -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ - static const sal_Char *kSInt8MaxBinaryStr = "1111111"; static const sal_Char *kUInt8MaxBinaryStr = "11111111"; static const sal_Char *kSInt16MaxBinaryStr = "111111111111111"; @@ -514,9 +471,6 @@ static const sal_Char *kSInt32MaxBase36Str = "zik0zj"; static const sal_Char *kUInt32MaxBase36Str = "1z141z3"; static const sal_Char *kSInt64MaxBase36Str = "1y2p0ij32e8e7"; -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ - static const sal_Int32 kBinaryNumsCount = 16; static const sal_Char *kBinaryNumsStr[kBinaryNumsCount] = @@ -645,8 +599,6 @@ static const sal_Char *kBase36MaxNumsStr[kBase36MaxNumsCount] = kSInt64MaxBase36Str }; -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ static const sal_Int32 nDoubleCount=24; // static const sal_Char *inputDouble[nDoubleCount] = // { @@ -879,9 +831,6 @@ static const sal_Int32 kNonSInt16Max = SHRT_MIN; } #endif -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ - #endif /* _RTL_STRING_CONST_H_ */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sal/qa/rtl_strings/rtl_String_Utils.cxx b/sal/qa/rtl_strings/rtl_String_Utils.cxx index 7eef86564159..2b0d3c5ba3fa 100644 --- a/sal/qa/rtl_strings/rtl_String_Utils.cxx +++ b/sal/qa/rtl_strings/rtl_String_Utils.cxx @@ -29,15 +29,9 @@ // MARKER(update_precomp.py): autogen include statement, do not remove #include "precompiled_sal.hxx" -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ - #include <math.h> #include <stdlib.h> -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ - #ifndef _SAL_TYPES_H_ #include <sal/types.h> #endif @@ -50,16 +44,10 @@ #include <rtl/string.hxx> #endif -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ - #ifndef _RTL_STRING_UTILS_CONST_H_ #include <rtl_String_Utils_Const.h> #endif -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ - using namespace rtl; sal_uInt32 AStringLen( const sal_Char *pAStr ) @@ -255,11 +243,6 @@ sal_Bool AStringToDoubleCompare ( const sal_Char *pStr, return cmp; } // AStringToDoubleCompare -//------------------------------------------------------------------------ - - -//------------------------------------------------------------------------ - sal_uInt32 UStringLen( const sal_Unicode *pUStr ) { sal_uInt32 nUStrLen = 0; @@ -589,7 +572,4 @@ sal_Bool AStringToUStringNCopy( sal_Unicode *pDest, return bCopied; } // AStringToUStringNCopy -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sal/qa/rtl_strings/rtl_String_Utils.hxx b/sal/qa/rtl_strings/rtl_String_Utils.hxx index cf6817a7fb8b..7c059ae57f27 100644 --- a/sal/qa/rtl_strings/rtl_String_Utils.hxx +++ b/sal/qa/rtl_strings/rtl_String_Utils.hxx @@ -26,23 +26,14 @@ * #*************************************************************************/ -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ - #ifndef _RTL_STRING_UTILS_HXX_ #define _RTL_STRING_UTILS_HXX_ #ifdef __cplusplus -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ - #include <math.h> #include <stdlib.h> -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ - #ifndef _SAL_TYPES_H_ #include <sal/types.h> #endif @@ -55,8 +46,6 @@ #include <rtl/string.hxx> #endif -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ sal_Char* cpystr( sal_Char* dst, const sal_Char* src ); sal_Char* cpynstr( sal_Char* dst, const sal_Char* src, sal_uInt32 cnt ); @@ -123,9 +112,6 @@ sal_Bool AStringToUStringNCopy( sal_Unicode *pDest, const sal_uInt32 nSrcLen ); -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ - #endif /* __cplusplus */ #endif /* _RTL_STRING_UTILS_HXX */ diff --git a/sal/qa/rtl_strings/rtl_String_Utils_Const.h b/sal/qa/rtl_strings/rtl_String_Utils_Const.h index 36a35593deab..8af53eeab65d 100644 --- a/sal/qa/rtl_strings/rtl_String_Utils_Const.h +++ b/sal/qa/rtl_strings/rtl_String_Utils_Const.h @@ -26,30 +26,18 @@ * ************************************************************************/ -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ - #ifndef _RTL_STRING_UTILS_CONST_H_ #define _RTL_STRING_UTILS_CONST_H_ -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ - #ifndef _SAL_TYPES_H_ #include <sal/types.h> #endif -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ - #ifdef __cplusplus extern "C" { #endif -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ - static const sal_Int32 kErrCompareAStringToUString = -2; static const sal_Int32 kErrCompareNAStringToUString = -3; static const sal_Int32 kErrCompareAStringToRTLUString = -4; @@ -59,16 +47,10 @@ static const sal_Int32 kErrAStringToByteStringNCompare = -7; static const sal_Int32 kErrCompareAStringToString = -8; static const sal_Int32 kErrCompareNAStringToString = -9; -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ - #ifdef __cplusplus } #endif -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ - #endif /* _RTL_STRING_UTILS_CONST_H_ */ |