1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #include <sal/types.h>
21 #include <rtl/string.hxx>
22 #include <rtl_String_Const.h>
23 #include <rtl/strbuf.hxx>
25 #include "cppunit/TestAssert.h"
26 #include "cppunit/TestFixture.h"
27 #include "cppunit/extensions/HelperMacros.h"
28 #include "cppunit/plugin/TestPlugIn.h"
31 using ::rtl::OStringBuffer
;
33 // This file contains cppunit tests for the
34 // OString and OStringBuffer classes
36 // testing constructors
38 namespace rtl_OStringBuffer
40 class ctors
: public CppUnit::TestFixture
46 ::rtl::OStringBuffer aStrBuf
;
47 const sal_Char
* pStr
= aStrBuf
.getStr();
49 CPPUNIT_ASSERT_MESSAGE
51 "New OStringBuffer containing no characters",
53 *pStr
== '\0' && aStrBuf
.getCapacity() == 16
59 ::rtl::OString
aStrtmp( kTestStr1
);
60 ::rtl::OStringBuffer
aStrBuftmp( aStrtmp
);
61 ::rtl::OStringBuffer
aStrBuf( aStrBuftmp
);
62 // sal_Bool res = cmpstr(aStrBuftmp.getStr(),aStrBuf.getStr());
64 sal_Int32 nLenStrBuftmp
= aStrBuftmp
.getLength();
66 rtl::OString
sStr(aStrBuftmp
.getStr());
67 bool res
= aStrtmp
.equals( sStr
);
69 CPPUNIT_ASSERT_MESSAGE
71 "New OStringBuffer from another OStringBuffer",
72 aStrBuf
.getLength() == nLenStrBuftmp
&&
73 aStrBuf
.getCapacity() == aStrBuftmp
.getCapacity() &&
81 ::rtl::OStringBuffer
aStrBuf1(kTestStr2Len
);
82 ::rtl::OStringBuffer
aStrBuf2(0);
84 const sal_Char
* pStr1
= aStrBuf1
.getStr();
85 const sal_Char
* pStr2
= aStrBuf2
.getStr();
87 CPPUNIT_ASSERT_MESSAGE
89 "New OStringBuffer containing no characters and contain assigned capacity",
92 aStrBuf1
.getCapacity() == kTestStr2Len
&&
95 aStrBuf2
.getCapacity() == 0
102 // StringBuffer with created negative size are the
103 // same as empty StringBuffers
104 ::rtl::OStringBuffer
aStrBuf3(kNonSInt32Max
);
106 const sal_Char
* pStr
= aStrBuf3
.getStr();
108 CPPUNIT_ASSERT_MESSAGE
110 "New OStringBuffer containing no characters and contain assigned capacity",
111 aStrBuf3
.isEmpty() &&
113 aStrBuf3
.getCapacity() == kNonSInt32Max
119 ::rtl::OString
aStrtmp( kTestStr1
);
120 ::rtl::OStringBuffer
aStrBuf( aStrtmp
);
121 sal_Int32 leg
= aStrBuf
.getLength();
123 CPPUNIT_ASSERT_MESSAGE
125 "New OStringBuffer from OString",
126 aStrBuf
.getStr() == aStrtmp
&&
127 leg
== aStrtmp
.pData
->length
&&
128 aStrBuf
.getCapacity() == leg
+16
134 rtl::OStringBuffer b1
;
135 b1
.makeStringAndClear();
136 rtl::OStringBuffer
b2(b1
);
142 //pass in a const char*, get a temp
144 ::rtl::OStringBuffer
aStrBuf(kTestStr1
);
145 sal_Int32 leg
= aStrBuf
.getLength();
147 CPPUNIT_ASSERT_MESSAGE
149 "New OStringBuffer from const char*",
150 leg
== rtl_str_getLength(kTestStr1
) &&
151 aStrBuf
.getCapacity() == leg
+16
155 CPPUNIT_TEST_SUITE(ctors
);
156 CPPUNIT_TEST(ctor_001
);
157 CPPUNIT_TEST(ctor_002
);
158 CPPUNIT_TEST(ctor_003
);
159 CPPUNIT_TEST(ctor_003_1
);
160 CPPUNIT_TEST(ctor_004
);
161 CPPUNIT_TEST(ctor_005
);
162 CPPUNIT_TEST(ctor_006
);
163 CPPUNIT_TEST_SUITE_END();
166 class makeStringAndClear
: public CppUnit::TestFixture
171 void setUp() SAL_OVERRIDE
173 arrOUS
[0] = new OString( kTestStr1
);
174 arrOUS
[1] = new OString( kTestStr14
);
175 arrOUS
[2] = new OString( kTestStr25
);
176 arrOUS
[3] = new OString( kTestStr27
);
177 arrOUS
[4] = new OString( kTestStr29
);
178 arrOUS
[5] = new OString( "\0", 1 );
182 void tearDown() SAL_OVERRIDE
184 delete arrOUS
[0]; delete arrOUS
[1]; delete arrOUS
[2];
185 delete arrOUS
[3]; delete arrOUS
[4]; delete arrOUS
[5];
188 void makeStringAndClear_001()
190 ::rtl::OStringBuffer aStrBuf1
;
191 ::rtl::OString aStr1
;
193 bool lastRes
= (aStrBuf1
.makeStringAndClear() == aStr1
);
195 CPPUNIT_ASSERT_MESSAGE
197 "two empty strings(def. constructor)",
198 lastRes
&& ( aStrBuf1
.getCapacity() == 0 ) &&
199 ( *(aStrBuf1
.getStr()) == '\0' )
204 void makeStringAndClear_002()
206 ::rtl::OStringBuffer
aStrBuf2(26);
207 ::rtl::OString aStr2
;
209 bool lastRes
= (aStrBuf2
.makeStringAndClear() == aStr2
);
211 CPPUNIT_ASSERT_MESSAGE
213 "two empty strings(with a argu)",
214 lastRes
&& ( aStrBuf2
.getCapacity() == 0 ) &&
215 ( *(aStrBuf2
.getStr()) == '\0' )
220 void makeStringAndClear_003()
222 ::rtl::OStringBuffer
aStrBuf3(*arrOUS
[0]);
223 ::rtl::OString
aStr3(*arrOUS
[0]);
225 bool lastRes
= (aStrBuf3
.makeStringAndClear() == aStr3
);
227 CPPUNIT_ASSERT_MESSAGE
230 lastRes
&& ( aStrBuf3
.getCapacity() == 0 ) &&
231 ( *(aStrBuf3
.getStr()) == '\0' )
236 void makeStringAndClear_004()
238 ::rtl::OStringBuffer
aStrBuf4(*arrOUS
[1]);
239 ::rtl::OString
aStr4(*arrOUS
[1]);
241 bool lastRes
= (aStrBuf4
.makeStringAndClear() == aStr4
);
243 CPPUNIT_ASSERT_MESSAGE
245 "string with space ",
246 lastRes
&& ( aStrBuf4
.getCapacity() == 0 ) &&
247 ( *(aStrBuf4
.getStr()) == '\0' )
251 void makeStringAndClear_005()
253 ::rtl::OStringBuffer
aStrBuf5(*arrOUS
[2]);
254 ::rtl::OString
aStr5(*arrOUS
[2]);
256 bool lastRes
= (aStrBuf5
.makeStringAndClear() == aStr5
);
258 CPPUNIT_ASSERT_MESSAGE
261 lastRes
&& ( aStrBuf5
.getCapacity() == 0 ) &&
262 ( *(aStrBuf5
.getStr()) == '\0' )
266 void makeStringAndClear_006()
268 ::rtl::OStringBuffer
aStrBuf6(*arrOUS
[3]);
269 ::rtl::OString
aStr6(*arrOUS
[3]);
271 bool lastRes
= (aStrBuf6
.makeStringAndClear() == aStr6
);
273 CPPUNIT_ASSERT_MESSAGE
275 "string with a character",
276 lastRes
&& ( aStrBuf6
.getCapacity() == 0 ) &&
277 ( *(aStrBuf6
.getStr()) == '\0' )
281 void makeStringAndClear_007()
283 ::rtl::OStringBuffer
aStrBuf7(*arrOUS
[4]);
284 ::rtl::OString
aStr7(*arrOUS
[4]);
286 bool lastRes
= (aStrBuf7
.makeStringAndClear() == aStr7
);
288 CPPUNIT_ASSERT_MESSAGE
290 "string with special characters",
291 lastRes
&& ( aStrBuf7
.getCapacity() == 0 ) &&
292 ( *(aStrBuf7
.getStr()) == '\0' )
296 void makeStringAndClear_008()
298 ::rtl::OStringBuffer
aStrBuf8(*arrOUS
[5]);
299 ::rtl::OString
aStr8(*arrOUS
[5]);
301 bool lastRes
= (aStrBuf8
.makeStringAndClear() == aStr8
);
303 CPPUNIT_ASSERT_MESSAGE
305 "string only with (\0)",
306 lastRes
&& ( aStrBuf8
.getCapacity() == 0 ) &&
307 ( *(aStrBuf8
.getStr()) == '\0' )
311 CPPUNIT_TEST_SUITE(makeStringAndClear
);
312 CPPUNIT_TEST(makeStringAndClear_001
);
313 CPPUNIT_TEST(makeStringAndClear_002
);
314 CPPUNIT_TEST(makeStringAndClear_003
);
315 CPPUNIT_TEST(makeStringAndClear_004
);
316 CPPUNIT_TEST(makeStringAndClear_005
);
317 CPPUNIT_TEST(makeStringAndClear_006
);
318 CPPUNIT_TEST(makeStringAndClear_007
);
319 CPPUNIT_TEST(makeStringAndClear_008
);
320 CPPUNIT_TEST_SUITE_END();
323 class remove
: public CppUnit::TestFixture
326 void setUp() SAL_OVERRIDE
330 void tearDown() SAL_OVERRIDE
336 ::rtl::OStringBuffer
sb(
337 RTL_CONSTASCII_STRINGPARAM("Red Hat, Inc."));
340 CPPUNIT_ASSERT(sb
.toString().equalsL(
341 RTL_CONSTASCII_STRINGPARAM("Hat, Inc.")));
344 CPPUNIT_ASSERT(sb
.toString().equalsL(
345 RTL_CONSTASCII_STRINGPARAM("Hat")));
349 CPPUNIT_ASSERT(sb
.toString().isEmpty());
351 sb
.append(RTL_CONSTASCII_STRINGPARAM("Red Hat, Inc."));
355 CPPUNIT_ASSERT(sb
.toString().equalsL(
356 RTL_CONSTASCII_STRINGPARAM("Red")));
358 sb
.remove(0, sb
.getLength());
360 CPPUNIT_ASSERT(sb
.toString().isEmpty());
363 CPPUNIT_TEST_SUITE(remove
);
364 CPPUNIT_TEST(remove_001
);
365 CPPUNIT_TEST_SUITE_END();
368 class getLength
: public CppUnit::TestFixture
373 void setUp() SAL_OVERRIDE
375 arrOUS
[0] = new OString( kTestStr1
);
376 arrOUS
[1] = new OString( "1" );
377 arrOUS
[2] = new OString( );
378 arrOUS
[3] = new OString( "" );
379 arrOUS
[4] = new OString( "\0", 1 );
380 arrOUS
[5] = new OString( kTestStr2
);
384 void tearDown() SAL_OVERRIDE
386 delete arrOUS
[0]; delete arrOUS
[1]; delete arrOUS
[2];
387 delete arrOUS
[3]; delete arrOUS
[4]; delete arrOUS
[5];
392 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
393 sal_Int32 expVal
= kTestStr1Len
;
395 CPPUNIT_ASSERT_MESSAGE
397 "length of ascii string",
398 aStrBuf
.getLength() == expVal
405 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
406 sal_Int32 expVal
= 1;
408 CPPUNIT_ASSERT_MESSAGE
410 "length of ascci string of size 1",
411 aStrBuf
.getLength() == expVal
417 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
418 sal_Int32 expVal
= 0;
420 CPPUNIT_ASSERT_MESSAGE
422 "length of empty string",
423 aStrBuf
.getLength() == expVal
429 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
430 sal_Int32 expVal
= 0;
432 CPPUNIT_ASSERT_MESSAGE
434 "length of empty string (empty ascii string arg)",
435 aStrBuf
.getLength() == expVal
441 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
442 sal_Int32 expVal
= 1;
444 CPPUNIT_ASSERT_MESSAGE
446 "length of string with \\0 embedded",
447 aStrBuf
.getLength() == expVal
453 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[5] );
454 sal_Int32 expVal
= kTestStr2Len
;
456 CPPUNIT_ASSERT_MESSAGE
458 "length(>16) of ascii string",
459 aStrBuf
.getLength() == expVal
465 ::rtl::OStringBuffer aStrBuf
;
466 sal_Int32 expVal
= 0;
468 CPPUNIT_ASSERT_MESSAGE
470 "length of empty string (default constructor)",
471 aStrBuf
.getLength()== expVal
477 ::rtl::OStringBuffer
aStrBuf( 26 );
478 sal_Int32 expVal
= 0;
480 CPPUNIT_ASSERT_MESSAGE
482 "length of empty string (with capacity)",
483 aStrBuf
.getLength()== expVal
487 CPPUNIT_TEST_SUITE( getLength
);
488 CPPUNIT_TEST( getLength_001
);
489 CPPUNIT_TEST( getLength_002
);
490 CPPUNIT_TEST( getLength_003
);
491 CPPUNIT_TEST( getLength_004
);
492 CPPUNIT_TEST( getLength_005
);
493 CPPUNIT_TEST( getLength_006
);
494 CPPUNIT_TEST( getLength_007
);
495 CPPUNIT_TEST( getLength_008
);
496 CPPUNIT_TEST_SUITE_END();
499 class getCapacity
: public CppUnit::TestFixture
504 void setUp() SAL_OVERRIDE
506 arrOUS
[0] = new OString( kTestStr1
);
507 arrOUS
[1] = new OString( "1" );
508 arrOUS
[2] = new OString( );
509 arrOUS
[3] = new OString( "" );
510 arrOUS
[4] = new OString( "\0", 1 );
511 arrOUS
[5] = new OString( kTestStr2
);
515 void tearDown() SAL_OVERRIDE
517 delete arrOUS
[0]; delete arrOUS
[1]; delete arrOUS
[2];
518 delete arrOUS
[3]; delete arrOUS
[4]; delete arrOUS
[5];
521 void getCapacity_001()
523 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
524 sal_Int32 expVal
= kTestStr1Len
+16;
526 CPPUNIT_ASSERT_MESSAGE
528 "capacity of ascii string",
529 aStrBuf
.getCapacity()== expVal
534 void getCapacity_002()
536 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
537 sal_Int32 expVal
= 1+16;
539 CPPUNIT_ASSERT_MESSAGE
541 "capacity of ascci string of size 1",
542 aStrBuf
.getCapacity() == expVal
546 void getCapacity_003()
548 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
549 sal_Int32 expVal
= 0+16;
551 CPPUNIT_ASSERT_MESSAGE
553 "capacity of empty string",
554 aStrBuf
.getCapacity() == expVal
558 void getCapacity_004()
560 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
561 sal_Int32 expVal
= 0+16;
563 CPPUNIT_ASSERT_MESSAGE
565 "capacity of empty string (empty ascii string arg)",
566 aStrBuf
.getCapacity()== expVal
570 void getCapacity_005()
572 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
573 sal_Int32 expVal
= 1+16;
575 CPPUNIT_ASSERT_MESSAGE
577 "capacity of string with \\0 embedded",
578 aStrBuf
.getCapacity() == expVal
582 void getCapacity_006()
584 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[5] );
585 sal_Int32 expVal
= kTestStr2Len
+16;
587 CPPUNIT_ASSERT_MESSAGE
589 "capacity(>16) of ascii string",
590 aStrBuf
.getCapacity() == expVal
594 void getCapacity_007()
596 ::rtl::OStringBuffer aStrBuf
;
597 sal_Int32 expVal
= 16;
599 CPPUNIT_ASSERT_MESSAGE
601 "capacity of empty string (default constructor)",
602 aStrBuf
.getCapacity() == expVal
606 void getCapacity_009()
608 ::rtl::OStringBuffer
aStrBuf( kNonSInt32Max
);
609 sal_Int32 expVal
= kNonSInt32Max
;
611 CPPUNIT_ASSERT_MESSAGE
613 "capacity of empty string (with capacity -2147483648)",
614 aStrBuf
.getCapacity() == expVal
618 void getCapacity_010()
620 ::rtl::OStringBuffer
aStrBuf( 16 );
621 sal_Int32 expVal
= 16;
623 CPPUNIT_ASSERT_MESSAGE
625 "capacity of empty string (with capacity 16)",
626 aStrBuf
.getCapacity() == expVal
630 void getCapacity_011()
632 ::rtl::OStringBuffer
aStrBuf( 6 );
633 sal_Int32 expVal
= 6;
635 CPPUNIT_ASSERT_MESSAGE
637 "capacity of empty string (with capacity 6)",
638 aStrBuf
.getCapacity() == expVal
642 void getCapacity_012()
644 ::rtl::OStringBuffer
aStrBuf( 0 );
645 sal_Int32 expVal
= 0;
647 CPPUNIT_ASSERT_MESSAGE
649 "capacity of empty string (with capacity 0)",
650 aStrBuf
.getCapacity() == expVal
654 void getCapacity_013()
656 ::rtl::OStringBuffer
aStrBuf( -2 );
657 sal_Int32 expVal
= -2;
659 CPPUNIT_ASSERT_MESSAGE
661 "capacity of empty string (with capacity -2)",
662 aStrBuf
.getCapacity() == expVal
666 CPPUNIT_TEST_SUITE( getCapacity
);
667 CPPUNIT_TEST( getCapacity_001
);
668 CPPUNIT_TEST( getCapacity_002
);
669 CPPUNIT_TEST( getCapacity_003
);
670 CPPUNIT_TEST( getCapacity_004
);
671 CPPUNIT_TEST( getCapacity_005
);
672 CPPUNIT_TEST( getCapacity_006
);
673 CPPUNIT_TEST( getCapacity_007
);
674 CPPUNIT_TEST( getCapacity_009
);
675 CPPUNIT_TEST( getCapacity_010
);
676 CPPUNIT_TEST( getCapacity_011
);
677 CPPUNIT_TEST( getCapacity_012
);
678 CPPUNIT_TEST( getCapacity_013
);
679 CPPUNIT_TEST_SUITE_END();
682 class ensureCapacity
: public CppUnit::TestFixture
684 void ensureCapacity_001()
686 sal_Int32 expVal
= 16;
687 ::rtl::OStringBuffer aStrBuf
;
690 aStrBuf
.ensureCapacity( input
);
692 CPPUNIT_ASSERT_MESSAGE
694 "capacity equal to 16, minimum is 5",
695 aStrBuf
.getCapacity() == expVal
700 void ensureCapacity_002()
702 sal_Int32 expVal
= 16;
703 ::rtl::OStringBuffer aStrBuf
;
704 sal_Int32 input
= -5;
706 aStrBuf
.ensureCapacity( input
);
708 CPPUNIT_ASSERT_MESSAGE
710 "capacity equal to 16, minimum is -5",
711 aStrBuf
.getCapacity() == expVal
716 void ensureCapacity_003()
718 sal_Int32 expVal
= 16;
719 ::rtl::OStringBuffer aStrBuf
;
722 aStrBuf
.ensureCapacity( input
);
724 CPPUNIT_ASSERT_MESSAGE
726 "capacity equal to 16, minimum is 0",
727 aStrBuf
.getCapacity() == expVal
732 void ensureCapacity_004() //the testcase is based on comments
734 sal_Int32 expVal
= 20;
735 ::rtl::OStringBuffer aStrBuf
;
736 sal_Int32 input
= 20;
738 aStrBuf
.ensureCapacity( input
);
740 CPPUNIT_ASSERT_MESSAGE
742 "capacity equal to 16, minimum is 20",
743 aStrBuf
.getCapacity() == expVal
748 void ensureCapacity_005()
750 sal_Int32 expVal
= 50;
751 ::rtl::OStringBuffer aStrBuf
;
752 sal_Int32 input
= 50;
754 aStrBuf
.ensureCapacity( input
);
756 CPPUNIT_ASSERT_MESSAGE
758 "capacity equal to 16, minimum is 50",
759 aStrBuf
.getCapacity() == expVal
764 void ensureCapacity_006()
766 sal_Int32 expVal
= 20;
767 ::rtl::OStringBuffer
aStrBuf( 6 );
768 sal_Int32 input
= 20;
770 aStrBuf
.ensureCapacity( input
);
772 CPPUNIT_ASSERT_MESSAGE
774 "capacity equal to 6, minimum is 20",
775 aStrBuf
.getCapacity() == expVal
780 void ensureCapacity_007()
782 sal_Int32 expVal
= 6;
783 ::rtl::OStringBuffer
aStrBuf( 6 );
786 aStrBuf
.ensureCapacity( input
);
788 CPPUNIT_ASSERT_MESSAGE
790 "capacity equal to 6, minimum is 2",
791 aStrBuf
.getCapacity() == expVal
796 void ensureCapacity_008()
798 sal_Int32 expVal
= 6;
799 ::rtl::OStringBuffer
aStrBuf( 6 );
800 sal_Int32 input
= -6;
802 aStrBuf
.ensureCapacity( input
);
804 CPPUNIT_ASSERT_MESSAGE
806 "capacity equal to 6, minimum is -6",
807 aStrBuf
.getCapacity() == expVal
812 void ensureCapacity_009() //the testcase is based on comments
814 sal_Int32 expVal
= 10;
815 ::rtl::OStringBuffer
aStrBuf( 6 );
816 sal_Int32 input
= 10;
818 aStrBuf
.ensureCapacity( input
);
820 CPPUNIT_ASSERT_MESSAGE
822 "capacity equal to 6, minimum is -6",
823 aStrBuf
.getCapacity() == expVal
828 void ensureCapacity_010()
830 sal_Int32 expVal
= 6;
831 ::rtl::OStringBuffer
aStrBuf( 0 );
834 aStrBuf
.ensureCapacity( input
);
836 CPPUNIT_ASSERT_MESSAGE
838 "capacity equal to 0, minimum is 6",
839 aStrBuf
.getCapacity() == expVal
844 void ensureCapacity_011() //the testcase is based on comments
846 sal_Int32 expVal
= 2; // capacity is x = (str->length + 1) * 2; minimum < x ? x : minimum
847 ::rtl::OStringBuffer
aStrBuf( 0 );
850 aStrBuf
.ensureCapacity( input
);
852 CPPUNIT_ASSERT_MESSAGE
854 "capacity equal to 0, minimum is 1",
855 aStrBuf
.getCapacity() == expVal
860 void ensureCapacity_012()
862 sal_Int32 expVal
= 0;
863 ::rtl::OStringBuffer
aStrBuf( 0 );
864 sal_Int32 input
= -1;
866 aStrBuf
.ensureCapacity( input
);
868 CPPUNIT_ASSERT_MESSAGE
870 "capacity equal to 0, minimum is -1",
871 aStrBuf
.getCapacity() == expVal
876 void ensureCapacity_018()
878 sal_Int32 expVal
= 65535;
879 ::rtl::OStringBuffer
aStrBuf( kNonSInt32Max
);
880 sal_Int32 input
= 65535;
882 aStrBuf
.ensureCapacity( input
);
884 CPPUNIT_ASSERT_MESSAGE
886 "capacity equal to -2147483648, minimum is 65535",
887 aStrBuf
.getCapacity() == expVal
892 void ensureCapacity_020()
894 sal_Int32 expVal
= 2;
895 ::rtl::OStringBuffer
aStrBuf( kNonSInt32Max
);
896 sal_Int32 input
= -1;
898 aStrBuf
.ensureCapacity( input
);
900 CPPUNIT_ASSERT_MESSAGE
902 "capacity equal to -2147483648, minimum is -1",
903 aStrBuf
.getCapacity() == expVal
908 void ensureCapacity_021()
910 sal_Int32 expVal
= 2;
911 ::rtl::OStringBuffer
aStrBuf( kNonSInt32Max
);
914 aStrBuf
.ensureCapacity( input
);
916 CPPUNIT_ASSERT_MESSAGE
918 "capacity equal to -2147483648, minimum is 0",
919 aStrBuf
.getCapacity() == expVal
924 void ensureCapacity_022()
926 sal_Int32 expVal
= kNonSInt32Max
;
927 ::rtl::OStringBuffer
aStrBuf( kNonSInt32Max
);
928 sal_Int32 input
= kNonSInt32Max
;
930 aStrBuf
.ensureCapacity( input
);
932 CPPUNIT_ASSERT_MESSAGE
934 "capacity equal to -2147483648, minimum is -2147483648",
935 aStrBuf
.getCapacity() == expVal
940 CPPUNIT_TEST_SUITE( ensureCapacity
);
941 CPPUNIT_TEST( ensureCapacity_001
);
942 CPPUNIT_TEST( ensureCapacity_002
);
943 CPPUNIT_TEST( ensureCapacity_003
);
944 CPPUNIT_TEST( ensureCapacity_004
);
945 CPPUNIT_TEST( ensureCapacity_005
);
946 CPPUNIT_TEST( ensureCapacity_006
);
947 CPPUNIT_TEST( ensureCapacity_007
);
948 CPPUNIT_TEST( ensureCapacity_008
);
949 CPPUNIT_TEST( ensureCapacity_009
);
950 CPPUNIT_TEST( ensureCapacity_010
);
951 CPPUNIT_TEST( ensureCapacity_011
);
952 CPPUNIT_TEST( ensureCapacity_012
);
953 CPPUNIT_TEST( ensureCapacity_018
);
954 CPPUNIT_TEST( ensureCapacity_020
);
955 CPPUNIT_TEST( ensureCapacity_021
);
956 CPPUNIT_TEST( ensureCapacity_022
);
957 CPPUNIT_TEST_SUITE_END();
960 class setLength
: public CppUnit::TestFixture
965 void setUp() SAL_OVERRIDE
967 arrOUS
[0] = new OString( kTestStr1
);
968 arrOUS
[1] = new OString( "1" );
969 arrOUS
[2] = new OString( );
970 arrOUS
[3] = new OString( "" );
971 arrOUS
[4] = new OString( "\0", 1 );
972 arrOUS
[5] = new OString( kTestStr2
);
976 void tearDown() SAL_OVERRIDE
978 delete arrOUS
[0]; delete arrOUS
[1]; delete arrOUS
[2];
979 delete arrOUS
[3]; delete arrOUS
[4]; delete arrOUS
[5];
984 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
985 sal_Int32 expVal1
= 50;
986 ::rtl::OString
expVal2( kTestStr1
);
987 sal_Int32 expVal3
= 50;
988 sal_Int32 input
= 50;
990 aStrBuf
.setLength( input
);
992 CPPUNIT_ASSERT_MESSAGE
994 "newLength more than the capacity of OStringBuffer(kTestStr1)",
995 aStrBuf
.getStr() == expVal2
&&
996 aStrBuf
.getLength() == expVal1
&&
997 aStrBuf
.getCapacity() == expVal3
1002 void setLength_002()
1004 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
1005 sal_Int32 expVal1
= kTestStr13Len
;
1006 ::rtl::OString
expVal2( kTestStr1
);
1007 sal_Int32 expVal3
= 32;
1008 sal_Int32 input
= kTestStr13Len
;
1010 aStrBuf
.setLength( input
);
1012 CPPUNIT_ASSERT_MESSAGE
1014 "newLength more than the length of OStringBuffer(kTestStr1)",
1015 aStrBuf
.getStr() == expVal2
&&
1016 aStrBuf
.getLength() == expVal1
&&
1017 aStrBuf
.getCapacity() == expVal3
1022 void setLength_003()
1024 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
1025 sal_Int32 expVal1
= kTestStr1Len
;
1026 ::rtl::OString
expVal2( kTestStr1
);
1027 sal_Int32 expVal3
= 32;
1028 sal_Int32 input
= kTestStr1Len
;
1030 aStrBuf
.setLength( input
);
1032 CPPUNIT_ASSERT_MESSAGE
1034 "newLength equal to the length of OStringBuffer(kTestStr1)",
1035 aStrBuf
.getStr() == expVal2
&&
1036 aStrBuf
.getLength() == expVal1
&&
1037 aStrBuf
.getCapacity() == expVal3
1042 void setLength_004()
1044 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
1045 sal_Int32 expVal1
= kTestStr7Len
;
1046 ::rtl::OString
expVal2( kTestStr7
);
1047 sal_Int32 expVal3
= 32;
1048 sal_Int32 input
= kTestStr7Len
;
1050 aStrBuf
.setLength( input
);
1052 CPPUNIT_ASSERT_MESSAGE
1054 "newLength less than the length of OStringBuffer(kTestStr1)",
1055 aStrBuf
.getStr() == expVal2
&&
1056 aStrBuf
.getLength() == expVal1
&&
1057 aStrBuf
.getCapacity() == expVal3
1062 void setLength_005()
1064 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
1065 sal_Int32 expVal1
= 0;
1066 ::rtl::OString expVal2
;
1067 sal_Int32 expVal3
= 32;
1068 sal_Int32 input
= 0;
1070 aStrBuf
.setLength( input
);
1072 CPPUNIT_ASSERT_MESSAGE
1074 "newLength equal to 0",
1075 aStrBuf
.getStr() == expVal2
&&
1076 aStrBuf
.getLength() == expVal1
&&
1077 aStrBuf
.getCapacity() == expVal3
1082 void setLength_006()
1084 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
1085 sal_Int32 expVal1
= 25;
1086 ::rtl::OString
expVal2( *arrOUS
[1] );
1087 sal_Int32 expVal3
= 25;
1088 sal_Int32 input
= 25;
1090 aStrBuf
.setLength( input
);
1092 CPPUNIT_ASSERT_MESSAGE
1094 "newLength more than the capacity of OStringBuffer(1)",
1095 aStrBuf
.getStr() == expVal2
&&
1096 aStrBuf
.getLength() == expVal1
&&
1097 aStrBuf
.getCapacity() == expVal3
1102 void setLength_007()
1104 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
1105 sal_Int32 expVal1
= kTestStr27Len
;
1106 ::rtl::OString
expVal2( *arrOUS
[1] );
1107 sal_Int32 expVal3
= 17;
1108 sal_Int32 input
= kTestStr27Len
;
1110 aStrBuf
.setLength( input
);
1112 CPPUNIT_ASSERT_MESSAGE
1114 "newLength equal to the length of OStringBuffer(1)",
1115 aStrBuf
.getStr() == expVal2
&&
1116 aStrBuf
.getLength() == expVal1
&&
1117 aStrBuf
.getCapacity() == expVal3
1122 void setLength_008()
1124 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
1125 sal_Int32 expVal1
= 0;
1126 ::rtl::OString expVal2
;
1127 sal_Int32 expVal3
= 17;
1128 sal_Int32 input
= 0;
1130 aStrBuf
.setLength( input
);
1132 CPPUNIT_ASSERT_MESSAGE
1134 "newLength less than the length of OUStringBuffer(1)",
1135 aStrBuf
.getStr() == expVal2
&&
1136 aStrBuf
.getLength() == expVal1
&&
1137 aStrBuf
.getCapacity() == expVal3
1142 void setLength_009()
1144 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
1145 sal_Int32 expVal1
= 20;
1146 ::rtl::OString expVal2
;
1147 sal_Int32 expVal3
= 20;
1148 sal_Int32 input
= 20;
1150 aStrBuf
.setLength( input
);
1152 CPPUNIT_ASSERT_MESSAGE
1154 "newLength more than the capacity of OStringBuffer()",
1155 aStrBuf
.getStr() == expVal2
&&
1156 aStrBuf
.getLength() == expVal1
&&
1157 aStrBuf
.getCapacity() == expVal3
1162 void setLength_010()
1164 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
1165 sal_Int32 expVal1
= 3;
1166 ::rtl::OString expVal2
;
1167 sal_Int32 expVal3
= 16;
1168 sal_Int32 input
= 3;
1170 aStrBuf
.setLength( input
);
1172 CPPUNIT_ASSERT_MESSAGE
1174 "newLength more than the length of OStringBuffer()",
1175 aStrBuf
.getStr() == expVal2
&&
1176 aStrBuf
.getLength() == expVal1
&&
1177 aStrBuf
.getCapacity() == expVal3
1182 void setLength_011()
1184 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
1185 sal_Int32 expVal1
= 0;
1186 ::rtl::OString expVal2
;
1187 sal_Int32 expVal3
= 16;
1188 sal_Int32 input
= 0;
1190 aStrBuf
.setLength( input
);
1192 CPPUNIT_ASSERT_MESSAGE
1194 "newLength more than the length of OStringBuffer()",
1195 aStrBuf
.getStr() == expVal2
&&
1196 aStrBuf
.getLength() == expVal1
&&
1197 aStrBuf
.getCapacity() == expVal3
1202 void setLength_012()
1204 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
1205 sal_Int32 expVal1
= 20;
1206 ::rtl::OString expVal2
;
1207 sal_Int32 expVal3
= 20;
1208 sal_Int32 input
= 20;
1210 aStrBuf
.setLength( input
);
1212 CPPUNIT_ASSERT_MESSAGE
1214 "newLength more than the capacity of OStringBuffer("")",
1215 aStrBuf
.getStr() == expVal2
&&
1216 aStrBuf
.getLength() == expVal1
&&
1217 aStrBuf
.getCapacity() == expVal3
1222 void setLength_013()
1224 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
1225 sal_Int32 expVal1
= 5;
1226 ::rtl::OString expVal2
;
1227 sal_Int32 expVal3
= 16;
1228 sal_Int32 input
= 5;
1230 aStrBuf
.setLength( input
);
1232 CPPUNIT_ASSERT_MESSAGE
1234 "newLength more than the length of OStringBuffer("")",
1235 aStrBuf
.getStr() == expVal2
&&
1236 aStrBuf
.getLength() == expVal1
&&
1237 aStrBuf
.getCapacity() == expVal3
1242 void setLength_014()
1244 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
1245 sal_Int32 expVal1
= 0;
1246 ::rtl::OString expVal2
;
1247 sal_Int32 expVal3
= 16;
1248 sal_Int32 input
= 0;
1250 aStrBuf
.setLength( input
);
1252 CPPUNIT_ASSERT_MESSAGE
1254 "newLength less than the length of OStringBuffer("")",
1255 aStrBuf
.getStr() == expVal2
&&
1256 aStrBuf
.getLength() == expVal1
&&
1257 aStrBuf
.getCapacity() == expVal3
1262 void setLength_015()
1264 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
1265 sal_Int32 expVal1
= 20;
1266 ::rtl::OString expVal2
;
1267 sal_Int32 expVal3
= 20;
1268 sal_Int32 input
= 20;
1270 aStrBuf
.setLength( input
);
1272 CPPUNIT_ASSERT_MESSAGE
1274 "newLength more than the length of OStringBuffer(\0)",
1275 aStrBuf
.getStr() == expVal2
&&
1276 aStrBuf
.getLength() == expVal1
&&
1277 aStrBuf
.getCapacity() == expVal3
1282 void setLength_016()
1284 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
1285 sal_Int32 expVal1
= 5;
1286 ::rtl::OString expVal2
;
1287 sal_Int32 expVal3
= 17;
1288 sal_Int32 input
= 5;
1290 aStrBuf
.setLength( input
);
1292 CPPUNIT_ASSERT_MESSAGE
1294 "newLength more than the length of OStringBuffer(\0)",
1295 aStrBuf
.getStr() == expVal2
&&
1296 aStrBuf
.getLength() == expVal1
&&
1297 aStrBuf
.getCapacity() == expVal3
1302 void setLength_017()
1304 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
1305 sal_Int32 expVal1
= 0;
1306 ::rtl::OString expVal2
;
1307 sal_Int32 expVal3
= 17;
1308 sal_Int32 input
= 0;
1310 aStrBuf
.setLength( input
);
1312 CPPUNIT_ASSERT_MESSAGE
1314 "newLength less than the length of OStringBuffer(\0)",
1315 aStrBuf
.getStr() == expVal2
&&
1316 aStrBuf
.getLength() == expVal1
&&
1317 aStrBuf
.getCapacity() == expVal3
1322 void setLength_018()
1324 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[5] );
1325 sal_Int32 expVal1
= 50;
1326 ::rtl::OString
expVal2( kTestStr2
);
1327 sal_Int32 expVal3
= 66;
1328 sal_Int32 input
= 50;
1330 aStrBuf
.setLength( input
);
1332 CPPUNIT_ASSERT_MESSAGE
1334 "newLength more than the capacity of OStringBuffer(kTestStr2)",
1335 aStrBuf
.getStr() == expVal2
&&
1336 aStrBuf
.getLength() == expVal1
&&
1337 aStrBuf
.getCapacity() == expVal3
1342 void setLength_019()
1344 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[5] );
1345 sal_Int32 expVal1
= 40;
1346 ::rtl::OString
expVal2(kTestStr2
);
1347 sal_Int32 expVal3
= 48;
1348 sal_Int32 input
= 40;
1350 aStrBuf
.setLength( input
);
1352 CPPUNIT_ASSERT_MESSAGE
1354 "newLength more than the length of OStringBuffer(kTestStr2)",
1355 aStrBuf
.getStr() == expVal2
&&
1356 aStrBuf
.getLength() == expVal1
&&
1357 aStrBuf
.getCapacity() == expVal3
1362 void setLength_020()
1364 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[5] );
1365 sal_Int32 expVal1
= kTestStr2Len
;
1366 ::rtl::OString
expVal2(kTestStr2
);
1367 sal_Int32 expVal3
= 48;
1368 sal_Int32 input
= kTestStr2Len
;
1370 aStrBuf
.setLength( input
);
1372 CPPUNIT_ASSERT_MESSAGE
1374 "newLength equal to the length of OUStringBuffer(kTestStr2)",
1375 aStrBuf
.getStr() == expVal2
&&
1376 aStrBuf
.getLength() == expVal1
&&
1377 aStrBuf
.getCapacity() == expVal3
1382 void setLength_021()
1384 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[5] );
1385 sal_Int32 expVal1
= kTestStr7Len
;
1386 ::rtl::OString
expVal2(kTestStr7
);
1387 sal_Int32 expVal3
= 48;
1388 sal_Int32 input
= kTestStr7Len
;
1390 aStrBuf
.setLength( input
);
1392 CPPUNIT_ASSERT_MESSAGE
1394 "newLength less than the length of OUStringBuffer(TestStr2)",
1395 aStrBuf
.getStr() == expVal2
&&
1396 aStrBuf
.getLength() == expVal1
&&
1397 aStrBuf
.getCapacity() == expVal3
1402 void setLength_022()
1404 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[5] );
1405 sal_Int32 expVal1
= 0;
1406 ::rtl::OString expVal2
;
1407 sal_Int32 expVal3
= 48;
1408 sal_Int32 input
= 0;
1410 aStrBuf
.setLength( input
);
1412 CPPUNIT_ASSERT_MESSAGE
1414 "newLength equal to 0",
1415 aStrBuf
.getStr() == expVal2
&&
1416 aStrBuf
.getLength() == expVal1
&&
1417 aStrBuf
.getCapacity() == expVal3
1422 CPPUNIT_TEST_SUITE( setLength
);
1423 CPPUNIT_TEST( setLength_001
);
1424 CPPUNIT_TEST( setLength_002
);
1425 CPPUNIT_TEST( setLength_003
);
1426 CPPUNIT_TEST( setLength_004
);
1427 CPPUNIT_TEST( setLength_005
);
1428 CPPUNIT_TEST( setLength_006
);
1429 CPPUNIT_TEST( setLength_007
);
1430 CPPUNIT_TEST( setLength_008
);
1431 CPPUNIT_TEST( setLength_009
);
1432 CPPUNIT_TEST( setLength_010
);
1433 CPPUNIT_TEST( setLength_011
);
1434 CPPUNIT_TEST( setLength_012
);
1435 CPPUNIT_TEST( setLength_013
);
1436 CPPUNIT_TEST( setLength_014
);
1437 CPPUNIT_TEST( setLength_015
);
1438 CPPUNIT_TEST( setLength_016
);
1439 CPPUNIT_TEST( setLength_017
);
1440 CPPUNIT_TEST( setLength_018
);
1441 CPPUNIT_TEST( setLength_019
);
1442 CPPUNIT_TEST( setLength_020
);
1443 CPPUNIT_TEST( setLength_021
);
1444 CPPUNIT_TEST( setLength_022
);
1445 CPPUNIT_TEST_SUITE_END();
1448 class csuc
: public CppUnit::TestFixture
1452 const sal_Char
* expVal
= kTestStr1
;
1453 ::rtl::OStringBuffer
aStrBuf( kTestStr1
);
1454 sal_Int32 cmpLen
= kTestStr1Len
;
1456 // LLA: wrong access! const sal_Char* pstr = *&aStrBuf;
1457 const sal_Char
* pstr
= aStrBuf
.getStr();
1458 int nEqual
= strncmp(pstr
, expVal
, cmpLen
);
1460 CPPUNIT_ASSERT_MESSAGE
1462 "test normal string",
1463 /* cmpstr( pstr, expVal, cmpLen ) */
1471 ::rtl::OStringBuffer aStrBuf
;
1473 // LLA: wrong access! const sal_Char* pstr = *&aStrBuf;
1474 const sal_Char
* pstr
= aStrBuf
.getStr();
1475 sal_Int32 nLen
= strlen(pstr
);
1477 CPPUNIT_ASSERT_MESSAGE
1479 "test empty string",
1480 // cmpstr( pstr, &expVal, cmpLen )
1486 CPPUNIT_TEST_SUITE( csuc
);
1487 CPPUNIT_TEST( csuc_001
);
1488 CPPUNIT_TEST( csuc_002
);
1489 CPPUNIT_TEST_SUITE_END();
1492 class getStr
: public CppUnit::TestFixture
1496 const sal_Char
* expVal
= kTestStr1
;
1497 ::rtl::OStringBuffer
aStrBuf( kTestStr1
);
1498 sal_Int32 cmpLen
= kTestStr1Len
;
1500 const sal_Char
* pstr
= aStrBuf
.getStr();
1501 int nEqual
= strncmp(pstr
, expVal
, cmpLen
);
1503 CPPUNIT_ASSERT_MESSAGE
1505 "test normal string",
1513 ::rtl::OStringBuffer aStrBuf
;
1514 const sal_Char
* pstr
= aStrBuf
.getStr();
1515 CPPUNIT_ASSERT_MESSAGE
1517 "test empty string",
1524 CPPUNIT_TEST_SUITE( getStr
);
1525 CPPUNIT_TEST( getStr_001
);
1526 CPPUNIT_TEST( getStr_002
);
1527 CPPUNIT_TEST_SUITE_END();
1530 class append_001
: public CppUnit::TestFixture
1535 void setUp() SAL_OVERRIDE
1537 arrOUS
[0] = new OString( kTestStr7
);
1538 arrOUS
[1] = new OString( );
1539 arrOUS
[2] = new OString( kTestStr25
);
1540 arrOUS
[3] = new OString( "" );
1541 arrOUS
[4] = new OString( kTestStr28
);
1545 void tearDown() SAL_OVERRIDE
1547 delete arrOUS
[0]; delete arrOUS
[1]; delete arrOUS
[2];
1548 delete arrOUS
[3]; delete arrOUS
[4];
1551 void append_001_001()
1553 OString
expVal( kTestStr1
);
1554 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
1555 OString
input2( kTestStr8
);
1557 aStrBuf
.append( input2
);
1559 CPPUNIT_ASSERT_MESSAGE
1561 "Appends the string(length less than 16) to the string buffer arrOUS[0]",
1562 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
1567 void append_001_002()
1569 OString
expVal( kTestStr2
);
1570 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
1571 OString
input2( kTestStr36
);
1573 aStrBuf
.append( input2
);
1575 CPPUNIT_ASSERT_MESSAGE
1577 "Appends the string(length more than 16) to the string buffer arrOUS[0]",
1578 aStrBuf
.getStr()== expVal
&&
1579 aStrBuf
.getLength() == expVal
.getLength()
1584 void append_001_003()
1586 OString
expVal( kTestStr37
);
1587 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
1588 OString
input2( kTestStr23
);
1590 aStrBuf
.append( input2
);
1592 CPPUNIT_ASSERT_MESSAGE
1594 "Appends the string(length equal to 16) to the string buffer arrOUS[0]",
1595 aStrBuf
.getStr()== expVal
&&
1596 aStrBuf
.getLength() == expVal
.getLength()
1601 void append_001_004()
1603 OString
expVal( kTestStr7
);
1604 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
1607 aStrBuf
.append( input2
);
1609 CPPUNIT_ASSERT_MESSAGE
1611 "Appends the string(length equal to 0) to the string buffer arrOUS[0]",
1612 aStrBuf
.getStr()== expVal
&&
1613 aStrBuf
.getLength() == expVal
.getLength()
1618 void append_001_005()
1620 OString
expVal( kTestStr7
);
1621 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
1622 OString
input2( kTestStr7
);
1624 aStrBuf
.append( input2
);
1626 CPPUNIT_ASSERT_MESSAGE
1628 "Appends the string(length less than 16) to the string buffer arrOUS[1]",
1629 aStrBuf
.getStr()== expVal
&&
1630 aStrBuf
.getLength() == expVal
.getLength()
1635 void append_001_006()
1637 OString
expVal( kTestStr2
);
1638 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
1639 OString
input2( kTestStr2
);
1641 aStrBuf
.append( input2
);
1643 CPPUNIT_ASSERT_MESSAGE
1645 "Appends the string(length more than 16) to the string buffer arrOUS[1]",
1646 aStrBuf
.getStr()== expVal
&&
1647 aStrBuf
.getLength() == expVal
.getLength()
1652 void append_001_007()
1654 OString
expVal( kTestStr1
);
1655 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
1656 OString
input2( kTestStr1
);
1658 aStrBuf
.append( input2
);
1660 CPPUNIT_ASSERT_MESSAGE
1662 "Appends the string(length equal to 16) to the string buffer arrOUS[1]",
1663 aStrBuf
.getStr()== expVal
&&
1664 aStrBuf
.getLength() == expVal
.getLength()
1669 void append_001_008()
1672 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
1675 aStrBuf
.append( input2
);
1677 CPPUNIT_ASSERT_MESSAGE
1679 "Appends the string(length equal to 0) to the string buffer arrOUS[1]",
1680 aStrBuf
.getStr()== expVal
&&
1681 aStrBuf
.getLength() == expVal
.getLength()
1686 void append_001_009()
1688 OString
expVal( kTestStr7
);
1689 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
1690 OString
input2( kTestStr7
);
1692 aStrBuf
.append( input2
);
1694 CPPUNIT_ASSERT_MESSAGE
1696 "Appends the string(length less than 16) to the string buffer arrOUS[2]",
1697 aStrBuf
.getStr()== expVal
&&
1698 aStrBuf
.getLength() == expVal
.getLength()
1703 void append_001_010()
1705 OString
expVal( kTestStr2
);
1706 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
1707 OString
input2( kTestStr2
);
1709 aStrBuf
.append( input2
);
1711 CPPUNIT_ASSERT_MESSAGE
1713 "Appends the string(length more than 16) to the string buffer arrOUS[2]",
1714 aStrBuf
.getStr()== expVal
&&
1715 aStrBuf
.getLength() == expVal
.getLength()
1720 void append_001_011()
1722 OString
expVal( kTestStr1
);
1723 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
1724 OString
input2( kTestStr1
);
1726 aStrBuf
.append( input2
);
1728 CPPUNIT_ASSERT_MESSAGE
1730 "Appends the string(length equal to 16) to the string buffer arrOUS[2]",
1731 aStrBuf
.getStr()== expVal
&&
1732 aStrBuf
.getLength() == expVal
.getLength()
1737 void append_001_012()
1740 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
1743 aStrBuf
.append( input2
);
1745 CPPUNIT_ASSERT_MESSAGE
1747 "Appends the string(length equal to 0) to the string buffer arrOUS[2]",
1748 aStrBuf
.getStr()== expVal
&&
1749 aStrBuf
.getLength() == expVal
.getLength()
1754 void append_001_013()
1756 OString
expVal( kTestStr7
);
1757 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
1758 OString
input2( kTestStr7
);
1760 aStrBuf
.append( input2
);
1762 CPPUNIT_ASSERT_MESSAGE
1764 "Appends the string(length less than 16) to the string buffer arrOUS[3]",
1765 aStrBuf
.getStr()== expVal
&&
1766 aStrBuf
.getLength() == expVal
.getLength()
1771 void append_001_014()
1773 OString
expVal( kTestStr2
);
1774 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
1775 OString
input2( kTestStr2
);
1777 aStrBuf
.append( input2
);
1779 CPPUNIT_ASSERT_MESSAGE
1781 "Appends the string(length more than 16) to the string buffer arrOUS[3]",
1782 aStrBuf
.getStr()== expVal
&&
1783 aStrBuf
.getLength() == expVal
.getLength()
1788 void append_001_015()
1790 OString
expVal( kTestStr1
);
1791 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
1792 OString
input2( kTestStr1
);
1794 aStrBuf
.append( input2
);
1796 CPPUNIT_ASSERT_MESSAGE
1798 "Appends the string(length equal to 16) to the string buffer arrOUS[3]",
1799 aStrBuf
.getStr()== expVal
&&
1800 aStrBuf
.getLength() == expVal
.getLength()
1805 void append_001_016()
1808 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
1811 aStrBuf
.append( input2
);
1813 CPPUNIT_ASSERT_MESSAGE
1815 "Appends the string(length equal to 0) to the string buffer arrOUS[3]",
1816 aStrBuf
.getStr()== expVal
&&
1817 aStrBuf
.getLength() == expVal
.getLength()
1822 void append_001_017()
1824 OString
expVal( kTestStr29
);
1825 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
1826 OString
input2( kTestStr38
);
1828 aStrBuf
.append( input2
);
1830 CPPUNIT_ASSERT_MESSAGE
1832 "Appends the string(length less than 16) to the string buffer arrOUS[4]",
1833 aStrBuf
.getStr()== expVal
&&
1834 aStrBuf
.getLength() == expVal
.getLength()
1839 void append_001_018()
1841 OString
expVal( kTestStr39
);
1842 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
1843 OString
input2( kTestStr17
);
1845 aStrBuf
.append( input2
);
1847 CPPUNIT_ASSERT_MESSAGE
1849 "Appends the string(length more than 16) to the string buffer arrOUS[4]",
1850 aStrBuf
.getStr()== expVal
&&
1851 aStrBuf
.getLength() == expVal
.getLength()
1856 void append_001_019()
1858 OString
expVal( kTestStr40
);
1859 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
1860 OString
input2( kTestStr31
);
1862 aStrBuf
.append( input2
);
1864 CPPUNIT_ASSERT_MESSAGE
1866 "Appends the string(length equal to 16) to the string buffer arrOUS[4]",
1867 aStrBuf
.getStr()== expVal
&&
1868 aStrBuf
.getLength() == expVal
.getLength()
1873 void append_001_020()
1875 OString
expVal( kTestStr28
);
1876 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
1879 aStrBuf
.append( input2
);
1881 CPPUNIT_ASSERT_MESSAGE
1883 "Appends the string(length equal to 0) to the string buffer arrOUS[4]",
1884 aStrBuf
.getStr()== expVal
&&
1885 aStrBuf
.getLength() == expVal
.getLength()
1892 ::rtl::OStringBuffer
aStrBuf("hello world");
1894 aStrBuf
.append('\0');
1895 aStrBuf
.append('\1');
1896 aStrBuf
.append('\2');
1898 aStrBuf
.append("hello world");
1900 CPPUNIT_ASSERT_MESSAGE
1902 "should be able to append nulls",
1903 aStrBuf
.getLength() ==
1904 2 * RTL_CONSTASCII_LENGTH("hello world") + 3 &&
1905 aStrBuf
[RTL_CONSTASCII_LENGTH("hello world")] == 0 &&
1906 aStrBuf
[RTL_CONSTASCII_LENGTH("hello world")]+1 == 1 &&
1907 aStrBuf
[RTL_CONSTASCII_LENGTH("hello world")]+2 == 2
1912 CPPUNIT_TEST_SUITE( append_001
);
1913 CPPUNIT_TEST( append_001_001
);
1914 CPPUNIT_TEST( append_001_002
);
1915 CPPUNIT_TEST( append_001_003
);
1916 CPPUNIT_TEST( append_001_004
);
1917 CPPUNIT_TEST( append_001_005
);
1918 CPPUNIT_TEST( append_001_006
);
1919 CPPUNIT_TEST( append_001_007
);
1920 CPPUNIT_TEST( append_001_008
);
1921 CPPUNIT_TEST( append_001_009
);
1922 CPPUNIT_TEST( append_001_010
);
1923 CPPUNIT_TEST( append_001_011
);
1924 CPPUNIT_TEST( append_001_012
);
1925 CPPUNIT_TEST( append_001_013
);
1926 CPPUNIT_TEST( append_001_014
);
1927 CPPUNIT_TEST( append_001_015
);
1928 CPPUNIT_TEST( append_001_016
);
1929 CPPUNIT_TEST( append_001_017
);
1930 CPPUNIT_TEST( append_001_018
);
1931 CPPUNIT_TEST( append_001_019
);
1932 CPPUNIT_TEST( append_001_020
);
1933 CPPUNIT_TEST( append_null
);
1934 CPPUNIT_TEST_SUITE_END();
1937 class append_002
: public CppUnit::TestFixture
1942 void setUp() SAL_OVERRIDE
1944 arrOUS
[0] = new OString( kTestStr7
);
1945 arrOUS
[1] = new OString( );
1946 arrOUS
[2] = new OString( kTestStr25
);
1947 arrOUS
[3] = new OString( "" );
1948 arrOUS
[4] = new OString( kTestStr28
);
1952 void tearDown() SAL_OVERRIDE
1954 delete arrOUS
[0]; delete arrOUS
[1]; delete arrOUS
[2];
1955 delete arrOUS
[3]; delete arrOUS
[4];
1958 void append_002_001()
1960 OString
expVal( kTestStr1
);
1961 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
1962 const sal_Char
* input
= kTestStr8
;
1964 aStrBuf
.append( input
);
1966 CPPUNIT_ASSERT_MESSAGE
1968 "Appends the string(length less than 16) to the string buffer arrOUS[0]",
1969 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
1974 void append_002_002()
1976 OString
expVal( kTestStr2
);
1977 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
1978 const sal_Char
* input
= kTestStr36
;
1980 aStrBuf
.append( input
);
1982 CPPUNIT_ASSERT_MESSAGE
1984 "Appends the string(length more than 16) to the string buffer arrOUS[0]",
1985 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
1990 void append_002_003()
1992 OString
expVal( kTestStr37
);
1993 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
1994 const sal_Char
* input
= kTestStr23
;
1996 aStrBuf
.append( input
);
1998 CPPUNIT_ASSERT_MESSAGE
2000 "Appends the string(length equal to 16) to the string buffer arrOUS[0]",
2001 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2006 void append_002_004()
2008 OString
expVal( kTestStr7
);
2009 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
2010 const sal_Char
* input
= kTestStr25
;
2012 aStrBuf
.append( input
);
2014 CPPUNIT_ASSERT_MESSAGE
2016 "Appends the string(length equal to 0) to the string buffer arrOUS[0]",
2017 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2022 void append_002_005()
2024 OString
expVal( kTestStr7
);
2025 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
2026 const sal_Char
* input
= kTestStr7
;
2028 aStrBuf
.append( input
);
2030 CPPUNIT_ASSERT_MESSAGE
2032 "Appends the string(length less than 16) to the string buffer arrOUS[1]",
2033 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2038 void append_002_006()
2040 OString
expVal( kTestStr2
);
2041 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
2042 const sal_Char
* input
= kTestStr2
;
2044 aStrBuf
.append( input
);
2046 CPPUNIT_ASSERT_MESSAGE
2048 "Appends the string(length more than 16) to the string buffer arrOUS[1]",
2049 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2054 void append_002_007()
2056 OString
expVal( kTestStr1
);
2057 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
2058 const sal_Char
* input
= kTestStr1
;
2060 aStrBuf
.append( input
);
2062 CPPUNIT_ASSERT_MESSAGE
2064 "Appends the string(length equal to 16) to the string buffer arrOUS[1]",
2065 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2070 void append_002_008()
2073 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
2074 const sal_Char
* input
= kTestStr25
;
2076 aStrBuf
.append( input
);
2078 CPPUNIT_ASSERT_MESSAGE
2080 "Appends the string(length equal to 0) to the string buffer arrOUS[1]",
2081 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2086 void append_002_009()
2088 OString
expVal( kTestStr7
);
2089 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
2090 const sal_Char
* input
= kTestStr7
;
2092 aStrBuf
.append( input
);
2094 CPPUNIT_ASSERT_MESSAGE
2096 "Appends the string(length less than 16) to the string buffer arrOUS[2]",
2097 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2102 void append_002_010()
2104 OString
expVal( kTestStr2
);
2105 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
2106 const sal_Char
* input
= kTestStr2
;
2108 aStrBuf
.append( input
);
2110 CPPUNIT_ASSERT_MESSAGE
2112 "Appends the string(length more than 16) to the string buffer arrOUS[2]",
2113 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2118 void append_002_011()
2120 OString
expVal( kTestStr1
);
2121 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
2122 const sal_Char
* input
= kTestStr1
;
2124 aStrBuf
.append( input
);
2126 CPPUNIT_ASSERT_MESSAGE
2128 "Appends the string(length equal to 16) to the string buffer arrOUS[2]",
2129 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2134 void append_002_012()
2137 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
2138 const sal_Char
* input
= kTestStr25
;
2140 aStrBuf
.append( input
);
2142 CPPUNIT_ASSERT_MESSAGE
2144 "Appends the string(length equal to 0) to the string buffer arrOUS[2]",
2145 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2150 void append_002_013()
2152 OString
expVal( kTestStr7
);
2153 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
2154 const sal_Char
* input
= kTestStr7
;
2156 aStrBuf
.append( input
);
2158 CPPUNIT_ASSERT_MESSAGE
2160 "Appends the string(length less than 16) to the string buffer arrOUS[3]",
2161 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2166 void append_002_014()
2168 OString
expVal( kTestStr2
);
2169 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
2170 const sal_Char
* input
= kTestStr2
;
2172 aStrBuf
.append( input
);
2174 CPPUNIT_ASSERT_MESSAGE
2176 "Appends the string(length more than 16) to the string buffer arrOUS[3]",
2177 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2182 void append_002_015()
2184 OString
expVal( kTestStr1
);
2185 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
2186 const sal_Char
* input
= kTestStr1
;
2188 aStrBuf
.append( input
);
2190 CPPUNIT_ASSERT_MESSAGE
2192 "Appends the string(length equal to 16) to the string buffer arrOUS[3]",
2193 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2198 void append_002_016()
2201 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
2202 const sal_Char
* input
= kTestStr25
;
2204 aStrBuf
.append( input
);
2206 CPPUNIT_ASSERT_MESSAGE
2208 "Appends the string(length equal to 0) to the string buffer arrOUS[3]",
2209 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2214 void append_002_017()
2216 OString
expVal( kTestStr29
);
2217 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
2218 const sal_Char
* input
= kTestStr38
;
2220 aStrBuf
.append( input
);
2222 CPPUNIT_ASSERT_MESSAGE
2224 "Appends the string(length less than 16) to the string buffer arrOUS[4]",
2225 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2230 void append_002_018()
2232 OString
expVal( kTestStr39
);
2233 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
2234 const sal_Char
* input
= kTestStr17
;
2236 aStrBuf
.append( input
);
2238 CPPUNIT_ASSERT_MESSAGE
2240 "Appends the string(length more than 16) to the string buffer arrOUS[4]",
2241 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2246 void append_002_019()
2248 OString
expVal( kTestStr40
);
2249 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
2250 const sal_Char
* input
= kTestStr31
;
2252 aStrBuf
.append( input
);
2254 CPPUNIT_ASSERT_MESSAGE
2256 "Appends the string(length equal to 16) to the string buffer arrOUS[4]",
2257 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2262 void append_002_020()
2264 OString
expVal( kTestStr28
);
2265 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
2266 const sal_Char
* input
= kTestStr25
;
2268 aStrBuf
.append( input
);
2270 CPPUNIT_ASSERT_MESSAGE
2272 "Appends the string(length equal to 0) to the string buffer arrOUS[4]",
2273 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2279 void append_002_021()
2282 ::rtl::OStringBuffer
aStrBuf( kSInt32Max
);
2283 const sal_Char
* input
= kTestStr25
;
2285 aStrBuf
.append( input
);
2287 CPPUNIT_ASSERT_MESSAGE
2289 "Appends the string(length equal to 0) to the string buffer(with INT_MAX)",
2290 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2296 CPPUNIT_TEST_SUITE( append_002
);
2297 CPPUNIT_TEST( append_002_001
);
2298 CPPUNIT_TEST( append_002_002
);
2299 CPPUNIT_TEST( append_002_003
);
2300 CPPUNIT_TEST( append_002_004
);
2301 CPPUNIT_TEST( append_002_005
);
2302 CPPUNIT_TEST( append_002_006
);
2303 CPPUNIT_TEST( append_002_007
);
2304 CPPUNIT_TEST( append_002_008
);
2305 CPPUNIT_TEST( append_002_009
);
2306 CPPUNIT_TEST( append_002_010
);
2307 CPPUNIT_TEST( append_002_011
);
2308 CPPUNIT_TEST( append_002_012
);
2309 CPPUNIT_TEST( append_002_013
);
2310 CPPUNIT_TEST( append_002_014
);
2311 CPPUNIT_TEST( append_002_015
);
2312 CPPUNIT_TEST( append_002_016
);
2313 CPPUNIT_TEST( append_002_017
);
2314 CPPUNIT_TEST( append_002_018
);
2315 CPPUNIT_TEST( append_002_019
);
2316 CPPUNIT_TEST( append_002_020
);
2318 CPPUNIT_TEST( append_002_021
);
2320 CPPUNIT_TEST_SUITE_END();
2323 class append_003
: public CppUnit::TestFixture
2328 void setUp() SAL_OVERRIDE
2330 arrOUS
[0] = new OString( kTestStr7
);
2331 arrOUS
[1] = new OString( );
2332 arrOUS
[2] = new OString( kTestStr25
);
2333 arrOUS
[3] = new OString( "" );
2334 arrOUS
[4] = new OString( kTestStr28
);
2338 void tearDown() SAL_OVERRIDE
2340 delete arrOUS
[0]; delete arrOUS
[1]; delete arrOUS
[2];
2341 delete arrOUS
[3]; delete arrOUS
[4];
2344 void append_003_001()
2346 OString
expVal( kTestStr1
);
2347 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
2348 const sal_Char
* input1
= kTestStr36
;
2349 sal_Int32 input2
= 12;
2351 aStrBuf
.append( input1
, input2
);
2353 CPPUNIT_ASSERT_MESSAGE
2355 "Appends the string(length less than 16) to the string buffer arrOUS[0]",
2356 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2361 void append_003_002()
2363 OString
expVal( kTestStr2
);
2364 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
2365 const sal_Char
* input1
= kTestStr36
;
2366 sal_Int32 input2
= 28;
2368 aStrBuf
.append( input1
, input2
);
2370 CPPUNIT_ASSERT_MESSAGE
2372 "Appends the string(length more than 16) to the string buffer arrOUS[0]",
2373 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2378 void append_003_003()
2380 OString
expVal( kTestStr37
);
2381 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
2382 const sal_Char
* input1
= kTestStr23
;
2383 sal_Int32 input2
= 16;
2385 aStrBuf
.append( input1
, input2
);
2387 CPPUNIT_ASSERT_MESSAGE
2389 "Appends the string(length equal to 16) to the string buffer arrOUS[0]",
2390 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2395 void append_003_004()
2397 OString
expVal( kTestStr7
);
2398 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
2399 const sal_Char
* input1
= kTestStr2
;
2400 sal_Int32 input2
= 0;
2402 aStrBuf
.append( input1
, input2
);
2404 CPPUNIT_ASSERT_MESSAGE
2406 "Appends the string(length equal to 0) to the string buffer arrOUS[0]",
2407 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2412 void append_003_006()
2414 OString
expVal( kTestStr7
);
2415 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
2416 const sal_Char
* input1
= kTestStr2
;
2417 sal_Int32 input2
= 4;
2419 aStrBuf
.append( input1
, input2
);
2421 CPPUNIT_ASSERT_MESSAGE
2423 "Appends the string(length less than 16) to the string buffer arrOUS[1]",
2424 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2429 void append_003_007()
2431 OString
expVal( kTestStr2
);
2432 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
2433 const sal_Char
* input1
= kTestStr2
;
2434 sal_Int32 input2
= 32;
2436 aStrBuf
.append( input1
, input2
);
2438 CPPUNIT_ASSERT_MESSAGE
2440 "Appends the string(length more than 16) to the string buffer arrOUS[1]",
2441 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2446 void append_003_008()
2448 OString
expVal( kTestStr1
);
2449 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
2450 const sal_Char
* input1
= kTestStr2
;
2451 sal_Int32 input2
= 16;
2453 aStrBuf
.append( input1
, input2
);
2455 CPPUNIT_ASSERT_MESSAGE
2457 "Appends the string(length equal to 16) to the string buffer arrOUS[1]",
2458 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2463 void append_003_009()
2466 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
2467 const sal_Char
* input1
= kTestStr2
;
2468 sal_Int32 input2
= 0;
2470 aStrBuf
.append( input1
, input2
);
2472 CPPUNIT_ASSERT_MESSAGE
2474 "Appends the string(length equal to 0) to the string buffer arrOUS[1]",
2475 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2480 void append_003_011()
2482 OString
expVal( kTestStr7
);
2483 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
2484 const sal_Char
* input1
= kTestStr2
;
2485 sal_Int32 input2
= 4;
2487 aStrBuf
.append( input1
, input2
);
2489 CPPUNIT_ASSERT_MESSAGE
2491 "Appends the string(length less than 16) to the string buffer arrOUS[2]",
2492 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2497 void append_003_012()
2499 OString
expVal( kTestStr2
);
2500 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
2501 const sal_Char
* input1
= kTestStr2
;
2502 sal_Int32 input2
= 32;
2504 aStrBuf
.append( input1
, input2
);
2506 CPPUNIT_ASSERT_MESSAGE
2508 "Appends the string(length more than 16) to the string buffer arrOUS[2]",
2509 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2514 void append_003_013()
2516 OString
expVal( kTestStr1
);
2517 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
2518 const sal_Char
* input1
= kTestStr2
;
2519 sal_Int32 input2
= 16;
2521 aStrBuf
.append( input1
, input2
);
2523 CPPUNIT_ASSERT_MESSAGE
2525 "Appends the string(length equal to 16) to the string buffer arrOUS[2]",
2526 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2531 void append_003_014()
2534 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
2535 const sal_Char
* input1
= kTestStr2
;
2536 sal_Int32 input2
= 0;
2538 aStrBuf
.append( input1
, input2
);
2540 CPPUNIT_ASSERT_MESSAGE
2542 "Appends the string(length equal to 0) to the string buffer arrOUS[2]",
2543 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2548 void append_003_016()
2550 OString
expVal( kTestStr7
);
2551 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
2552 const sal_Char
* input1
= kTestStr2
;
2553 sal_Int32 input2
= 4;
2555 aStrBuf
.append( input1
, input2
);
2557 CPPUNIT_ASSERT_MESSAGE
2559 "Appends the string(length less than 16) to the string buffer arrOUS[3]",
2560 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2565 void append_003_017()
2567 OString
expVal( kTestStr2
);
2568 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
2569 const sal_Char
* input1
= kTestStr2
;
2570 sal_Int32 input2
= 32;
2572 aStrBuf
.append( input1
, input2
);
2574 CPPUNIT_ASSERT_MESSAGE
2576 "Appends the string(length more than 16) to the string buffer arrOUS[3]",
2577 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2582 void append_003_018()
2584 OString
expVal( kTestStr1
);
2585 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
2586 const sal_Char
* input1
= kTestStr2
;
2587 sal_Int32 input2
= 16;
2589 aStrBuf
.append( input1
, input2
);
2591 CPPUNIT_ASSERT_MESSAGE
2593 "Appends the string(length equal to 16) to the string buffer arrOUS[3]",
2594 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2599 void append_003_019()
2602 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
2603 const sal_Char
* input1
= kTestStr2
;
2604 sal_Int32 input2
= 0;
2606 aStrBuf
.append( input1
, input2
);
2608 CPPUNIT_ASSERT_MESSAGE
2610 "Appends the string(length equal to 0) to the string buffer arrOUS[3]",
2611 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2616 void append_003_021()
2618 OString
expVal( kTestStr29
);
2619 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
2620 const sal_Char
* input1
= kTestStr38
;
2621 sal_Int32 input2
= 7;
2623 aStrBuf
.append( input1
, input2
);
2625 CPPUNIT_ASSERT_MESSAGE
2627 "Appends the string(length less than 16) to the string buffer arrOUS[4]",
2628 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2633 void append_003_022()
2635 OString
expVal( kTestStr39
);
2636 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
2637 const sal_Char
* input1
= kTestStr17
;
2638 sal_Int32 input2
= 22;
2640 aStrBuf
.append( input1
, input2
);
2642 CPPUNIT_ASSERT_MESSAGE
2644 "Appends the string(length more than 16) to the string buffer arrOUS[4]",
2645 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2650 void append_003_023()
2652 OString
expVal( kTestStr40
);
2653 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
2654 const sal_Char
* input1
= kTestStr31
;
2655 sal_Int32 input2
= 16;
2657 aStrBuf
.append( input1
, input2
);
2659 CPPUNIT_ASSERT_MESSAGE
2661 "Appends the string(length equal to 16) to the string buffer arrOUS[4]",
2662 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2667 void append_003_024()
2669 OString
expVal( kTestStr28
);
2670 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
2671 const sal_Char
* input1
= kTestStr2
;
2672 sal_Int32 input2
= 0;
2674 aStrBuf
.append( input1
, input2
);
2676 CPPUNIT_ASSERT_MESSAGE
2678 "Appends the string(length equal to 0) to the string buffer arrOUS[4]",
2679 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2684 CPPUNIT_TEST_SUITE( append_003
);
2685 CPPUNIT_TEST( append_003_001
);
2686 CPPUNIT_TEST( append_003_002
);
2687 CPPUNIT_TEST( append_003_003
);
2688 CPPUNIT_TEST( append_003_004
);
2689 CPPUNIT_TEST( append_003_006
);
2690 CPPUNIT_TEST( append_003_007
);
2691 CPPUNIT_TEST( append_003_008
);
2692 CPPUNIT_TEST( append_003_009
);
2693 CPPUNIT_TEST( append_003_011
);
2694 CPPUNIT_TEST( append_003_012
);
2695 CPPUNIT_TEST( append_003_013
);
2696 CPPUNIT_TEST( append_003_014
);
2697 CPPUNIT_TEST( append_003_016
);
2698 CPPUNIT_TEST( append_003_017
);
2699 CPPUNIT_TEST( append_003_018
);
2700 CPPUNIT_TEST( append_003_019
);
2701 CPPUNIT_TEST( append_003_021
);
2702 CPPUNIT_TEST( append_003_022
);
2703 CPPUNIT_TEST( append_003_023
);
2704 CPPUNIT_TEST( append_003_024
);
2705 CPPUNIT_TEST_SUITE_END();
2708 class append_004
: public CppUnit::TestFixture
2713 void setUp() SAL_OVERRIDE
2715 arrOUS
[0] = new OString( kTestStr7
);
2716 arrOUS
[1] = new OString( );
2717 arrOUS
[2] = new OString( kTestStr25
);
2718 arrOUS
[3] = new OString( "" );
2719 arrOUS
[4] = new OString( kTestStr28
);
2723 void tearDown() SAL_OVERRIDE
2725 delete arrOUS
[0]; delete arrOUS
[1]; delete arrOUS
[2];
2726 delete arrOUS
[3]; delete arrOUS
[4];
2729 void append_004_001()
2731 OString
expVal( kTestStr45
);
2732 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
2735 aStrBuf
.append( input
);
2737 CPPUNIT_ASSERT_MESSAGE
2739 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[0]",
2740 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2745 void append_004_002()
2747 OString
expVal( kTestStr46
);
2748 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
2751 aStrBuf
.append( input
);
2753 CPPUNIT_ASSERT_MESSAGE
2755 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[0]",
2756 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2761 void append_004_003()
2763 OString
expVal( kTestStr47
);
2764 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
2767 aStrBuf
.append( input
);
2769 CPPUNIT_ASSERT_MESSAGE
2771 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[1]",
2772 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2777 void append_004_004()
2779 OString
expVal( kTestStr48
);
2780 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
2783 aStrBuf
.append( input
);
2785 CPPUNIT_ASSERT_MESSAGE
2787 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[1]",
2788 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2793 void append_004_005()
2795 OString
expVal( kTestStr47
);
2796 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
2799 aStrBuf
.append( input
);
2801 CPPUNIT_ASSERT_MESSAGE
2803 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[2]",
2804 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2809 void append_004_006()
2811 OString
expVal( kTestStr48
);
2812 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
2815 aStrBuf
.append( input
);
2817 CPPUNIT_ASSERT_MESSAGE
2819 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[2]",
2820 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2825 void append_004_007()
2827 OString
expVal( kTestStr47
);
2828 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
2831 aStrBuf
.append( input
);
2833 CPPUNIT_ASSERT_MESSAGE
2835 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[3]",
2836 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2841 void append_004_008()
2843 OString
expVal( kTestStr48
);
2844 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
2847 aStrBuf
.append( input
);
2849 CPPUNIT_ASSERT_MESSAGE
2851 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[3]",
2852 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2857 void append_004_009()
2859 OString
expVal( kTestStr49
);
2860 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
2863 aStrBuf
.append( input
);
2865 CPPUNIT_ASSERT_MESSAGE
2867 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[4]",
2868 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2873 void append_004_010()
2875 OString
expVal( kTestStr50
);
2876 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
2879 aStrBuf
.append( input
);
2881 CPPUNIT_ASSERT_MESSAGE
2883 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[4]",
2884 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2890 void append_004_011()
2892 OString
expVal( kTestStr47
);
2893 ::rtl::OStringBuffer
aStrBuf( kSInt32Max
);
2894 sal_Bool input
= sal_True
;
2896 aStrBuf
.append( input
);
2898 CPPUNIT_ASSERT_MESSAGE
2900 "Appends the sal_Bool(sal_True) to the string buffer(with INT_MAX)",
2901 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2906 void append_004_012()
2908 OString
expVal( kTestStr48
);
2909 ::rtl::OStringBuffer
aStrBuf( kSInt32Max
);
2910 sal_Bool input
= sal_False
;
2912 aStrBuf
.append( input
);
2914 CPPUNIT_ASSERT_MESSAGE
2916 "Appends the sal_Bool(sal_False) to the string buffer(with INT_MAX)",
2917 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2923 CPPUNIT_TEST_SUITE( append_004
);
2924 CPPUNIT_TEST( append_004_001
);
2925 CPPUNIT_TEST( append_004_002
);
2926 CPPUNIT_TEST( append_004_003
);
2927 CPPUNIT_TEST( append_004_004
);
2928 CPPUNIT_TEST( append_004_005
);
2929 CPPUNIT_TEST( append_004_006
);
2930 CPPUNIT_TEST( append_004_007
);
2931 CPPUNIT_TEST( append_004_008
);
2932 CPPUNIT_TEST( append_004_009
);
2933 CPPUNIT_TEST( append_004_010
);
2935 CPPUNIT_TEST( append_004_011
);
2936 CPPUNIT_TEST( append_004_012
);
2938 CPPUNIT_TEST_SUITE_END();
2941 // testing the method append(sal_Char c)
2943 class append_005
: public CppUnit::TestFixture
2948 void setUp() SAL_OVERRIDE
2950 arrOUS
[0] = new OString( kTestStr7
);
2951 arrOUS
[1] = new OString( );
2952 arrOUS
[2] = new OString( kTestStr25
);
2953 arrOUS
[3] = new OString( "" );
2954 arrOUS
[4] = new OString( kTestStr28
);
2958 void tearDown() SAL_OVERRIDE
2960 delete arrOUS
[0]; delete arrOUS
[1]; delete arrOUS
[2];
2961 delete arrOUS
[3]; delete arrOUS
[4];
2966 OString
expVal( kTestStr51
);
2967 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
2968 sal_Char input
= 'M';
2970 aStrBuf
.append( input
);
2972 CPPUNIT_ASSERT_MESSAGE
2974 "Appends the sal_Char(M) to the string buffer arrOUS[0]",
2975 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2982 OString
expVal( kTestStr143
);
2983 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
2984 sal_Char input
= static_cast<sal_Char
>(SAL_MAX_UINT8
);
2986 aStrBuf
.append( input
);
2988 CPPUNIT_ASSERT_MESSAGE
2990 "Appends the sal_Unicode(kSInt8Max) to the string buffer arrOUS[0]",
2991 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2998 OString
expVal( kTestStr27
);
2999 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
3000 sal_Char input
= 's';
3002 aStrBuf
.append( input
);
3004 CPPUNIT_ASSERT_MESSAGE
3006 "Appends the sal_Char(s) to the string buffer arrOUS[1]",
3007 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
3014 OString
expVal( kTestStr144
);
3015 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
3016 sal_Char input
= static_cast<sal_Char
>(SAL_MAX_UINT8
);
3018 aStrBuf
.append( input
);
3020 CPPUNIT_ASSERT_MESSAGE
3022 "Appends the sal_Char(kSInt8Max) to the string buffer arrOUS[1]",
3023 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
3028 void append_005_005()
3030 OString
expVal( kTestStr27
);
3031 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
3032 sal_Char input
= 's';
3034 aStrBuf
.append( input
);
3036 CPPUNIT_ASSERT_MESSAGE
3038 "Appends the sal_Char(s) to the string buffer arrOUS[2]",
3039 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
3046 OString
expVal( kTestStr144
);
3047 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
3048 sal_Char input
= static_cast<sal_Char
>(SAL_MAX_UINT8
);
3050 aStrBuf
.append( input
);
3052 CPPUNIT_ASSERT_MESSAGE
3054 "Appends the sal_Char(kSInt8Max) to the string buffer arrOUS[2]",
3055 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
3062 OString
expVal( kTestStr27
);
3063 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
3064 sal_Char input
= 's';
3066 aStrBuf
.append( input
);
3068 CPPUNIT_ASSERT_MESSAGE
3070 "Appends the sal_Char(s) to the string buffer arrOUS[3]",
3071 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
3078 OString
expVal( kTestStr144
);
3079 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
3080 sal_Char input
= static_cast<sal_Char
>(SAL_MAX_UINT8
);
3082 aStrBuf
.append( input
);
3084 CPPUNIT_ASSERT_MESSAGE
3086 "Appends the sal_Char(kSInt8Max) to the string buffer arrOUS[3]",
3087 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
3094 OString
expVal( kTestStr56
);
3095 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
3096 sal_Char input
= 's';
3098 aStrBuf
.append( input
);
3100 CPPUNIT_ASSERT_MESSAGE
3102 "Appends the sal_Char(s) to the string buffer arrOUS[4]",
3103 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
3110 OString
expVal( kTestStr145
);
3111 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
3112 sal_Char input
= static_cast<sal_Char
>(SAL_MAX_UINT8
);
3114 aStrBuf
.append( input
);
3116 CPPUNIT_ASSERT_MESSAGE
3118 "Appends the sal_Char(kSInt8Max) to the string buffer arrOUS[4]",
3119 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
3127 OString
expVal( kTestStr27
);
3128 ::rtl::OStringBuffer
aStrBuf( kSInt32Max
);
3129 sal_Char input
= 's';
3131 aStrBuf
.append( input
);
3133 CPPUNIT_ASSERT_MESSAGE
3135 "Appends the sal_Char(s) to the string buffer(with INT_MAX)",
3136 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
3143 OString
expVal( kTestStr144
);
3144 ::rtl::OStringBuffer
aStrBuf( kSInt32Max
);
3145 sal_Char input
= static_cast<sal_Char
>(SAL_MAX_UINT8
);
3147 aStrBuf
.append( input
);
3149 CPPUNIT_ASSERT_MESSAGE
3151 "Appends the sal_Char(kSInt8Max) to the string buffer with INT_MAX)",
3152 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
3158 CPPUNIT_TEST_SUITE( append_005
);
3159 CPPUNIT_TEST( append_001
);
3160 CPPUNIT_TEST( append_002
);
3161 CPPUNIT_TEST( append_003
);
3162 CPPUNIT_TEST( append_004
);
3163 CPPUNIT_TEST( append_005_005
);
3164 CPPUNIT_TEST( append_006
);
3165 CPPUNIT_TEST( append_007
);
3166 CPPUNIT_TEST( append_008
);
3167 CPPUNIT_TEST( append_009
);
3168 CPPUNIT_TEST( append_010
);
3170 CPPUNIT_TEST( append_011
);
3171 CPPUNIT_TEST( append_012
);
3173 CPPUNIT_TEST_SUITE_END();
3176 class append_006_Int32
: public CppUnit::TestFixture
3181 void setUp() SAL_OVERRIDE
3183 arrOUS
[0] = new OString( kTestStr7
);
3184 arrOUS
[1] = new OString( );
3185 arrOUS
[2] = new OString( kTestStr25
);
3186 arrOUS
[3] = new OString( "" );
3187 arrOUS
[4] = new OString( kTestStr28
);
3191 void tearDown() SAL_OVERRIDE
3193 delete arrOUS
[0]; delete arrOUS
[1]; delete arrOUS
[2];
3194 delete arrOUS
[3]; delete arrOUS
[4];
3199 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
3200 OString
expVal( aStrBuf
.getStr() );
3201 sal_Int32 input
= 0;
3202 sal_Int16 radix
= 2;
3204 expVal
+= OString( "0" );
3205 aStrBuf
.append( input
, radix
);
3207 CPPUNIT_ASSERT_MESSAGE
3209 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
3210 aStrBuf
.getStr()== expVal
&&
3211 aStrBuf
.getLength() == expVal
.getLength()
3218 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
3219 OString
expVal( aStrBuf
.getStr() );
3220 sal_Int32 input
= 4;
3221 sal_Int16 radix
= 2;
3223 expVal
+= OString( "100" );
3224 aStrBuf
.append( input
, radix
);
3226 CPPUNIT_ASSERT_MESSAGE
3228 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
3229 aStrBuf
.getStr()== expVal
&&
3230 aStrBuf
.getLength() == expVal
.getLength()
3237 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
3238 OString
expVal( aStrBuf
.getStr() );
3239 sal_Int32 input
= 8;
3240 sal_Int16 radix
= 2;
3242 expVal
+= OString( "1000" );
3243 aStrBuf
.append( input
, radix
);
3245 CPPUNIT_ASSERT_MESSAGE
3247 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
3248 aStrBuf
.getStr()== expVal
&&
3249 aStrBuf
.getLength() == expVal
.getLength()
3256 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
3257 OString
expVal( aStrBuf
.getStr() );
3258 sal_Int32 input
= 15;
3259 sal_Int16 radix
= 2;
3261 expVal
+= OString( "1111" );
3262 aStrBuf
.append( input
, radix
);
3264 CPPUNIT_ASSERT_MESSAGE
3266 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
3267 aStrBuf
.getStr()== expVal
&&
3268 aStrBuf
.getLength() == expVal
.getLength()
3275 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
3276 OString
expVal( aStrBuf
.getStr() );
3277 sal_Int32 input
= 0;
3278 sal_Int16 radix
= 8;
3280 expVal
+= OString( "0" );
3281 aStrBuf
.append( input
, radix
);
3283 CPPUNIT_ASSERT_MESSAGE
3285 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
3286 aStrBuf
.getStr()== expVal
&&
3287 aStrBuf
.getLength() == expVal
.getLength()
3294 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
3295 OString
expVal( aStrBuf
.getStr() );
3296 sal_Int32 input
= 4;
3297 sal_Int16 radix
= 8;
3299 expVal
+= OString( "4" );
3300 aStrBuf
.append( input
, radix
);
3302 CPPUNIT_ASSERT_MESSAGE
3304 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
3305 aStrBuf
.getStr()== expVal
&&
3306 aStrBuf
.getLength() == expVal
.getLength()
3313 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
3314 OString
expVal( aStrBuf
.getStr() );
3315 sal_Int32 input
= 8;
3316 sal_Int16 radix
= 8;
3318 expVal
+= OString( "10" );
3319 aStrBuf
.append( input
, radix
);
3321 CPPUNIT_ASSERT_MESSAGE
3323 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
3324 aStrBuf
.getStr()== expVal
&&
3325 aStrBuf
.getLength() == expVal
.getLength()
3332 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
3333 OString
expVal( aStrBuf
.getStr() );
3334 sal_Int32 input
= 15;
3335 sal_Int16 radix
= 8;
3337 expVal
+= OString( "17" );
3338 aStrBuf
.append( input
, radix
);
3340 CPPUNIT_ASSERT_MESSAGE
3342 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
3343 aStrBuf
.getStr()== expVal
&&
3344 aStrBuf
.getLength() == expVal
.getLength()
3351 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
3352 OString
expVal( aStrBuf
.getStr() );
3353 sal_Int32 input
= 0;
3354 sal_Int16 radix
= 10;
3356 expVal
+= OString( "0" );
3357 aStrBuf
.append( input
, radix
);
3359 CPPUNIT_ASSERT_MESSAGE
3361 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
3362 aStrBuf
.getStr()== expVal
&&
3363 aStrBuf
.getLength() == expVal
.getLength()
3370 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
3371 OString
expVal( aStrBuf
.getStr() );
3372 sal_Int32 input
= 4;
3373 sal_Int16 radix
= 10;
3375 expVal
+= OString( "4" );
3376 aStrBuf
.append( input
, radix
);
3378 CPPUNIT_ASSERT_MESSAGE
3380 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
3381 aStrBuf
.getStr()== expVal
&&
3382 aStrBuf
.getLength() == expVal
.getLength()
3389 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
3390 OString
expVal( aStrBuf
.getStr() );
3391 sal_Int32 input
= 8;
3392 sal_Int16 radix
= 10;
3394 expVal
+= OString( "8" );
3395 aStrBuf
.append( input
, radix
);
3397 CPPUNIT_ASSERT_MESSAGE
3399 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
3400 aStrBuf
.getStr()== expVal
&&
3401 aStrBuf
.getLength() == expVal
.getLength()
3408 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
3409 OString
expVal( aStrBuf
.getStr() );
3410 sal_Int32 input
= 15;
3411 sal_Int16 radix
= 10;
3413 expVal
+= OString( "15" );
3414 aStrBuf
.append( input
, radix
);
3416 CPPUNIT_ASSERT_MESSAGE
3418 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
3419 aStrBuf
.getStr()== expVal
&&
3420 aStrBuf
.getLength() == expVal
.getLength()
3427 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
3428 OString
expVal( aStrBuf
.getStr() );
3429 sal_Int32 input
= 0;
3430 sal_Int16 radix
= 16;
3432 expVal
+= OString( "0" );
3433 aStrBuf
.append( input
, radix
);
3435 CPPUNIT_ASSERT_MESSAGE
3437 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
3438 aStrBuf
.getStr()== expVal
&&
3439 aStrBuf
.getLength() == expVal
.getLength()
3446 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
3447 OString
expVal( aStrBuf
.getStr() );
3448 sal_Int32 input
= 4;
3449 sal_Int16 radix
= 16;
3451 expVal
+= OString( "4" );
3452 aStrBuf
.append( input
, radix
);
3454 CPPUNIT_ASSERT_MESSAGE
3456 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
3457 aStrBuf
.getStr()== expVal
&&
3458 aStrBuf
.getLength() == expVal
.getLength()
3465 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
3466 OString
expVal( aStrBuf
.getStr() );
3467 sal_Int32 input
= 8;
3468 sal_Int16 radix
= 16;
3470 expVal
+= OString( "8" );
3471 aStrBuf
.append( input
, radix
);
3473 CPPUNIT_ASSERT_MESSAGE
3475 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
3476 aStrBuf
.getStr()== expVal
&&
3477 aStrBuf
.getLength() == expVal
.getLength()
3484 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
3485 OString
expVal( aStrBuf
.getStr() );
3486 sal_Int32 input
= 15;
3487 sal_Int16 radix
= 16;
3489 expVal
+= OString( "f" );
3490 aStrBuf
.append( input
, radix
);
3492 CPPUNIT_ASSERT_MESSAGE
3494 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
3495 aStrBuf
.getStr()== expVal
&&
3496 aStrBuf
.getLength() == expVal
.getLength()
3503 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
3504 OString
expVal( aStrBuf
.getStr() );
3505 sal_Int32 input
= 0;
3506 sal_Int16 radix
= 36;
3508 expVal
+= OString( "0" );
3509 aStrBuf
.append( input
, radix
);
3511 CPPUNIT_ASSERT_MESSAGE
3513 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
3514 aStrBuf
.getStr()== expVal
&&
3515 aStrBuf
.getLength() == expVal
.getLength()
3522 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
3523 OString
expVal( aStrBuf
.getStr() );
3524 sal_Int32 input
= 4;
3525 sal_Int16 radix
= 36;
3527 expVal
+= OString( "4" );
3528 aStrBuf
.append( input
, radix
);
3530 CPPUNIT_ASSERT_MESSAGE
3532 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
3533 aStrBuf
.getStr()== expVal
&&
3534 aStrBuf
.getLength() == expVal
.getLength()
3541 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
3542 OString
expVal( aStrBuf
.getStr() );
3543 sal_Int32 input
= 8;
3544 sal_Int16 radix
= 36;
3546 expVal
+= OString( "8" );
3547 aStrBuf
.append( input
, radix
);
3549 CPPUNIT_ASSERT_MESSAGE
3551 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
3552 aStrBuf
.getStr()== expVal
&&
3553 aStrBuf
.getLength() == expVal
.getLength()
3560 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
3561 OString
expVal( aStrBuf
.getStr() );
3562 sal_Int32 input
= 35;
3563 sal_Int16 radix
= 36;
3565 expVal
+= OString( "z" );
3566 aStrBuf
.append( input
, radix
);
3568 CPPUNIT_ASSERT_MESSAGE
3570 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
3571 aStrBuf
.getStr()== expVal
&&
3572 aStrBuf
.getLength() == expVal
.getLength()
3579 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
3580 OString
expVal( aStrBuf
.getStr() );
3581 sal_Int32 input
= 0;
3582 sal_Int16 radix
= 2;
3584 expVal
+= OString( "0" );
3585 aStrBuf
.append( input
, radix
);
3587 CPPUNIT_ASSERT_MESSAGE
3589 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
3590 aStrBuf
.getStr()== expVal
&&
3591 aStrBuf
.getLength() == expVal
.getLength()
3598 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
3599 OString
expVal( aStrBuf
.getStr() );
3600 sal_Int32 input
= 4;
3601 sal_Int16 radix
= 2;
3603 expVal
+= OString( "100" );
3604 aStrBuf
.append( input
, radix
);
3606 CPPUNIT_ASSERT_MESSAGE
3608 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
3609 aStrBuf
.getStr()== expVal
&&
3610 aStrBuf
.getLength() == expVal
.getLength()
3617 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
3618 OString
expVal( aStrBuf
.getStr() );
3619 sal_Int32 input
= 8;
3620 sal_Int16 radix
= 2;
3622 expVal
+= OString( "1000" );
3623 aStrBuf
.append( input
, radix
);
3625 CPPUNIT_ASSERT_MESSAGE
3627 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
3628 aStrBuf
.getStr()== expVal
&&
3629 aStrBuf
.getLength() == expVal
.getLength()
3636 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
3637 OString
expVal( aStrBuf
.getStr() );
3638 sal_Int32 input
= 15;
3639 sal_Int16 radix
= 2;
3641 expVal
+= OString( "1111" );
3642 aStrBuf
.append( input
, radix
);
3644 CPPUNIT_ASSERT_MESSAGE
3646 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
3647 aStrBuf
.getStr()== expVal
&&
3648 aStrBuf
.getLength() == expVal
.getLength()
3655 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
3656 OString
expVal( aStrBuf
.getStr() );
3657 sal_Int32 input
= 0;
3658 sal_Int16 radix
= 8;
3660 expVal
+= OString( "0" );
3661 aStrBuf
.append( input
, radix
);
3663 CPPUNIT_ASSERT_MESSAGE
3665 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
3666 aStrBuf
.getStr()== expVal
&&
3667 aStrBuf
.getLength() == expVal
.getLength()
3674 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
3675 OString
expVal( aStrBuf
.getStr() );
3676 sal_Int32 input
= 4;
3677 sal_Int16 radix
= 8;
3679 expVal
+= OString( "4" );
3680 aStrBuf
.append( input
, radix
);
3682 CPPUNIT_ASSERT_MESSAGE
3684 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
3685 aStrBuf
.getStr()== expVal
&&
3686 aStrBuf
.getLength() == expVal
.getLength()
3693 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
3694 OString
expVal( aStrBuf
.getStr() );
3695 sal_Int32 input
= 8;
3696 sal_Int16 radix
= 8;
3698 expVal
+= OString( "10" );
3699 aStrBuf
.append( input
, radix
);
3701 CPPUNIT_ASSERT_MESSAGE
3703 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
3704 aStrBuf
.getStr()== expVal
&&
3705 aStrBuf
.getLength() == expVal
.getLength()
3712 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
3713 OString
expVal( aStrBuf
.getStr() );
3714 sal_Int32 input
= 15;
3715 sal_Int16 radix
= 8;
3717 expVal
+= OString( "17" );
3718 aStrBuf
.append( input
, radix
);
3720 CPPUNIT_ASSERT_MESSAGE
3722 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
3723 aStrBuf
.getStr()== expVal
&&
3724 aStrBuf
.getLength() == expVal
.getLength()
3731 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
3732 OString
expVal( aStrBuf
.getStr() );
3733 sal_Int32 input
= 0;
3734 sal_Int16 radix
= 10;
3736 expVal
+= OString( "0" );
3737 aStrBuf
.append( input
, radix
);
3739 CPPUNIT_ASSERT_MESSAGE
3741 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
3742 aStrBuf
.getStr()== expVal
&&
3743 aStrBuf
.getLength() == expVal
.getLength()
3750 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
3751 OString
expVal( aStrBuf
.getStr() );
3752 sal_Int32 input
= 4;
3753 sal_Int16 radix
= 10;
3755 expVal
+= OString( "4" );
3756 aStrBuf
.append( input
, radix
);
3758 CPPUNIT_ASSERT_MESSAGE
3760 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
3761 aStrBuf
.getStr()== expVal
&&
3762 aStrBuf
.getLength() == expVal
.getLength()
3769 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
3770 OString
expVal( aStrBuf
.getStr() );
3771 sal_Int32 input
= 8;
3772 sal_Int16 radix
= 10;
3774 expVal
+= OString( "8" );
3775 aStrBuf
.append( input
, radix
);
3777 CPPUNIT_ASSERT_MESSAGE
3779 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
3780 aStrBuf
.getStr()== expVal
&&
3781 aStrBuf
.getLength() == expVal
.getLength()
3788 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
3789 OString
expVal( aStrBuf
.getStr() );
3790 sal_Int32 input
= 15;
3791 sal_Int16 radix
= 10;
3793 expVal
+= OString( "15" );
3794 aStrBuf
.append( input
, radix
);
3796 CPPUNIT_ASSERT_MESSAGE
3798 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
3799 aStrBuf
.getStr()== expVal
&&
3800 aStrBuf
.getLength() == expVal
.getLength()
3807 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
3808 OString
expVal( aStrBuf
.getStr() );
3809 sal_Int32 input
= 0;
3810 sal_Int16 radix
= 16;
3812 expVal
+= OString( "0" );
3813 aStrBuf
.append( input
, radix
);
3815 CPPUNIT_ASSERT_MESSAGE
3817 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
3818 aStrBuf
.getStr()== expVal
&&
3819 aStrBuf
.getLength() == expVal
.getLength()
3826 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
3827 OString
expVal( aStrBuf
.getStr() );
3828 sal_Int32 input
= 4;
3829 sal_Int16 radix
= 16;
3831 expVal
+= OString( "4" );
3832 aStrBuf
.append( input
, radix
);
3834 CPPUNIT_ASSERT_MESSAGE
3836 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
3837 aStrBuf
.getStr()== expVal
&&
3838 aStrBuf
.getLength() == expVal
.getLength()
3845 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
3846 OString
expVal( aStrBuf
.getStr() );
3847 sal_Int32 input
= 8;
3848 sal_Int16 radix
= 16;
3850 expVal
+= OString( "8" );
3851 aStrBuf
.append( input
, radix
);
3853 CPPUNIT_ASSERT_MESSAGE
3855 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
3856 aStrBuf
.getStr()== expVal
&&
3857 aStrBuf
.getLength() == expVal
.getLength()
3864 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
3865 OString
expVal( aStrBuf
.getStr() );
3866 sal_Int32 input
= 15;
3867 sal_Int16 radix
= 16;
3869 expVal
+= OString( "f" );
3870 aStrBuf
.append( input
, radix
);
3872 CPPUNIT_ASSERT_MESSAGE
3874 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
3875 aStrBuf
.getStr()== expVal
&&
3876 aStrBuf
.getLength() == expVal
.getLength()
3883 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
3884 OString
expVal( aStrBuf
.getStr() );
3885 sal_Int32 input
= 0;
3886 sal_Int16 radix
= 36;
3888 expVal
+= OString( "0" );
3889 aStrBuf
.append( input
, radix
);
3891 CPPUNIT_ASSERT_MESSAGE
3893 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
3894 aStrBuf
.getStr()== expVal
&&
3895 aStrBuf
.getLength() == expVal
.getLength()
3902 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
3903 OString
expVal( aStrBuf
.getStr() );
3904 sal_Int32 input
= 4;
3905 sal_Int16 radix
= 36;
3907 expVal
+= OString( "4" );
3908 aStrBuf
.append( input
, radix
);
3910 CPPUNIT_ASSERT_MESSAGE
3912 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
3913 aStrBuf
.getStr()== expVal
&&
3914 aStrBuf
.getLength() == expVal
.getLength()
3921 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
3922 OString
expVal( aStrBuf
.getStr() );
3923 sal_Int32 input
= 8;
3924 sal_Int16 radix
= 36;
3926 expVal
+= OString( "8" );
3927 aStrBuf
.append( input
, radix
);
3929 CPPUNIT_ASSERT_MESSAGE
3931 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
3932 aStrBuf
.getStr()== expVal
&&
3933 aStrBuf
.getLength() == expVal
.getLength()
3940 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
3941 OString
expVal( aStrBuf
.getStr() );
3942 sal_Int32 input
= 35;
3943 sal_Int16 radix
= 36;
3945 expVal
+= OString( "z" );
3946 aStrBuf
.append( input
, radix
);
3948 CPPUNIT_ASSERT_MESSAGE
3950 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
3951 aStrBuf
.getStr()== expVal
&&
3952 aStrBuf
.getLength() == expVal
.getLength()
3959 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
3960 OString
expVal( aStrBuf
.getStr() );
3961 sal_Int32 input
= 0;
3962 sal_Int16 radix
= 2;
3964 expVal
+= OString( "0" );
3965 aStrBuf
.append( input
, radix
);
3967 CPPUNIT_ASSERT_MESSAGE
3969 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
3970 aStrBuf
.getStr()== expVal
&&
3971 aStrBuf
.getLength() == expVal
.getLength()
3978 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
3979 OString
expVal( aStrBuf
.getStr() );
3980 sal_Int32 input
= 4;
3981 sal_Int16 radix
= 2;
3983 expVal
+= OString( "100" );
3984 aStrBuf
.append( input
, radix
);
3986 CPPUNIT_ASSERT_MESSAGE
3988 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
3989 aStrBuf
.getStr()== expVal
&&
3990 aStrBuf
.getLength() == expVal
.getLength()
3997 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
3998 OString
expVal( aStrBuf
.getStr() );
3999 sal_Int32 input
= 8;
4000 sal_Int16 radix
= 2;
4002 expVal
+= OString( "1000" );
4003 aStrBuf
.append( input
, radix
);
4005 CPPUNIT_ASSERT_MESSAGE
4007 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
4008 aStrBuf
.getStr()== expVal
&&
4009 aStrBuf
.getLength() == expVal
.getLength()
4016 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
4017 OString
expVal( aStrBuf
.getStr() );
4018 sal_Int32 input
= 15;
4019 sal_Int16 radix
= 2;
4021 expVal
+= OString( "1111" );
4022 aStrBuf
.append( input
, radix
);
4024 CPPUNIT_ASSERT_MESSAGE
4026 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
4027 aStrBuf
.getStr()== expVal
&&
4028 aStrBuf
.getLength() == expVal
.getLength()
4035 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
4036 OString
expVal( aStrBuf
.getStr() );
4037 sal_Int32 input
= 0;
4038 sal_Int16 radix
= 8;
4040 expVal
+= OString( "0" );
4041 aStrBuf
.append( input
, radix
);
4043 CPPUNIT_ASSERT_MESSAGE
4045 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
4046 aStrBuf
.getStr()== expVal
&&
4047 aStrBuf
.getLength() == expVal
.getLength()
4054 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
4055 OString
expVal( aStrBuf
.getStr() );
4056 sal_Int32 input
= 4;
4057 sal_Int16 radix
= 8;
4059 expVal
+= OString( "4" );
4060 aStrBuf
.append( input
, radix
);
4062 CPPUNIT_ASSERT_MESSAGE
4064 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
4065 aStrBuf
.getStr()== expVal
&&
4066 aStrBuf
.getLength() == expVal
.getLength()
4073 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
4074 OString
expVal( aStrBuf
.getStr() );
4075 sal_Int32 input
= 8;
4076 sal_Int16 radix
= 8;
4078 expVal
+= OString( "10" );
4079 aStrBuf
.append( input
, radix
);
4081 CPPUNIT_ASSERT_MESSAGE
4083 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
4084 aStrBuf
.getStr()== expVal
&&
4085 aStrBuf
.getLength() == expVal
.getLength()
4092 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
4093 OString
expVal( aStrBuf
.getStr() );
4094 sal_Int32 input
= 15;
4095 sal_Int16 radix
= 8;
4097 expVal
+= OString( "17" );
4098 aStrBuf
.append( input
, radix
);
4100 CPPUNIT_ASSERT_MESSAGE
4102 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
4103 aStrBuf
.getStr()== expVal
&&
4104 aStrBuf
.getLength() == expVal
.getLength()
4111 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
4112 OString
expVal( aStrBuf
.getStr() );
4113 sal_Int32 input
= 0;
4114 sal_Int16 radix
= 10;
4116 expVal
+= OString( "0" );
4117 aStrBuf
.append( input
, radix
);
4119 CPPUNIT_ASSERT_MESSAGE
4121 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
4122 aStrBuf
.getStr()== expVal
&&
4123 aStrBuf
.getLength() == expVal
.getLength()
4130 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
4131 OString
expVal( aStrBuf
.getStr() );
4132 sal_Int32 input
= 4;
4133 sal_Int16 radix
= 10;
4135 expVal
+= OString( "4" );
4136 aStrBuf
.append( input
, radix
);
4138 CPPUNIT_ASSERT_MESSAGE
4140 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
4141 aStrBuf
.getStr()== expVal
&&
4142 aStrBuf
.getLength() == expVal
.getLength()
4149 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
4150 OString
expVal( aStrBuf
.getStr() );
4151 sal_Int32 input
= 8;
4152 sal_Int16 radix
= 10;
4154 expVal
+= OString( "8" );
4155 aStrBuf
.append( input
, radix
);
4157 CPPUNIT_ASSERT_MESSAGE
4159 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
4160 aStrBuf
.getStr()== expVal
&&
4161 aStrBuf
.getLength() == expVal
.getLength()
4168 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
4169 OString
expVal( aStrBuf
.getStr() );
4170 sal_Int32 input
= 15;
4171 sal_Int16 radix
= 10;
4173 expVal
+= OString( "15" );
4174 aStrBuf
.append( input
, radix
);
4176 CPPUNIT_ASSERT_MESSAGE
4178 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
4179 aStrBuf
.getStr()== expVal
&&
4180 aStrBuf
.getLength() == expVal
.getLength()
4187 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
4188 OString
expVal( aStrBuf
.getStr() );
4189 sal_Int32 input
= 0;
4190 sal_Int16 radix
= 16;
4192 expVal
+= OString( "0" );
4193 aStrBuf
.append( input
, radix
);
4195 CPPUNIT_ASSERT_MESSAGE
4197 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
4198 aStrBuf
.getStr()== expVal
&&
4199 aStrBuf
.getLength() == expVal
.getLength()
4206 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
4207 OString
expVal( aStrBuf
.getStr() );
4208 sal_Int32 input
= 4;
4209 sal_Int16 radix
= 16;
4211 expVal
+= OString( "4" );
4212 aStrBuf
.append( input
, radix
);
4214 CPPUNIT_ASSERT_MESSAGE
4216 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
4217 aStrBuf
.getStr()== expVal
&&
4218 aStrBuf
.getLength() == expVal
.getLength()
4225 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
4226 OString
expVal( aStrBuf
.getStr() );
4227 sal_Int32 input
= 8;
4228 sal_Int16 radix
= 16;
4230 expVal
+= OString( "8" );
4231 aStrBuf
.append( input
, radix
);
4233 CPPUNIT_ASSERT_MESSAGE
4235 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
4236 aStrBuf
.getStr()== expVal
&&
4237 aStrBuf
.getLength() == expVal
.getLength()
4244 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
4245 OString
expVal( aStrBuf
.getStr() );
4246 sal_Int32 input
= 15;
4247 sal_Int16 radix
= 16;
4249 expVal
+= OString( "f" );
4250 aStrBuf
.append( input
, radix
);
4252 CPPUNIT_ASSERT_MESSAGE
4254 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
4255 aStrBuf
.getStr()== expVal
&&
4256 aStrBuf
.getLength() == expVal
.getLength()
4263 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
4264 OString
expVal( aStrBuf
.getStr() );
4265 sal_Int32 input
= 0;
4266 sal_Int16 radix
= 36;
4268 expVal
+= OString( "0" );
4269 aStrBuf
.append( input
, radix
);
4271 CPPUNIT_ASSERT_MESSAGE
4273 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
4274 aStrBuf
.getStr()== expVal
&&
4275 aStrBuf
.getLength() == expVal
.getLength()
4282 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
4283 OString
expVal( aStrBuf
.getStr() );
4284 sal_Int32 input
= 4;
4285 sal_Int16 radix
= 36;
4287 expVal
+= OString( "4" );
4288 aStrBuf
.append( input
, radix
);
4290 CPPUNIT_ASSERT_MESSAGE
4292 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
4293 aStrBuf
.getStr()== expVal
&&
4294 aStrBuf
.getLength() == expVal
.getLength()
4301 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
4302 OString
expVal( aStrBuf
.getStr() );
4303 sal_Int32 input
= 8;
4304 sal_Int16 radix
= 36;
4306 expVal
+= OString( "8" );
4307 aStrBuf
.append( input
, radix
);
4309 CPPUNIT_ASSERT_MESSAGE
4311 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
4312 aStrBuf
.getStr()== expVal
&&
4313 aStrBuf
.getLength() == expVal
.getLength()
4320 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
4321 OString
expVal( aStrBuf
.getStr() );
4322 sal_Int32 input
= 35;
4323 sal_Int16 radix
= 36;
4325 expVal
+= OString( "z" );
4326 aStrBuf
.append( input
, radix
);
4328 CPPUNIT_ASSERT_MESSAGE
4330 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
4331 aStrBuf
.getStr()== expVal
&&
4332 aStrBuf
.getLength() == expVal
.getLength()
4339 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
4340 OString
expVal( aStrBuf
.getStr() );
4341 sal_Int32 input
= 0;
4342 sal_Int16 radix
= 2;
4344 expVal
+= OString( "0" );
4345 aStrBuf
.append( input
, radix
);
4347 CPPUNIT_ASSERT_MESSAGE
4349 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
4350 aStrBuf
.getStr()== expVal
&&
4351 aStrBuf
.getLength() == expVal
.getLength()
4358 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
4359 OString
expVal( aStrBuf
.getStr() );
4360 sal_Int32 input
= 4;
4361 sal_Int16 radix
= 2;
4363 expVal
+= OString( "100" );
4364 aStrBuf
.append( input
, radix
);
4366 CPPUNIT_ASSERT_MESSAGE
4368 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
4369 aStrBuf
.getStr()== expVal
&&
4370 aStrBuf
.getLength() == expVal
.getLength()
4377 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
4378 OString
expVal( aStrBuf
.getStr() );
4379 sal_Int32 input
= 8;
4380 sal_Int16 radix
= 2;
4382 expVal
+= OString( "1000" );
4383 aStrBuf
.append( input
, radix
);
4385 CPPUNIT_ASSERT_MESSAGE
4387 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
4388 aStrBuf
.getStr()== expVal
&&
4389 aStrBuf
.getLength() == expVal
.getLength()
4396 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
4397 OString
expVal( aStrBuf
.getStr() );
4398 sal_Int32 input
= 15;
4399 sal_Int16 radix
= 2;
4401 expVal
+= OString( "1111" );
4402 aStrBuf
.append( input
, radix
);
4404 CPPUNIT_ASSERT_MESSAGE
4406 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
4407 aStrBuf
.getStr()== expVal
&&
4408 aStrBuf
.getLength() == expVal
.getLength()
4415 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
4416 OString
expVal( aStrBuf
.getStr() );
4417 sal_Int32 input
= 0;
4418 sal_Int16 radix
= 8;
4420 expVal
+= OString( "0" );
4421 aStrBuf
.append( input
, radix
);
4423 CPPUNIT_ASSERT_MESSAGE
4425 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
4426 aStrBuf
.getStr()== expVal
&&
4427 aStrBuf
.getLength() == expVal
.getLength()
4434 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
4435 OString
expVal( aStrBuf
.getStr() );
4436 sal_Int32 input
= 4;
4437 sal_Int16 radix
= 8;
4439 expVal
+= OString( "4" );
4440 aStrBuf
.append( input
, radix
);
4442 CPPUNIT_ASSERT_MESSAGE
4444 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
4445 aStrBuf
.getStr()== expVal
&&
4446 aStrBuf
.getLength() == expVal
.getLength()
4453 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
4454 OString
expVal( aStrBuf
.getStr() );
4455 sal_Int32 input
= 8;
4456 sal_Int16 radix
= 8;
4458 expVal
+= OString( "10" );
4459 aStrBuf
.append( input
, radix
);
4461 CPPUNIT_ASSERT_MESSAGE
4463 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
4464 aStrBuf
.getStr()== expVal
&&
4465 aStrBuf
.getLength() == expVal
.getLength()
4472 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
4473 OString
expVal( aStrBuf
.getStr() );
4474 sal_Int32 input
= 15;
4475 sal_Int16 radix
= 8;
4477 expVal
+= OString( "17" );
4478 aStrBuf
.append( input
, radix
);
4480 CPPUNIT_ASSERT_MESSAGE
4482 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
4483 aStrBuf
.getStr()== expVal
&&
4484 aStrBuf
.getLength() == expVal
.getLength()
4491 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
4492 OString
expVal( aStrBuf
.getStr() );
4493 sal_Int32 input
= 0;
4494 sal_Int16 radix
= 10;
4496 expVal
+= OString( "0" );
4497 aStrBuf
.append( input
, radix
);
4499 CPPUNIT_ASSERT_MESSAGE
4501 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
4502 aStrBuf
.getStr()== expVal
&&
4503 aStrBuf
.getLength() == expVal
.getLength()
4510 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
4511 OString
expVal( aStrBuf
.getStr() );
4512 sal_Int32 input
= 4;
4513 sal_Int16 radix
= 10;
4515 expVal
+= OString( "4" );
4516 aStrBuf
.append( input
, radix
);
4518 CPPUNIT_ASSERT_MESSAGE
4520 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
4521 aStrBuf
.getStr()== expVal
&&
4522 aStrBuf
.getLength() == expVal
.getLength()
4529 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
4530 OString
expVal( aStrBuf
.getStr() );
4531 sal_Int32 input
= 8;
4532 sal_Int16 radix
= 10;
4534 expVal
+= OString( "8" );
4535 aStrBuf
.append( input
, radix
);
4537 CPPUNIT_ASSERT_MESSAGE
4539 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
4540 aStrBuf
.getStr()== expVal
&&
4541 aStrBuf
.getLength() == expVal
.getLength()
4548 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
4549 OString
expVal( aStrBuf
.getStr() );
4550 sal_Int32 input
= 15;
4551 sal_Int16 radix
= 10;
4553 expVal
+= OString( "15" );
4554 aStrBuf
.append( input
, radix
);
4556 CPPUNIT_ASSERT_MESSAGE
4558 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
4559 aStrBuf
.getStr()== expVal
&&
4560 aStrBuf
.getLength() == expVal
.getLength()
4567 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
4568 OString
expVal( aStrBuf
.getStr() );
4569 sal_Int32 input
= 0;
4570 sal_Int16 radix
= 16;
4572 expVal
+= OString( "0" );
4573 aStrBuf
.append( input
, radix
);
4575 CPPUNIT_ASSERT_MESSAGE
4577 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
4578 aStrBuf
.getStr()== expVal
&&
4579 aStrBuf
.getLength() == expVal
.getLength()
4586 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
4587 OString
expVal( aStrBuf
.getStr() );
4588 sal_Int32 input
= 4;
4589 sal_Int16 radix
= 16;
4591 expVal
+= OString( "4" );
4592 aStrBuf
.append( input
, radix
);
4594 CPPUNIT_ASSERT_MESSAGE
4596 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
4597 aStrBuf
.getStr()== expVal
&&
4598 aStrBuf
.getLength() == expVal
.getLength()
4605 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
4606 OString
expVal( aStrBuf
.getStr() );
4607 sal_Int32 input
= 8;
4608 sal_Int16 radix
= 16;
4610 expVal
+= OString( "8" );
4611 aStrBuf
.append( input
, radix
);
4613 CPPUNIT_ASSERT_MESSAGE
4615 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
4616 aStrBuf
.getStr()== expVal
&&
4617 aStrBuf
.getLength() == expVal
.getLength()
4624 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
4625 OString
expVal( aStrBuf
.getStr() );
4626 sal_Int32 input
= 15;
4627 sal_Int16 radix
= 16;
4629 expVal
+= OString( "f" );
4630 aStrBuf
.append( input
, radix
);
4632 CPPUNIT_ASSERT_MESSAGE
4634 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
4635 aStrBuf
.getStr()== expVal
&&
4636 aStrBuf
.getLength() == expVal
.getLength()
4643 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
4644 OString
expVal( aStrBuf
.getStr() );
4645 sal_Int32 input
= 0;
4646 sal_Int16 radix
= 36;
4648 expVal
+= OString( "0" );
4649 aStrBuf
.append( input
, radix
);
4651 CPPUNIT_ASSERT_MESSAGE
4653 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
4654 aStrBuf
.getStr()== expVal
&&
4655 aStrBuf
.getLength() == expVal
.getLength()
4662 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
4663 OString
expVal( aStrBuf
.getStr() );
4664 sal_Int32 input
= 4;
4665 sal_Int16 radix
= 36;
4667 expVal
+= OString( "4" );
4668 aStrBuf
.append( input
, radix
);
4670 CPPUNIT_ASSERT_MESSAGE
4672 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
4673 aStrBuf
.getStr()== expVal
&&
4674 aStrBuf
.getLength() == expVal
.getLength()
4681 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
4682 OString
expVal( aStrBuf
.getStr() );
4683 sal_Int32 input
= 8;
4684 sal_Int16 radix
= 36;
4686 expVal
+= OString( "8" );
4687 aStrBuf
.append( input
, radix
);
4689 CPPUNIT_ASSERT_MESSAGE
4691 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
4692 aStrBuf
.getStr()== expVal
&&
4693 aStrBuf
.getLength() == expVal
.getLength()
4700 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
4701 OString
expVal( aStrBuf
.getStr() );
4702 sal_Int32 input
= 35;
4703 sal_Int16 radix
= 36;
4705 expVal
+= OString( "z" );
4706 aStrBuf
.append( input
, radix
);
4708 CPPUNIT_ASSERT_MESSAGE
4710 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
4711 aStrBuf
.getStr()== expVal
&&
4712 aStrBuf
.getLength() == expVal
.getLength()
4719 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
4720 OString
expVal( aStrBuf
.getStr() );
4721 sal_Int32 input
= 0;
4722 sal_Int16 radix
= 2;
4724 expVal
+= OString( "0" );
4725 aStrBuf
.append( input
, radix
);
4727 CPPUNIT_ASSERT_MESSAGE
4729 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
4730 aStrBuf
.getStr()== expVal
&&
4731 aStrBuf
.getLength() == expVal
.getLength()
4738 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
4739 OString
expVal( aStrBuf
.getStr() );
4740 sal_Int32 input
= 4;
4741 sal_Int16 radix
= 2;
4743 expVal
+= OString( "100" );
4744 aStrBuf
.append( input
, radix
);
4746 CPPUNIT_ASSERT_MESSAGE
4748 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
4749 aStrBuf
.getStr()== expVal
&&
4750 aStrBuf
.getLength() == expVal
.getLength()
4757 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
4758 OString
expVal( aStrBuf
.getStr() );
4759 sal_Int32 input
= 8;
4760 sal_Int16 radix
= 2;
4762 expVal
+= OString( "1000" );
4763 aStrBuf
.append( input
, radix
);
4765 CPPUNIT_ASSERT_MESSAGE
4767 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
4768 aStrBuf
.getStr()== expVal
&&
4769 aStrBuf
.getLength() == expVal
.getLength()
4776 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
4777 OString
expVal( aStrBuf
.getStr() );
4778 sal_Int32 input
= 15;
4779 sal_Int16 radix
= 2;
4781 expVal
+= OString( "1111" );
4782 aStrBuf
.append( input
, radix
);
4784 CPPUNIT_ASSERT_MESSAGE
4786 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
4787 aStrBuf
.getStr()== expVal
&&
4788 aStrBuf
.getLength() == expVal
.getLength()
4795 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
4796 OString
expVal( aStrBuf
.getStr() );
4797 sal_Int32 input
= 0;
4798 sal_Int16 radix
= 8;
4800 expVal
+= OString( "0" );
4801 aStrBuf
.append( input
, radix
);
4803 CPPUNIT_ASSERT_MESSAGE
4805 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
4806 aStrBuf
.getStr()== expVal
&&
4807 aStrBuf
.getLength() == expVal
.getLength()
4814 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
4815 OString
expVal( aStrBuf
.getStr() );
4816 sal_Int32 input
= 4;
4817 sal_Int16 radix
= 8;
4819 expVal
+= OString( "4" );
4820 aStrBuf
.append( input
, radix
);
4822 CPPUNIT_ASSERT_MESSAGE
4824 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
4825 aStrBuf
.getStr()== expVal
&&
4826 aStrBuf
.getLength() == expVal
.getLength()
4833 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
4834 OString
expVal( aStrBuf
.getStr() );
4835 sal_Int32 input
= 8;
4836 sal_Int16 radix
= 8;
4838 expVal
+= OString( "10" );
4839 aStrBuf
.append( input
, radix
);
4841 CPPUNIT_ASSERT_MESSAGE
4843 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
4844 aStrBuf
.getStr()== expVal
&&
4845 aStrBuf
.getLength() == expVal
.getLength()
4852 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
4853 OString
expVal( aStrBuf
.getStr() );
4854 sal_Int32 input
= 15;
4855 sal_Int16 radix
= 8;
4857 expVal
+= OString( "17" );
4858 aStrBuf
.append( input
, radix
);
4860 CPPUNIT_ASSERT_MESSAGE
4862 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
4863 aStrBuf
.getStr()== expVal
&&
4864 aStrBuf
.getLength() == expVal
.getLength()
4871 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
4872 OString
expVal( aStrBuf
.getStr() );
4873 sal_Int32 input
= 0;
4874 sal_Int16 radix
= 10;
4876 expVal
+= OString( "0" );
4877 aStrBuf
.append( input
, radix
);
4879 CPPUNIT_ASSERT_MESSAGE
4881 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
4882 aStrBuf
.getStr()== expVal
&&
4883 aStrBuf
.getLength() == expVal
.getLength()
4890 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
4891 OString
expVal( aStrBuf
.getStr() );
4892 sal_Int32 input
= 4;
4893 sal_Int16 radix
= 10;
4895 expVal
+= OString( "4" );
4896 aStrBuf
.append( input
, radix
);
4898 CPPUNIT_ASSERT_MESSAGE
4900 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
4901 aStrBuf
.getStr()== expVal
&&
4902 aStrBuf
.getLength() == expVal
.getLength()
4909 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
4910 OString
expVal( aStrBuf
.getStr() );
4911 sal_Int32 input
= 8;
4912 sal_Int16 radix
= 10;
4914 expVal
+= OString( "8" );
4915 aStrBuf
.append( input
, radix
);
4917 CPPUNIT_ASSERT_MESSAGE
4919 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
4920 aStrBuf
.getStr()== expVal
&&
4921 aStrBuf
.getLength() == expVal
.getLength()
4928 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
4929 OString
expVal( aStrBuf
.getStr() );
4930 sal_Int32 input
= 15;
4931 sal_Int16 radix
= 10;
4933 expVal
+= OString( "15" );
4934 aStrBuf
.append( input
, radix
);
4936 CPPUNIT_ASSERT_MESSAGE
4938 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
4939 aStrBuf
.getStr()== expVal
&&
4940 aStrBuf
.getLength() == expVal
.getLength()
4947 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
4948 OString
expVal( aStrBuf
.getStr() );
4949 sal_Int32 input
= 0;
4950 sal_Int16 radix
= 16;
4952 expVal
+= OString( "0" );
4953 aStrBuf
.append( input
, radix
);
4955 CPPUNIT_ASSERT_MESSAGE
4957 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
4958 aStrBuf
.getStr()== expVal
&&
4959 aStrBuf
.getLength() == expVal
.getLength()
4966 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
4967 OString
expVal( aStrBuf
.getStr() );
4968 sal_Int32 input
= 4;
4969 sal_Int16 radix
= 16;
4971 expVal
+= OString( "4" );
4972 aStrBuf
.append( input
, radix
);
4974 CPPUNIT_ASSERT_MESSAGE
4976 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
4977 aStrBuf
.getStr()== expVal
&&
4978 aStrBuf
.getLength() == expVal
.getLength()
4985 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
4986 OString
expVal( aStrBuf
.getStr() );
4987 sal_Int32 input
= 8;
4988 sal_Int16 radix
= 16;
4990 expVal
+= OString( "8" );
4991 aStrBuf
.append( input
, radix
);
4993 CPPUNIT_ASSERT_MESSAGE
4995 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
4996 aStrBuf
.getStr()== expVal
&&
4997 aStrBuf
.getLength() == expVal
.getLength()
5004 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
5005 OString
expVal( aStrBuf
.getStr() );
5006 sal_Int32 input
= 15;
5007 sal_Int16 radix
= 16;
5009 expVal
+= OString( "f" );
5010 aStrBuf
.append( input
, radix
);
5012 CPPUNIT_ASSERT_MESSAGE
5014 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
5015 aStrBuf
.getStr()== expVal
&&
5016 aStrBuf
.getLength() == expVal
.getLength()
5023 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
5024 OString
expVal( aStrBuf
.getStr() );
5025 sal_Int32 input
= 0;
5026 sal_Int16 radix
= 36;
5028 expVal
+= OString( "0" );
5029 aStrBuf
.append( input
, radix
);
5031 CPPUNIT_ASSERT_MESSAGE
5033 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
5034 aStrBuf
.getStr()== expVal
&&
5035 aStrBuf
.getLength() == expVal
.getLength()
5042 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
5043 OString
expVal( aStrBuf
.getStr() );
5044 sal_Int32 input
= 4;
5045 sal_Int16 radix
= 36;
5047 expVal
+= OString( "4" );
5048 aStrBuf
.append( input
, radix
);
5050 CPPUNIT_ASSERT_MESSAGE
5052 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
5053 aStrBuf
.getStr()== expVal
&&
5054 aStrBuf
.getLength() == expVal
.getLength()
5061 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
5062 OString
expVal( aStrBuf
.getStr() );
5063 sal_Int32 input
= 8;
5064 sal_Int16 radix
= 36;
5066 expVal
+= OString( "8" );
5067 aStrBuf
.append( input
, radix
);
5069 CPPUNIT_ASSERT_MESSAGE
5071 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
5072 aStrBuf
.getStr()== expVal
&&
5073 aStrBuf
.getLength() == expVal
.getLength()
5080 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
5081 OString
expVal( aStrBuf
.getStr() );
5082 sal_Int32 input
= 35;
5083 sal_Int16 radix
= 36;
5085 expVal
+= OString( "z" );
5086 aStrBuf
.append( input
, radix
);
5088 CPPUNIT_ASSERT_MESSAGE
5090 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
5091 aStrBuf
.getStr()== expVal
&&
5092 aStrBuf
.getLength() == expVal
.getLength()
5097 CPPUNIT_TEST_SUITE( append_006_Int32
);
5098 CPPUNIT_TEST( append_001
); CPPUNIT_TEST( append_002
);
5099 CPPUNIT_TEST( append_003
); CPPUNIT_TEST( append_004
);
5100 CPPUNIT_TEST( append_005
); CPPUNIT_TEST( append_006
);
5101 CPPUNIT_TEST( append_007
); CPPUNIT_TEST( append_008
);
5102 CPPUNIT_TEST( append_009
); CPPUNIT_TEST( append_010
);
5103 CPPUNIT_TEST( append_011
); CPPUNIT_TEST( append_012
);
5104 CPPUNIT_TEST( append_013
); CPPUNIT_TEST( append_014
);
5105 CPPUNIT_TEST( append_015
); CPPUNIT_TEST( append_016
);
5106 CPPUNIT_TEST( append_017
); CPPUNIT_TEST( append_018
);
5107 CPPUNIT_TEST( append_019
); CPPUNIT_TEST( append_020
);
5108 CPPUNIT_TEST( append_021
); CPPUNIT_TEST( append_022
);
5109 CPPUNIT_TEST( append_023
); CPPUNIT_TEST( append_024
);
5110 CPPUNIT_TEST( append_025
); CPPUNIT_TEST( append_026
);
5111 CPPUNIT_TEST( append_027
); CPPUNIT_TEST( append_028
);
5112 CPPUNIT_TEST( append_029
); CPPUNIT_TEST( append_030
);
5113 CPPUNIT_TEST( append_031
); CPPUNIT_TEST( append_032
);
5114 CPPUNIT_TEST( append_033
); CPPUNIT_TEST( append_034
);
5115 CPPUNIT_TEST( append_035
); CPPUNIT_TEST( append_036
);
5116 CPPUNIT_TEST( append_037
); CPPUNIT_TEST( append_038
);
5117 CPPUNIT_TEST( append_039
); CPPUNIT_TEST( append_040
);
5118 CPPUNIT_TEST( append_041
); CPPUNIT_TEST( append_042
);
5119 CPPUNIT_TEST( append_043
); CPPUNIT_TEST( append_044
);
5120 CPPUNIT_TEST( append_045
); CPPUNIT_TEST( append_046
);
5121 CPPUNIT_TEST( append_047
); CPPUNIT_TEST( append_048
);
5122 CPPUNIT_TEST( append_049
); CPPUNIT_TEST( append_050
);
5123 CPPUNIT_TEST( append_051
); CPPUNIT_TEST( append_052
);
5124 CPPUNIT_TEST( append_053
); CPPUNIT_TEST( append_054
);
5125 CPPUNIT_TEST( append_055
); CPPUNIT_TEST( append_056
);
5126 CPPUNIT_TEST( append_057
); CPPUNIT_TEST( append_058
);
5127 CPPUNIT_TEST( append_059
); CPPUNIT_TEST( append_060
);
5128 CPPUNIT_TEST( append_061
); CPPUNIT_TEST( append_062
);
5129 CPPUNIT_TEST( append_063
); CPPUNIT_TEST( append_064
);
5130 CPPUNIT_TEST( append_065
); CPPUNIT_TEST( append_066
);
5131 CPPUNIT_TEST( append_067
); CPPUNIT_TEST( append_068
);
5132 CPPUNIT_TEST( append_069
); CPPUNIT_TEST( append_070
);
5133 CPPUNIT_TEST( append_071
); CPPUNIT_TEST( append_072
);
5134 CPPUNIT_TEST( append_073
); CPPUNIT_TEST( append_074
);
5135 CPPUNIT_TEST( append_075
); CPPUNIT_TEST( append_076
);
5136 CPPUNIT_TEST( append_077
); CPPUNIT_TEST( append_078
);
5137 CPPUNIT_TEST( append_079
); CPPUNIT_TEST( append_080
);
5138 CPPUNIT_TEST( append_081
); CPPUNIT_TEST( append_082
);
5139 CPPUNIT_TEST( append_083
); CPPUNIT_TEST( append_084
);
5140 CPPUNIT_TEST( append_085
); CPPUNIT_TEST( append_086
);
5141 CPPUNIT_TEST( append_087
); CPPUNIT_TEST( append_088
);
5142 CPPUNIT_TEST( append_089
); CPPUNIT_TEST( append_090
);
5143 CPPUNIT_TEST( append_091
); CPPUNIT_TEST( append_092
);
5144 CPPUNIT_TEST( append_093
); CPPUNIT_TEST( append_094
);
5145 CPPUNIT_TEST( append_095
); CPPUNIT_TEST( append_096
);
5146 CPPUNIT_TEST( append_097
); CPPUNIT_TEST( append_098
);
5147 CPPUNIT_TEST( append_099
); CPPUNIT_TEST( append_100
);
5148 CPPUNIT_TEST_SUITE_END();
5151 // testing the method append( sal_Int32 i, sal_Int16 radix=2 )
5152 // where i = large constants
5153 // testing the method append( sal_Int32 i, sal_Int16 radix=8 )
5154 // where i = large constants
5155 // testing the method append( sal_Int32 i, sal_Int16 radix=10 )
5156 // where i = large constants
5157 // testing the method append( sal_Int32 i, sal_Int16 radix=16 )
5158 // where i = large constants
5159 // testing the method append( sal_Int32 i, sal_Int16 radix=36 )
5160 // where i = large constants
5162 class append_006_Int32_Bounderies
: public CppUnit::TestFixture
5167 void setUp() SAL_OVERRIDE
5169 arrOUS
[0] = new OString( kTestStr7
);
5170 arrOUS
[1] = new OString( );
5171 arrOUS
[2] = new OString( kTestStr25
);
5172 arrOUS
[3] = new OString( "" );
5173 arrOUS
[4] = new OString( kTestStr28
);
5177 void tearDown() SAL_OVERRIDE
5179 delete arrOUS
[0]; delete arrOUS
[1]; delete arrOUS
[2];
5180 delete arrOUS
[3]; delete arrOUS
[4];
5185 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
5186 OString
expVal( aStrBuf
.getStr() );
5187 sal_Int32 input
= kSInt8Max
;
5188 sal_Int16 radix
= 2;
5190 expVal
+= OString( "1111111" );
5191 aStrBuf
.append( input
, radix
);
5193 CPPUNIT_ASSERT_MESSAGE
5195 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
5196 aStrBuf
.getStr()== expVal
&&
5197 aStrBuf
.getLength() == expVal
.getLength()
5204 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
5205 OString
expVal( aStrBuf
.getStr() );
5206 sal_Int32 input
= kSInt32Max
;
5207 sal_Int16 radix
= 2;
5209 expVal
+= OString( "1111111111111111111111111111111" );
5210 aStrBuf
.append( input
, radix
);
5212 CPPUNIT_ASSERT_MESSAGE
5214 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
5215 aStrBuf
.getStr()== expVal
&&
5216 aStrBuf
.getLength() == expVal
.getLength()
5223 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
5224 OString
expVal( aStrBuf
.getStr() );
5225 sal_Int32 input
= kSInt8Max
;
5226 sal_Int16 radix
= 8;
5228 expVal
+= OString( "177" );
5229 aStrBuf
.append( input
, radix
);
5231 CPPUNIT_ASSERT_MESSAGE
5233 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
5234 aStrBuf
.getStr()== expVal
&&
5235 aStrBuf
.getLength() == expVal
.getLength()
5242 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
5243 OString
expVal( aStrBuf
.getStr() );
5244 sal_Int32 input
= kSInt32Max
;
5245 sal_Int16 radix
= 8;
5247 expVal
+= OString( "17777777777" );
5248 aStrBuf
.append( input
, radix
);
5250 CPPUNIT_ASSERT_MESSAGE
5252 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
5253 aStrBuf
.getStr()== expVal
&&
5254 aStrBuf
.getLength() == expVal
.getLength()
5261 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
5262 OString
expVal( aStrBuf
.getStr() );
5263 sal_Int32 input
= kSInt8Max
;
5264 sal_Int16 radix
= 10;
5266 expVal
+= OString( "127" );
5267 aStrBuf
.append( input
, radix
);
5269 CPPUNIT_ASSERT_MESSAGE
5271 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
5272 aStrBuf
.getStr()== expVal
&&
5273 aStrBuf
.getLength() == expVal
.getLength()
5280 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
5281 OString
expVal( aStrBuf
.getStr() );
5282 sal_Int32 input
= kSInt32Max
;
5283 sal_Int16 radix
= 10;
5285 expVal
+= OString( "2147483647" );
5286 aStrBuf
.append( input
, radix
);
5288 CPPUNIT_ASSERT_MESSAGE
5290 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
5291 aStrBuf
.getStr()== expVal
&&
5292 aStrBuf
.getLength() == expVal
.getLength()
5299 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
5300 OString
expVal( aStrBuf
.getStr() );
5301 sal_Int32 input
= kSInt8Max
;
5302 sal_Int16 radix
= 16;
5304 expVal
+= OString( "7f" );
5305 aStrBuf
.append( input
, radix
);
5307 CPPUNIT_ASSERT_MESSAGE
5309 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
5310 aStrBuf
.getStr()== expVal
&&
5311 aStrBuf
.getLength() == expVal
.getLength()
5318 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
5319 OString
expVal( aStrBuf
.getStr() );
5320 sal_Int32 input
= kSInt32Max
;
5321 sal_Int16 radix
= 16;
5323 expVal
+= OString( "7fffffff" );
5324 aStrBuf
.append( input
, radix
);
5326 CPPUNIT_ASSERT_MESSAGE
5328 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
5329 aStrBuf
.getStr()== expVal
&&
5330 aStrBuf
.getLength() == expVal
.getLength()
5337 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
5338 OString
expVal( aStrBuf
.getStr() );
5339 sal_Int32 input
= kSInt8Max
;
5340 sal_Int16 radix
= 36;
5342 expVal
+= OString( "3j" );
5343 aStrBuf
.append( input
, radix
);
5345 CPPUNIT_ASSERT_MESSAGE
5347 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
5348 aStrBuf
.getStr()== expVal
&&
5349 aStrBuf
.getLength() == expVal
.getLength()
5356 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
5357 OString
expVal( aStrBuf
.getStr() );
5358 sal_Int32 input
= kSInt32Max
;
5359 sal_Int16 radix
= 36;
5361 expVal
+= OString( "zik0zj" );
5362 aStrBuf
.append( input
, radix
);
5364 CPPUNIT_ASSERT_MESSAGE
5366 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
5367 aStrBuf
.getStr()== expVal
&&
5368 aStrBuf
.getLength() == expVal
.getLength()
5375 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
5376 OString
expVal( aStrBuf
.getStr() );
5377 sal_Int32 input
= kSInt8Max
;
5378 sal_Int16 radix
= 2;
5380 expVal
+= OString( "1111111" );
5381 aStrBuf
.append( input
, radix
);
5383 CPPUNIT_ASSERT_MESSAGE
5385 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
5386 aStrBuf
.getStr()== expVal
&&
5387 aStrBuf
.getLength() == expVal
.getLength()
5394 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
5395 OString
expVal( aStrBuf
.getStr() );
5396 sal_Int32 input
= kSInt32Max
;
5397 sal_Int16 radix
= 2;
5399 expVal
+= OString( "1111111111111111111111111111111" );
5400 aStrBuf
.append( input
, radix
);
5402 CPPUNIT_ASSERT_MESSAGE
5404 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
5405 aStrBuf
.getStr()== expVal
&&
5406 aStrBuf
.getLength() == expVal
.getLength()
5413 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
5414 OString
expVal( aStrBuf
.getStr() );
5415 sal_Int32 input
= kSInt8Max
;
5416 sal_Int16 radix
= 8;
5418 expVal
+= OString( "177" );
5419 aStrBuf
.append( input
, radix
);
5421 CPPUNIT_ASSERT_MESSAGE
5423 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
5424 aStrBuf
.getStr()== expVal
&&
5425 aStrBuf
.getLength() == expVal
.getLength()
5432 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
5433 OString
expVal( aStrBuf
.getStr() );
5434 sal_Int32 input
= kSInt32Max
;
5435 sal_Int16 radix
= 8;
5437 expVal
+= OString( "17777777777" );
5438 aStrBuf
.append( input
, radix
);
5440 CPPUNIT_ASSERT_MESSAGE
5442 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
5443 aStrBuf
.getStr()== expVal
&&
5444 aStrBuf
.getLength() == expVal
.getLength()
5451 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
5452 OString
expVal( aStrBuf
.getStr() );
5453 sal_Int32 input
= kSInt8Max
;
5454 sal_Int16 radix
= 10;
5456 expVal
+= OString( "127" );
5457 aStrBuf
.append( input
, radix
);
5459 CPPUNIT_ASSERT_MESSAGE
5461 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
5462 aStrBuf
.getStr()== expVal
&&
5463 aStrBuf
.getLength() == expVal
.getLength()
5470 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
5471 OString
expVal( aStrBuf
.getStr() );
5472 sal_Int32 input
= kSInt32Max
;
5473 sal_Int16 radix
= 10;
5475 expVal
+= OString( "2147483647" );
5476 aStrBuf
.append( input
, radix
);
5478 CPPUNIT_ASSERT_MESSAGE
5480 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
5481 aStrBuf
.getStr()== expVal
&&
5482 aStrBuf
.getLength() == expVal
.getLength()
5489 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
5490 OString
expVal( aStrBuf
.getStr() );
5491 sal_Int32 input
= kSInt8Max
;
5492 sal_Int16 radix
= 16;
5494 expVal
+= OString( "7f" );
5495 aStrBuf
.append( input
, radix
);
5497 CPPUNIT_ASSERT_MESSAGE
5499 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
5500 aStrBuf
.getStr()== expVal
&&
5501 aStrBuf
.getLength() == expVal
.getLength()
5508 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
5509 OString
expVal( aStrBuf
.getStr() );
5510 sal_Int32 input
= kSInt32Max
;
5511 sal_Int16 radix
= 16;
5513 expVal
+= OString( "7fffffff" );
5514 aStrBuf
.append( input
, radix
);
5516 CPPUNIT_ASSERT_MESSAGE
5518 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
5519 aStrBuf
.getStr()== expVal
&&
5520 aStrBuf
.getLength() == expVal
.getLength()
5527 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
5528 OString
expVal( aStrBuf
.getStr() );
5529 sal_Int32 input
= kSInt8Max
;
5530 sal_Int16 radix
= 36;
5532 expVal
+= OString( "3j" );
5533 aStrBuf
.append( input
, radix
);
5535 CPPUNIT_ASSERT_MESSAGE
5537 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
5538 aStrBuf
.getStr()== expVal
&&
5539 aStrBuf
.getLength() == expVal
.getLength()
5546 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
5547 OString
expVal( aStrBuf
.getStr() );
5548 sal_Int32 input
= kSInt32Max
;
5549 sal_Int16 radix
= 36;
5551 expVal
+= OString( "zik0zj" );
5552 aStrBuf
.append( input
, radix
);
5554 CPPUNIT_ASSERT_MESSAGE
5556 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
5557 aStrBuf
.getStr()== expVal
&&
5558 aStrBuf
.getLength() == expVal
.getLength()
5565 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
5566 OString
expVal( aStrBuf
.getStr() );
5567 sal_Int32 input
= kSInt8Max
;
5568 sal_Int16 radix
= 2;
5570 expVal
+= OString( "1111111" );
5571 aStrBuf
.append( input
, radix
);
5573 CPPUNIT_ASSERT_MESSAGE
5575 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
5576 aStrBuf
.getStr()== expVal
&&
5577 aStrBuf
.getLength() == expVal
.getLength()
5584 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
5585 OString
expVal( aStrBuf
.getStr() );
5586 sal_Int32 input
= kSInt32Max
;
5587 sal_Int16 radix
= 2;
5589 expVal
+= OString( "1111111111111111111111111111111" );
5590 aStrBuf
.append( input
, radix
);
5592 CPPUNIT_ASSERT_MESSAGE
5594 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
5595 aStrBuf
.getStr()== expVal
&&
5596 aStrBuf
.getLength() == expVal
.getLength()
5603 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
5604 OString
expVal( aStrBuf
.getStr() );
5605 sal_Int32 input
= kSInt8Max
;
5606 sal_Int16 radix
= 8;
5608 expVal
+= OString( "177" );
5609 aStrBuf
.append( input
, radix
);
5611 CPPUNIT_ASSERT_MESSAGE
5613 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
5614 aStrBuf
.getStr()== expVal
&&
5615 aStrBuf
.getLength() == expVal
.getLength()
5622 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
5623 OString
expVal( aStrBuf
.getStr() );
5624 sal_Int32 input
= kSInt32Max
;
5625 sal_Int16 radix
= 8;
5627 expVal
+= OString( "17777777777" );
5628 aStrBuf
.append( input
, radix
);
5630 CPPUNIT_ASSERT_MESSAGE
5632 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
5633 aStrBuf
.getStr()== expVal
&&
5634 aStrBuf
.getLength() == expVal
.getLength()
5641 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
5642 OString
expVal( aStrBuf
.getStr() );
5643 sal_Int32 input
= kSInt8Max
;
5644 sal_Int16 radix
= 10;
5646 expVal
+= OString( "127" );
5647 aStrBuf
.append( input
, radix
);
5649 CPPUNIT_ASSERT_MESSAGE
5651 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
5652 aStrBuf
.getStr()== expVal
&&
5653 aStrBuf
.getLength() == expVal
.getLength()
5660 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
5661 OString
expVal( aStrBuf
.getStr() );
5662 sal_Int32 input
= kSInt32Max
;
5663 sal_Int16 radix
= 10;
5665 expVal
+= OString( "2147483647" );
5666 aStrBuf
.append( input
, radix
);
5668 CPPUNIT_ASSERT_MESSAGE
5670 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
5671 aStrBuf
.getStr()== expVal
&&
5672 aStrBuf
.getLength() == expVal
.getLength()
5679 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
5680 OString
expVal( aStrBuf
.getStr() );
5681 sal_Int32 input
= kSInt8Max
;
5682 sal_Int16 radix
= 16;
5684 expVal
+= OString( "7f" );
5685 aStrBuf
.append( input
, radix
);
5687 CPPUNIT_ASSERT_MESSAGE
5689 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
5690 aStrBuf
.getStr()== expVal
&&
5691 aStrBuf
.getLength() == expVal
.getLength()
5698 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
5699 OString
expVal( aStrBuf
.getStr() );
5700 sal_Int32 input
= kSInt32Max
;
5701 sal_Int16 radix
= 16;
5703 expVal
+= OString( "7fffffff" );
5704 aStrBuf
.append( input
, radix
);
5706 CPPUNIT_ASSERT_MESSAGE
5708 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
5709 aStrBuf
.getStr()== expVal
&&
5710 aStrBuf
.getLength() == expVal
.getLength()
5717 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
5718 OString
expVal( aStrBuf
.getStr() );
5719 sal_Int32 input
= kSInt8Max
;
5720 sal_Int16 radix
= 36;
5722 expVal
+= OString( "3j" );
5723 aStrBuf
.append( input
, radix
);
5725 CPPUNIT_ASSERT_MESSAGE
5727 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
5728 aStrBuf
.getStr()== expVal
&&
5729 aStrBuf
.getLength() == expVal
.getLength()
5736 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
5737 OString
expVal( aStrBuf
.getStr() );
5738 sal_Int32 input
= kSInt32Max
;
5739 sal_Int16 radix
= 36;
5741 expVal
+= OString( "zik0zj" );
5742 aStrBuf
.append( input
, radix
);
5744 CPPUNIT_ASSERT_MESSAGE
5746 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
5747 aStrBuf
.getStr()== expVal
&&
5748 aStrBuf
.getLength() == expVal
.getLength()
5755 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
5756 OString
expVal( aStrBuf
.getStr() );
5757 sal_Int32 input
= kSInt8Max
;
5758 sal_Int16 radix
= 2;
5760 expVal
+= OString( "1111111" );
5761 aStrBuf
.append( input
, radix
);
5763 CPPUNIT_ASSERT_MESSAGE
5765 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
5766 aStrBuf
.getStr()== expVal
&&
5767 aStrBuf
.getLength() == expVal
.getLength()
5774 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
5775 OString
expVal( aStrBuf
.getStr() );
5776 sal_Int32 input
= kSInt32Max
;
5777 sal_Int16 radix
= 2;
5779 expVal
+= OString( "1111111111111111111111111111111" );
5780 aStrBuf
.append( input
, radix
);
5782 CPPUNIT_ASSERT_MESSAGE
5784 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
5785 aStrBuf
.getStr()== expVal
&&
5786 aStrBuf
.getLength() == expVal
.getLength()
5793 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
5794 OString
expVal( aStrBuf
.getStr() );
5795 sal_Int32 input
= kSInt8Max
;
5796 sal_Int16 radix
= 8;
5798 expVal
+= OString( "177" );
5799 aStrBuf
.append( input
, radix
);
5801 CPPUNIT_ASSERT_MESSAGE
5803 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
5804 aStrBuf
.getStr()== expVal
&&
5805 aStrBuf
.getLength() == expVal
.getLength()
5812 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
5813 OString
expVal( aStrBuf
.getStr() );
5814 sal_Int32 input
= kSInt32Max
;
5815 sal_Int16 radix
= 8;
5817 expVal
+= OString( "17777777777" );
5818 aStrBuf
.append( input
, radix
);
5820 CPPUNIT_ASSERT_MESSAGE
5822 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
5823 aStrBuf
.getStr()== expVal
&&
5824 aStrBuf
.getLength() == expVal
.getLength()
5831 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
5832 OString
expVal( aStrBuf
.getStr() );
5833 sal_Int32 input
= kSInt8Max
;
5834 sal_Int16 radix
= 10;
5836 expVal
+= OString( "127" );
5837 aStrBuf
.append( input
, radix
);
5839 CPPUNIT_ASSERT_MESSAGE
5841 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
5842 aStrBuf
.getStr()== expVal
&&
5843 aStrBuf
.getLength() == expVal
.getLength()
5850 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
5851 OString
expVal( aStrBuf
.getStr() );
5852 sal_Int32 input
= kSInt32Max
;
5853 sal_Int16 radix
= 10;
5855 expVal
+= OString( "2147483647" );
5856 aStrBuf
.append( input
, radix
);
5858 CPPUNIT_ASSERT_MESSAGE
5860 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
5861 aStrBuf
.getStr()== expVal
&&
5862 aStrBuf
.getLength() == expVal
.getLength()
5869 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
5870 OString
expVal( aStrBuf
.getStr() );
5871 sal_Int32 input
= kSInt8Max
;
5872 sal_Int16 radix
= 16;
5874 expVal
+= OString( "7f" );
5875 aStrBuf
.append( input
, radix
);
5877 CPPUNIT_ASSERT_MESSAGE
5879 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
5880 aStrBuf
.getStr()== expVal
&&
5881 aStrBuf
.getLength() == expVal
.getLength()
5888 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
5889 OString
expVal( aStrBuf
.getStr() );
5890 sal_Int32 input
= kSInt32Max
;
5891 sal_Int16 radix
= 16;
5893 expVal
+= OString( "7fffffff" );
5894 aStrBuf
.append( input
, radix
);
5896 CPPUNIT_ASSERT_MESSAGE
5898 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
5899 aStrBuf
.getStr()== expVal
&&
5900 aStrBuf
.getLength() == expVal
.getLength()
5907 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
5908 OString
expVal( aStrBuf
.getStr() );
5909 sal_Int32 input
= kSInt8Max
;
5910 sal_Int16 radix
= 36;
5912 expVal
+= OString( "3j" );
5913 aStrBuf
.append( input
, radix
);
5915 CPPUNIT_ASSERT_MESSAGE
5917 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
5918 aStrBuf
.getStr()== expVal
&&
5919 aStrBuf
.getLength() == expVal
.getLength()
5926 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
5927 OString
expVal( aStrBuf
.getStr() );
5928 sal_Int32 input
= kSInt32Max
;
5929 sal_Int16 radix
= 36;
5931 expVal
+= OString( "zik0zj" );
5932 aStrBuf
.append( input
, radix
);
5934 CPPUNIT_ASSERT_MESSAGE
5936 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
5937 aStrBuf
.getStr()== expVal
&&
5938 aStrBuf
.getLength() == expVal
.getLength()
5945 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
5946 OString
expVal( aStrBuf
.getStr() );
5947 sal_Int32 input
= kSInt8Max
;
5948 sal_Int16 radix
= 2;
5950 expVal
+= OString( "1111111" );
5951 aStrBuf
.append( input
, radix
);
5953 CPPUNIT_ASSERT_MESSAGE
5955 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
5956 aStrBuf
.getStr()== expVal
&&
5957 aStrBuf
.getLength() == expVal
.getLength()
5964 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
5965 OString
expVal( aStrBuf
.getStr() );
5966 sal_Int32 input
= kSInt32Max
;
5967 sal_Int16 radix
= 2;
5969 expVal
+= OString( "1111111111111111111111111111111" );
5970 aStrBuf
.append( input
, radix
);
5972 CPPUNIT_ASSERT_MESSAGE
5974 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
5975 aStrBuf
.getStr()== expVal
&&
5976 aStrBuf
.getLength() == expVal
.getLength()
5983 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
5984 OString
expVal( aStrBuf
.getStr() );
5985 sal_Int32 input
= kSInt8Max
;
5986 sal_Int16 radix
= 8;
5988 expVal
+= OString( "177" );
5989 aStrBuf
.append( input
, radix
);
5991 CPPUNIT_ASSERT_MESSAGE
5993 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
5994 aStrBuf
.getStr()== expVal
&&
5995 aStrBuf
.getLength() == expVal
.getLength()
6002 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
6003 OString
expVal( aStrBuf
.getStr() );
6004 sal_Int32 input
= kSInt32Max
;
6005 sal_Int16 radix
= 8;
6007 expVal
+= OString( "17777777777" );
6008 aStrBuf
.append( input
, radix
);
6010 CPPUNIT_ASSERT_MESSAGE
6012 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
6013 aStrBuf
.getStr()== expVal
&&
6014 aStrBuf
.getLength() == expVal
.getLength()
6021 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
6022 OString
expVal( aStrBuf
.getStr() );
6023 sal_Int32 input
= kSInt8Max
;
6024 sal_Int16 radix
= 10;
6026 expVal
+= OString( "127" );
6027 aStrBuf
.append( input
, radix
);
6029 CPPUNIT_ASSERT_MESSAGE
6031 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
6032 aStrBuf
.getStr()== expVal
&&
6033 aStrBuf
.getLength() == expVal
.getLength()
6040 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
6041 OString
expVal( aStrBuf
.getStr() );
6042 sal_Int32 input
= kSInt32Max
;
6043 sal_Int16 radix
= 10;
6045 expVal
+= OString( "2147483647" );
6046 aStrBuf
.append( input
, radix
);
6048 CPPUNIT_ASSERT_MESSAGE
6050 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
6051 aStrBuf
.getStr()== expVal
&&
6052 aStrBuf
.getLength() == expVal
.getLength()
6059 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
6060 OString
expVal( aStrBuf
.getStr() );
6061 sal_Int32 input
= kSInt8Max
;
6062 sal_Int16 radix
= 16;
6064 expVal
+= OString( "7f" );
6065 aStrBuf
.append( input
, radix
);
6067 CPPUNIT_ASSERT_MESSAGE
6069 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
6070 aStrBuf
.getStr()== expVal
&&
6071 aStrBuf
.getLength() == expVal
.getLength()
6078 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
6079 OString
expVal( aStrBuf
.getStr() );
6080 sal_Int32 input
= kSInt32Max
;
6081 sal_Int16 radix
= 16;
6083 expVal
+= OString( "7fffffff" );
6084 aStrBuf
.append( input
, radix
);
6086 CPPUNIT_ASSERT_MESSAGE
6088 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
6089 aStrBuf
.getStr()== expVal
&&
6090 aStrBuf
.getLength() == expVal
.getLength()
6097 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
6098 OString
expVal( aStrBuf
.getStr() );
6099 sal_Int32 input
= kSInt8Max
;
6100 sal_Int16 radix
= 36;
6102 expVal
+= OString( "3j" );
6103 aStrBuf
.append( input
, radix
);
6105 CPPUNIT_ASSERT_MESSAGE
6107 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
6108 aStrBuf
.getStr()== expVal
&&
6109 aStrBuf
.getLength() == expVal
.getLength()
6116 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
6117 OString
expVal( aStrBuf
.getStr() );
6118 sal_Int32 input
= kSInt32Max
;
6119 sal_Int16 radix
= 36;
6121 expVal
+= OString( "zik0zj" );
6122 aStrBuf
.append( input
, radix
);
6124 CPPUNIT_ASSERT_MESSAGE
6126 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
6127 aStrBuf
.getStr()== expVal
&&
6128 aStrBuf
.getLength() == expVal
.getLength()
6133 CPPUNIT_TEST_SUITE( append_006_Int32_Bounderies
);
6134 CPPUNIT_TEST( append_001
); CPPUNIT_TEST( append_002
);
6135 CPPUNIT_TEST( append_003
); CPPUNIT_TEST( append_004
);
6136 CPPUNIT_TEST( append_005
); CPPUNIT_TEST( append_006
);
6137 CPPUNIT_TEST( append_007
); CPPUNIT_TEST( append_008
);
6138 CPPUNIT_TEST( append_009
); CPPUNIT_TEST( append_010
);
6139 CPPUNIT_TEST( append_011
); CPPUNIT_TEST( append_012
);
6140 CPPUNIT_TEST( append_013
); CPPUNIT_TEST( append_014
);
6141 CPPUNIT_TEST( append_015
); CPPUNIT_TEST( append_016
);
6142 CPPUNIT_TEST( append_017
); CPPUNIT_TEST( append_018
);
6143 CPPUNIT_TEST( append_019
); CPPUNIT_TEST( append_020
);
6144 CPPUNIT_TEST( append_021
); CPPUNIT_TEST( append_022
);
6145 CPPUNIT_TEST( append_023
); CPPUNIT_TEST( append_024
);
6146 CPPUNIT_TEST( append_025
); CPPUNIT_TEST( append_026
);
6147 CPPUNIT_TEST( append_027
); CPPUNIT_TEST( append_028
);
6148 CPPUNIT_TEST( append_029
); CPPUNIT_TEST( append_030
);
6149 CPPUNIT_TEST( append_031
); CPPUNIT_TEST( append_032
);
6150 CPPUNIT_TEST( append_033
); CPPUNIT_TEST( append_034
);
6151 CPPUNIT_TEST( append_035
); CPPUNIT_TEST( append_036
);
6152 CPPUNIT_TEST( append_037
); CPPUNIT_TEST( append_038
);
6153 CPPUNIT_TEST( append_039
); CPPUNIT_TEST( append_040
);
6154 CPPUNIT_TEST( append_041
); CPPUNIT_TEST( append_042
);
6155 CPPUNIT_TEST( append_043
); CPPUNIT_TEST( append_044
);
6156 CPPUNIT_TEST( append_045
); CPPUNIT_TEST( append_046
);
6157 CPPUNIT_TEST( append_047
); CPPUNIT_TEST( append_048
);
6158 CPPUNIT_TEST( append_049
); CPPUNIT_TEST( append_050
);
6159 CPPUNIT_TEST_SUITE_END();
6162 // testing the method append( sal_Int32 i, sal_Int16 radix=2 )
6163 // for negative value
6164 // testing the method append( sal_Int32 i, sal_Int16 radix=8 )
6165 // for negative value
6166 // testing the method append( sal_Int32 i, sal_Int16 radix=10 )
6167 // for negative value
6168 // testing the method append( sal_Int32 i, sal_Int16 radix=16 )
6169 // for negative value
6170 // testing the method append( sal_Int32 i, sal_Int16 radix=36 )
6171 // for negative value
6173 class append_006_Int32_Negative
: public CppUnit::TestFixture
6178 void setUp() SAL_OVERRIDE
6180 arrOUS
[0] = new OString( kTestStr7
);
6181 arrOUS
[1] = new OString( );
6182 arrOUS
[2] = new OString( kTestStr25
);
6183 arrOUS
[3] = new OString( "" );
6184 arrOUS
[4] = new OString( kTestStr28
);
6188 void tearDown() SAL_OVERRIDE
6190 delete arrOUS
[0]; delete arrOUS
[1]; delete arrOUS
[2];
6191 delete arrOUS
[3]; delete arrOUS
[4];
6196 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
6197 OString
expVal( aStrBuf
.getStr() );
6198 sal_Int32 input
= -0;
6199 sal_Int16 radix
= 2;
6201 expVal
+= OString( "0" );
6202 aStrBuf
.append( input
, radix
);
6204 CPPUNIT_ASSERT_MESSAGE
6206 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
6207 aStrBuf
.getStr()== expVal
&&
6208 aStrBuf
.getLength() == expVal
.getLength()
6215 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
6216 OString
expVal( aStrBuf
.getStr() );
6217 sal_Int32 input
= -4;
6218 sal_Int16 radix
= 2;
6220 expVal
+= OString( "-" );
6221 expVal
+= OString( "100" );
6222 aStrBuf
.append( input
, radix
);
6224 CPPUNIT_ASSERT_MESSAGE
6226 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
6227 aStrBuf
.getStr()== expVal
&&
6228 aStrBuf
.getLength() == expVal
.getLength()
6235 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
6236 OString
expVal( aStrBuf
.getStr() );
6237 sal_Int32 input
= -8;
6238 sal_Int16 radix
= 2;
6240 expVal
+= OString( "-" );
6241 expVal
+= OString( "1000" );
6242 aStrBuf
.append( input
, radix
);
6244 CPPUNIT_ASSERT_MESSAGE
6246 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
6247 aStrBuf
.getStr()== expVal
&&
6248 aStrBuf
.getLength() == expVal
.getLength()
6255 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
6256 OString
expVal( aStrBuf
.getStr() );
6257 sal_Int32 input
= -15;
6258 sal_Int16 radix
= 2;
6260 expVal
+= OString( "-" );
6261 expVal
+= OString( "1111" );
6262 aStrBuf
.append( input
, radix
);
6264 CPPUNIT_ASSERT_MESSAGE
6266 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
6267 aStrBuf
.getStr()== expVal
&&
6268 aStrBuf
.getLength() == expVal
.getLength()
6275 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
6276 OString
expVal( aStrBuf
.getStr() );
6277 sal_Int32 input
= -0;
6278 sal_Int16 radix
= 8;
6280 expVal
+= OString( "0" );
6281 aStrBuf
.append( input
, radix
);
6283 CPPUNIT_ASSERT_MESSAGE
6285 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
6286 aStrBuf
.getStr()== expVal
&&
6287 aStrBuf
.getLength() == expVal
.getLength()
6294 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
6295 OString
expVal( aStrBuf
.getStr() );
6296 sal_Int32 input
= -4;
6297 sal_Int16 radix
= 8;
6299 expVal
+= OString( "-" );
6300 expVal
+= OString( "4" );
6301 aStrBuf
.append( input
, radix
);
6303 CPPUNIT_ASSERT_MESSAGE
6305 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
6306 aStrBuf
.getStr()== expVal
&&
6307 aStrBuf
.getLength() == expVal
.getLength()
6314 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
6315 OString
expVal( aStrBuf
.getStr() );
6316 sal_Int32 input
= -8;
6317 sal_Int16 radix
= 8;
6319 expVal
+= OString( "-" );
6320 expVal
+= OString( "10" );
6321 aStrBuf
.append( input
, radix
);
6323 CPPUNIT_ASSERT_MESSAGE
6325 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
6326 aStrBuf
.getStr()== expVal
&&
6327 aStrBuf
.getLength() == expVal
.getLength()
6334 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
6335 OString
expVal( aStrBuf
.getStr() );
6336 sal_Int32 input
= -15;
6337 sal_Int16 radix
= 8;
6339 expVal
+= OString( "-" );
6340 expVal
+= OString( "17" );
6341 aStrBuf
.append( input
, radix
);
6343 CPPUNIT_ASSERT_MESSAGE
6345 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
6346 aStrBuf
.getStr()== expVal
&&
6347 aStrBuf
.getLength() == expVal
.getLength()
6354 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
6355 OString
expVal( aStrBuf
.getStr() );
6356 sal_Int32 input
= -0;
6357 sal_Int16 radix
= 10;
6359 expVal
+= OString( "0" );
6360 aStrBuf
.append( input
, radix
);
6362 CPPUNIT_ASSERT_MESSAGE
6364 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
6365 aStrBuf
.getStr()== expVal
&&
6366 aStrBuf
.getLength() == expVal
.getLength()
6373 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
6374 OString
expVal( aStrBuf
.getStr() );
6375 sal_Int32 input
= -4;
6376 sal_Int16 radix
= 10;
6378 expVal
+= OString( "-" );
6379 expVal
+= OString( "4" );
6380 aStrBuf
.append( input
, radix
);
6382 CPPUNIT_ASSERT_MESSAGE
6384 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
6385 aStrBuf
.getStr()== expVal
&&
6386 aStrBuf
.getLength() == expVal
.getLength()
6393 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
6394 OString
expVal( aStrBuf
.getStr() );
6395 sal_Int32 input
= -8;
6396 sal_Int16 radix
= 10;
6398 expVal
+= OString( "-" );
6399 expVal
+= OString( "8" );
6400 aStrBuf
.append( input
, radix
);
6402 CPPUNIT_ASSERT_MESSAGE
6404 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
6405 aStrBuf
.getStr()== expVal
&&
6406 aStrBuf
.getLength() == expVal
.getLength()
6413 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
6414 OString
expVal( aStrBuf
.getStr() );
6415 sal_Int32 input
= -15;
6416 sal_Int16 radix
= 10;
6418 expVal
+= OString( "-" );
6419 expVal
+= OString( "15" );
6420 aStrBuf
.append( input
, radix
);
6422 CPPUNIT_ASSERT_MESSAGE
6424 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
6425 aStrBuf
.getStr()== expVal
&&
6426 aStrBuf
.getLength() == expVal
.getLength()
6433 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
6434 OString
expVal( aStrBuf
.getStr() );
6435 sal_Int32 input
= -0;
6436 sal_Int16 radix
= 16;
6438 expVal
+= OString( "0" );
6439 aStrBuf
.append( input
, radix
);
6441 CPPUNIT_ASSERT_MESSAGE
6443 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
6444 aStrBuf
.getStr()== expVal
&&
6445 aStrBuf
.getLength() == expVal
.getLength()
6452 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
6453 OString
expVal( aStrBuf
.getStr() );
6454 sal_Int32 input
= -4;
6455 sal_Int16 radix
= 16;
6457 expVal
+= OString( "-" );
6458 expVal
+= OString( "4" );
6459 aStrBuf
.append( input
, radix
);
6461 CPPUNIT_ASSERT_MESSAGE
6463 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
6464 aStrBuf
.getStr()== expVal
&&
6465 aStrBuf
.getLength() == expVal
.getLength()
6472 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
6473 OString
expVal( aStrBuf
.getStr() );
6474 sal_Int32 input
= -8;
6475 sal_Int16 radix
= 16;
6477 expVal
+= OString( "-" );
6478 expVal
+= OString( "8" );
6479 aStrBuf
.append( input
, radix
);
6481 CPPUNIT_ASSERT_MESSAGE
6483 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
6484 aStrBuf
.getStr()== expVal
&&
6485 aStrBuf
.getLength() == expVal
.getLength()
6492 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
6493 OString
expVal( aStrBuf
.getStr() );
6494 sal_Int32 input
= -15;
6495 sal_Int16 radix
= 16;
6497 expVal
+= OString( "-" );
6498 expVal
+= OString( "f" );
6499 aStrBuf
.append( input
, radix
);
6501 CPPUNIT_ASSERT_MESSAGE
6503 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
6504 aStrBuf
.getStr()== expVal
&&
6505 aStrBuf
.getLength() == expVal
.getLength()
6512 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
6513 OString
expVal( aStrBuf
.getStr() );
6514 sal_Int32 input
= -0;
6515 sal_Int16 radix
= 36;
6517 expVal
+= OString( "0" );
6518 aStrBuf
.append( input
, radix
);
6520 CPPUNIT_ASSERT_MESSAGE
6522 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
6523 aStrBuf
.getStr()== expVal
&&
6524 aStrBuf
.getLength() == expVal
.getLength()
6531 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
6532 OString
expVal( aStrBuf
.getStr() );
6533 sal_Int32 input
= -4;
6534 sal_Int16 radix
= 36;
6536 expVal
+= OString( "-" );
6537 expVal
+= OString( "4" );
6538 aStrBuf
.append( input
, radix
);
6540 CPPUNIT_ASSERT_MESSAGE
6542 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
6543 aStrBuf
.getStr()== expVal
&&
6544 aStrBuf
.getLength() == expVal
.getLength()
6551 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
6552 OString
expVal( aStrBuf
.getStr() );
6553 sal_Int32 input
= -8;
6554 sal_Int16 radix
= 36;
6556 expVal
+= OString( "-" );
6557 expVal
+= OString( "8" );
6558 aStrBuf
.append( input
, radix
);
6560 CPPUNIT_ASSERT_MESSAGE
6562 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
6563 aStrBuf
.getStr()== expVal
&&
6564 aStrBuf
.getLength() == expVal
.getLength()
6571 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
6572 OString
expVal( aStrBuf
.getStr() );
6573 sal_Int32 input
= -35;
6574 sal_Int16 radix
= 36;
6576 expVal
+= OString( "-" );
6577 expVal
+= OString( "z" );
6578 aStrBuf
.append( input
, radix
);
6580 CPPUNIT_ASSERT_MESSAGE
6582 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
6583 aStrBuf
.getStr()== expVal
&&
6584 aStrBuf
.getLength() == expVal
.getLength()
6591 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
6592 OString
expVal( aStrBuf
.getStr() );
6593 sal_Int32 input
= -0;
6594 sal_Int16 radix
= 2;
6596 expVal
+= OString( "0" );
6597 aStrBuf
.append( input
, radix
);
6599 CPPUNIT_ASSERT_MESSAGE
6601 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
6602 aStrBuf
.getStr()== expVal
&&
6603 aStrBuf
.getLength() == expVal
.getLength()
6610 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
6611 OString
expVal( aStrBuf
.getStr() );
6612 sal_Int32 input
= -4;
6613 sal_Int16 radix
= 2;
6615 expVal
+= OString( "-" );
6616 expVal
+= OString( "100" );
6617 aStrBuf
.append( input
, radix
);
6619 CPPUNIT_ASSERT_MESSAGE
6621 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
6622 aStrBuf
.getStr()== expVal
&&
6623 aStrBuf
.getLength() == expVal
.getLength()
6630 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
6631 OString
expVal( aStrBuf
.getStr() );
6632 sal_Int32 input
= -8;
6633 sal_Int16 radix
= 2;
6635 expVal
+= OString( "-" );
6636 expVal
+= OString( "1000" );
6637 aStrBuf
.append( input
, radix
);
6639 CPPUNIT_ASSERT_MESSAGE
6641 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
6642 aStrBuf
.getStr()== expVal
&&
6643 aStrBuf
.getLength() == expVal
.getLength()
6650 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
6651 OString
expVal( aStrBuf
.getStr() );
6652 sal_Int32 input
= -15;
6653 sal_Int16 radix
= 2;
6655 expVal
+= OString( "-" );
6656 expVal
+= OString( "1111" );
6657 aStrBuf
.append( input
, radix
);
6659 CPPUNIT_ASSERT_MESSAGE
6661 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
6662 aStrBuf
.getStr()== expVal
&&
6663 aStrBuf
.getLength() == expVal
.getLength()
6670 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
6671 OString
expVal( aStrBuf
.getStr() );
6672 sal_Int32 input
= -0;
6673 sal_Int16 radix
= 8;
6675 expVal
+= OString( "0" );
6676 aStrBuf
.append( input
, radix
);
6678 CPPUNIT_ASSERT_MESSAGE
6680 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
6681 aStrBuf
.getStr()== expVal
&&
6682 aStrBuf
.getLength() == expVal
.getLength()
6689 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
6690 OString
expVal( aStrBuf
.getStr() );
6691 sal_Int32 input
= -4;
6692 sal_Int16 radix
= 8;
6694 expVal
+= OString( "-" );
6695 expVal
+= OString( "4" );
6696 aStrBuf
.append( input
, radix
);
6698 CPPUNIT_ASSERT_MESSAGE
6700 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
6701 aStrBuf
.getStr()== expVal
&&
6702 aStrBuf
.getLength() == expVal
.getLength()
6709 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
6710 OString
expVal( aStrBuf
.getStr() );
6711 sal_Int32 input
= -8;
6712 sal_Int16 radix
= 8;
6714 expVal
+= OString( "-" );
6715 expVal
+= OString( "10" );
6716 aStrBuf
.append( input
, radix
);
6718 CPPUNIT_ASSERT_MESSAGE
6720 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
6721 aStrBuf
.getStr()== expVal
&&
6722 aStrBuf
.getLength() == expVal
.getLength()
6729 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
6730 OString
expVal( aStrBuf
.getStr() );
6731 sal_Int32 input
= -15;
6732 sal_Int16 radix
= 8;
6734 expVal
+= OString( "-" );
6735 expVal
+= OString( "17" );
6736 aStrBuf
.append( input
, radix
);
6738 CPPUNIT_ASSERT_MESSAGE
6740 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
6741 aStrBuf
.getStr()== expVal
&&
6742 aStrBuf
.getLength() == expVal
.getLength()
6749 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
6750 OString
expVal( aStrBuf
.getStr() );
6751 sal_Int32 input
= -0;
6752 sal_Int16 radix
= 10;
6754 expVal
+= OString( "0" );
6755 aStrBuf
.append( input
, radix
);
6757 CPPUNIT_ASSERT_MESSAGE
6759 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
6760 aStrBuf
.getStr()== expVal
&&
6761 aStrBuf
.getLength() == expVal
.getLength()
6768 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
6769 OString
expVal( aStrBuf
.getStr() );
6770 sal_Int32 input
= -4;
6771 sal_Int16 radix
= 10;
6773 expVal
+= OString( "-" );
6774 expVal
+= OString( "4" );
6775 aStrBuf
.append( input
, radix
);
6777 CPPUNIT_ASSERT_MESSAGE
6779 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
6780 aStrBuf
.getStr()== expVal
&&
6781 aStrBuf
.getLength() == expVal
.getLength()
6788 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
6789 OString
expVal( aStrBuf
.getStr() );
6790 sal_Int32 input
= -8;
6791 sal_Int16 radix
= 10;
6793 expVal
+= OString( "-" );
6794 expVal
+= OString( "8" );
6795 aStrBuf
.append( input
, radix
);
6797 CPPUNIT_ASSERT_MESSAGE
6799 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
6800 aStrBuf
.getStr()== expVal
&&
6801 aStrBuf
.getLength() == expVal
.getLength()
6808 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
6809 OString
expVal( aStrBuf
.getStr() );
6810 sal_Int32 input
= -15;
6811 sal_Int16 radix
= 10;
6813 expVal
+= OString( "-" );
6814 expVal
+= OString( "15" );
6815 aStrBuf
.append( input
, radix
);
6817 CPPUNIT_ASSERT_MESSAGE
6819 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
6820 aStrBuf
.getStr()== expVal
&&
6821 aStrBuf
.getLength() == expVal
.getLength()
6828 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
6829 OString
expVal( aStrBuf
.getStr() );
6830 sal_Int32 input
= -0;
6831 sal_Int16 radix
= 16;
6833 expVal
+= OString( "0" );
6834 aStrBuf
.append( input
, radix
);
6836 CPPUNIT_ASSERT_MESSAGE
6838 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
6839 aStrBuf
.getStr()== expVal
&&
6840 aStrBuf
.getLength() == expVal
.getLength()
6847 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
6848 OString
expVal( aStrBuf
.getStr() );
6849 sal_Int32 input
= -4;
6850 sal_Int16 radix
= 16;
6852 expVal
+= OString( "-" );
6853 expVal
+= OString( "4" );
6854 aStrBuf
.append( input
, radix
);
6856 CPPUNIT_ASSERT_MESSAGE
6858 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
6859 aStrBuf
.getStr()== expVal
&&
6860 aStrBuf
.getLength() == expVal
.getLength()
6867 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
6868 OString
expVal( aStrBuf
.getStr() );
6869 sal_Int32 input
= -8;
6870 sal_Int16 radix
= 16;
6872 expVal
+= OString( "-" );
6873 expVal
+= OString( "8" );
6874 aStrBuf
.append( input
, radix
);
6876 CPPUNIT_ASSERT_MESSAGE
6878 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
6879 aStrBuf
.getStr()== expVal
&&
6880 aStrBuf
.getLength() == expVal
.getLength()
6887 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
6888 OString
expVal( aStrBuf
.getStr() );
6889 sal_Int32 input
= -15;
6890 sal_Int16 radix
= 16;
6892 expVal
+= OString( "-" );
6893 expVal
+= OString( "f" );
6894 aStrBuf
.append( input
, radix
);
6896 CPPUNIT_ASSERT_MESSAGE
6898 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
6899 aStrBuf
.getStr()== expVal
&&
6900 aStrBuf
.getLength() == expVal
.getLength()
6907 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
6908 OString
expVal( aStrBuf
.getStr() );
6909 sal_Int32 input
= -0;
6910 sal_Int16 radix
= 36;
6912 expVal
+= OString( "0" );
6913 aStrBuf
.append( input
, radix
);
6915 CPPUNIT_ASSERT_MESSAGE
6917 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
6918 aStrBuf
.getStr()== expVal
&&
6919 aStrBuf
.getLength() == expVal
.getLength()
6926 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
6927 OString
expVal( aStrBuf
.getStr() );
6928 sal_Int32 input
= -4;
6929 sal_Int16 radix
= 36;
6931 expVal
+= OString( "-" );
6932 expVal
+= OString( "4" );
6933 aStrBuf
.append( input
, radix
);
6935 CPPUNIT_ASSERT_MESSAGE
6937 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
6938 aStrBuf
.getStr()== expVal
&&
6939 aStrBuf
.getLength() == expVal
.getLength()
6946 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
6947 OString
expVal( aStrBuf
.getStr() );
6948 sal_Int32 input
= -8;
6949 sal_Int16 radix
= 36;
6951 expVal
+= OString( "-" );
6952 expVal
+= OString( "8" );
6953 aStrBuf
.append( input
, radix
);
6955 CPPUNIT_ASSERT_MESSAGE
6957 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
6958 aStrBuf
.getStr()== expVal
&&
6959 aStrBuf
.getLength() == expVal
.getLength()
6966 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
6967 OString
expVal( aStrBuf
.getStr() );
6968 sal_Int32 input
= -35;
6969 sal_Int16 radix
= 36;
6971 expVal
+= OString( "-" );
6972 expVal
+= OString( "z" );
6973 aStrBuf
.append( input
, radix
);
6975 CPPUNIT_ASSERT_MESSAGE
6977 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
6978 aStrBuf
.getStr()== expVal
&&
6979 aStrBuf
.getLength() == expVal
.getLength()
6986 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
6987 OString
expVal( aStrBuf
.getStr() );
6988 sal_Int32 input
= -0;
6989 sal_Int16 radix
= 2;
6991 expVal
+= OString( "0" );
6992 aStrBuf
.append( input
, radix
);
6994 CPPUNIT_ASSERT_MESSAGE
6996 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
6997 aStrBuf
.getStr()== expVal
&&
6998 aStrBuf
.getLength() == expVal
.getLength()
7005 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
7006 OString
expVal( aStrBuf
.getStr() );
7007 sal_Int32 input
= -4;
7008 sal_Int16 radix
= 2;
7010 expVal
+= OString( "-" );
7011 expVal
+= OString( "100" );
7012 aStrBuf
.append( input
, radix
);
7014 CPPUNIT_ASSERT_MESSAGE
7016 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
7017 aStrBuf
.getStr()== expVal
&&
7018 aStrBuf
.getLength() == expVal
.getLength()
7025 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
7026 OString
expVal( aStrBuf
.getStr() );
7027 sal_Int32 input
= -8;
7028 sal_Int16 radix
= 2;
7030 expVal
+= OString( "-" );
7031 expVal
+= OString( "1000" );
7032 aStrBuf
.append( input
, radix
);
7034 CPPUNIT_ASSERT_MESSAGE
7036 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
7037 aStrBuf
.getStr()== expVal
&&
7038 aStrBuf
.getLength() == expVal
.getLength()
7045 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
7046 OString
expVal( aStrBuf
.getStr() );
7047 sal_Int32 input
= -15;
7048 sal_Int16 radix
= 2;
7050 expVal
+= OString( "-" );
7051 expVal
+= OString( "1111" );
7052 aStrBuf
.append( input
, radix
);
7054 CPPUNIT_ASSERT_MESSAGE
7056 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
7057 aStrBuf
.getStr()== expVal
&&
7058 aStrBuf
.getLength() == expVal
.getLength()
7065 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
7066 OString
expVal( aStrBuf
.getStr() );
7067 sal_Int32 input
= -0;
7068 sal_Int16 radix
= 8;
7070 expVal
+= OString( "0" );
7071 aStrBuf
.append( input
, radix
);
7073 CPPUNIT_ASSERT_MESSAGE
7075 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
7076 aStrBuf
.getStr()== expVal
&&
7077 aStrBuf
.getLength() == expVal
.getLength()
7084 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
7085 OString
expVal( aStrBuf
.getStr() );
7086 sal_Int32 input
= -4;
7087 sal_Int16 radix
= 8;
7089 expVal
+= OString( "-" );
7090 expVal
+= OString( "4" );
7091 aStrBuf
.append( input
, radix
);
7093 CPPUNIT_ASSERT_MESSAGE
7095 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
7096 aStrBuf
.getStr()== expVal
&&
7097 aStrBuf
.getLength() == expVal
.getLength()
7104 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
7105 OString
expVal( aStrBuf
.getStr() );
7106 sal_Int32 input
= -8;
7107 sal_Int16 radix
= 8;
7109 expVal
+= OString( "-" );
7110 expVal
+= OString( "10" );
7111 aStrBuf
.append( input
, radix
);
7113 CPPUNIT_ASSERT_MESSAGE
7115 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
7116 aStrBuf
.getStr()== expVal
&&
7117 aStrBuf
.getLength() == expVal
.getLength()
7124 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
7125 OString
expVal( aStrBuf
.getStr() );
7126 sal_Int32 input
= -15;
7127 sal_Int16 radix
= 8;
7129 expVal
+= OString( "-" );
7130 expVal
+= OString( "17" );
7131 aStrBuf
.append( input
, radix
);
7133 CPPUNIT_ASSERT_MESSAGE
7135 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
7136 aStrBuf
.getStr()== expVal
&&
7137 aStrBuf
.getLength() == expVal
.getLength()
7144 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
7145 OString
expVal( aStrBuf
.getStr() );
7146 sal_Int32 input
= -0;
7147 sal_Int16 radix
= 10;
7149 expVal
+= OString( "0" );
7150 aStrBuf
.append( input
, radix
);
7152 CPPUNIT_ASSERT_MESSAGE
7154 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
7155 aStrBuf
.getStr()== expVal
&&
7156 aStrBuf
.getLength() == expVal
.getLength()
7163 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
7164 OString
expVal( aStrBuf
.getStr() );
7165 sal_Int32 input
= -4;
7166 sal_Int16 radix
= 10;
7168 expVal
+= OString( "-" );
7169 expVal
+= OString( "4" );
7170 aStrBuf
.append( input
, radix
);
7172 CPPUNIT_ASSERT_MESSAGE
7174 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
7175 aStrBuf
.getStr()== expVal
&&
7176 aStrBuf
.getLength() == expVal
.getLength()
7183 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
7184 OString
expVal( aStrBuf
.getStr() );
7185 sal_Int32 input
= -8;
7186 sal_Int16 radix
= 10;
7188 expVal
+= OString( "-" );
7189 expVal
+= OString( "8" );
7190 aStrBuf
.append( input
, radix
);
7192 CPPUNIT_ASSERT_MESSAGE
7194 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
7195 aStrBuf
.getStr()== expVal
&&
7196 aStrBuf
.getLength() == expVal
.getLength()
7203 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
7204 OString
expVal( aStrBuf
.getStr() );
7205 sal_Int32 input
= -15;
7206 sal_Int16 radix
= 10;
7208 expVal
+= OString( "-" );
7209 expVal
+= OString( "15" );
7210 aStrBuf
.append( input
, radix
);
7212 CPPUNIT_ASSERT_MESSAGE
7214 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
7215 aStrBuf
.getStr()== expVal
&&
7216 aStrBuf
.getLength() == expVal
.getLength()
7223 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
7224 OString
expVal( aStrBuf
.getStr() );
7225 sal_Int32 input
= -0;
7226 sal_Int16 radix
= 16;
7228 expVal
+= OString( "0" );
7229 aStrBuf
.append( input
, radix
);
7231 CPPUNIT_ASSERT_MESSAGE
7233 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
7234 aStrBuf
.getStr()== expVal
&&
7235 aStrBuf
.getLength() == expVal
.getLength()
7242 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
7243 OString
expVal( aStrBuf
.getStr() );
7244 sal_Int32 input
= -4;
7245 sal_Int16 radix
= 16;
7247 expVal
+= OString( "-" );
7248 expVal
+= OString( "4" );
7249 aStrBuf
.append( input
, radix
);
7251 CPPUNIT_ASSERT_MESSAGE
7253 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
7254 aStrBuf
.getStr()== expVal
&&
7255 aStrBuf
.getLength() == expVal
.getLength()
7262 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
7263 OString
expVal( aStrBuf
.getStr() );
7264 sal_Int32 input
= -8;
7265 sal_Int16 radix
= 16;
7267 expVal
+= OString( "-" );
7268 expVal
+= OString( "8" );
7269 aStrBuf
.append( input
, radix
);
7271 CPPUNIT_ASSERT_MESSAGE
7273 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
7274 aStrBuf
.getStr()== expVal
&&
7275 aStrBuf
.getLength() == expVal
.getLength()
7282 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
7283 OString
expVal( aStrBuf
.getStr() );
7284 sal_Int32 input
= -15;
7285 sal_Int16 radix
= 16;
7287 expVal
+= OString( "-" );
7288 expVal
+= OString( "f" );
7289 aStrBuf
.append( input
, radix
);
7291 CPPUNIT_ASSERT_MESSAGE
7293 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
7294 aStrBuf
.getStr()== expVal
&&
7295 aStrBuf
.getLength() == expVal
.getLength()
7302 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
7303 OString
expVal( aStrBuf
.getStr() );
7304 sal_Int32 input
= -0;
7305 sal_Int16 radix
= 36;
7307 expVal
+= OString( "0" );
7308 aStrBuf
.append( input
, radix
);
7310 CPPUNIT_ASSERT_MESSAGE
7312 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
7313 aStrBuf
.getStr()== expVal
&&
7314 aStrBuf
.getLength() == expVal
.getLength()
7321 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
7322 OString
expVal( aStrBuf
.getStr() );
7323 sal_Int32 input
= -4;
7324 sal_Int16 radix
= 36;
7326 expVal
+= OString( "-" );
7327 expVal
+= OString( "4" );
7328 aStrBuf
.append( input
, radix
);
7330 CPPUNIT_ASSERT_MESSAGE
7332 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
7333 aStrBuf
.getStr()== expVal
&&
7334 aStrBuf
.getLength() == expVal
.getLength()
7341 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
7342 OString
expVal( aStrBuf
.getStr() );
7343 sal_Int32 input
= -8;
7344 sal_Int16 radix
= 36;
7346 expVal
+= OString( "-" );
7347 expVal
+= OString( "8" );
7348 aStrBuf
.append( input
, radix
);
7350 CPPUNIT_ASSERT_MESSAGE
7352 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
7353 aStrBuf
.getStr()== expVal
&&
7354 aStrBuf
.getLength() == expVal
.getLength()
7361 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
7362 OString
expVal( aStrBuf
.getStr() );
7363 sal_Int32 input
= -35;
7364 sal_Int16 radix
= 36;
7366 expVal
+= OString( "-" );
7367 expVal
+= OString( "z" );
7368 aStrBuf
.append( input
, radix
);
7370 CPPUNIT_ASSERT_MESSAGE
7372 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
7373 aStrBuf
.getStr()== expVal
&&
7374 aStrBuf
.getLength() == expVal
.getLength()
7381 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
7382 OString
expVal( aStrBuf
.getStr() );
7383 sal_Int32 input
= -0;
7384 sal_Int16 radix
= 2;
7386 expVal
+= OString( "0" );
7387 aStrBuf
.append( input
, radix
);
7389 CPPUNIT_ASSERT_MESSAGE
7391 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
7392 aStrBuf
.getStr()== expVal
&&
7393 aStrBuf
.getLength() == expVal
.getLength()
7400 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
7401 OString
expVal( aStrBuf
.getStr() );
7402 sal_Int32 input
= -4;
7403 sal_Int16 radix
= 2;
7405 expVal
+= OString( "-" );
7406 expVal
+= OString( "100" );
7407 aStrBuf
.append( input
, radix
);
7409 CPPUNIT_ASSERT_MESSAGE
7411 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
7412 aStrBuf
.getStr()== expVal
&&
7413 aStrBuf
.getLength() == expVal
.getLength()
7420 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
7421 OString
expVal( aStrBuf
.getStr() );
7422 sal_Int32 input
= -8;
7423 sal_Int16 radix
= 2;
7425 expVal
+= OString( "-" );
7426 expVal
+= OString( "1000" );
7427 aStrBuf
.append( input
, radix
);
7429 CPPUNIT_ASSERT_MESSAGE
7431 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
7432 aStrBuf
.getStr()== expVal
&&
7433 aStrBuf
.getLength() == expVal
.getLength()
7440 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
7441 OString
expVal( aStrBuf
.getStr() );
7442 sal_Int32 input
= -15;
7443 sal_Int16 radix
= 2;
7445 expVal
+= OString( "-" );
7446 expVal
+= OString( "1111" );
7447 aStrBuf
.append( input
, radix
);
7449 CPPUNIT_ASSERT_MESSAGE
7451 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
7452 aStrBuf
.getStr()== expVal
&&
7453 aStrBuf
.getLength() == expVal
.getLength()
7460 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
7461 OString
expVal( aStrBuf
.getStr() );
7462 sal_Int32 input
= -0;
7463 sal_Int16 radix
= 8;
7465 expVal
+= OString( "0" );
7466 aStrBuf
.append( input
, radix
);
7468 CPPUNIT_ASSERT_MESSAGE
7470 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
7471 aStrBuf
.getStr()== expVal
&&
7472 aStrBuf
.getLength() == expVal
.getLength()
7479 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
7480 OString
expVal( aStrBuf
.getStr() );
7481 sal_Int32 input
= -4;
7482 sal_Int16 radix
= 8;
7484 expVal
+= OString( "-" );
7485 expVal
+= OString( "4" );
7486 aStrBuf
.append( input
, radix
);
7488 CPPUNIT_ASSERT_MESSAGE
7490 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
7491 aStrBuf
.getStr()== expVal
&&
7492 aStrBuf
.getLength() == expVal
.getLength()
7499 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
7500 OString
expVal( aStrBuf
.getStr() );
7501 sal_Int32 input
= -8;
7502 sal_Int16 radix
= 8;
7504 expVal
+= OString( "-" );
7505 expVal
+= OString( "10" );
7506 aStrBuf
.append( input
, radix
);
7508 CPPUNIT_ASSERT_MESSAGE
7510 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
7511 aStrBuf
.getStr()== expVal
&&
7512 aStrBuf
.getLength() == expVal
.getLength()
7519 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
7520 OString
expVal( aStrBuf
.getStr() );
7521 sal_Int32 input
= -15;
7522 sal_Int16 radix
= 8;
7524 expVal
+= OString( "-" );
7525 expVal
+= OString( "17" );
7526 aStrBuf
.append( input
, radix
);
7528 CPPUNIT_ASSERT_MESSAGE
7530 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
7531 aStrBuf
.getStr()== expVal
&&
7532 aStrBuf
.getLength() == expVal
.getLength()
7539 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
7540 OString
expVal( aStrBuf
.getStr() );
7541 sal_Int32 input
= -0;
7542 sal_Int16 radix
= 10;
7544 expVal
+= OString( "0" );
7545 aStrBuf
.append( input
, radix
);
7547 CPPUNIT_ASSERT_MESSAGE
7549 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
7550 aStrBuf
.getStr()== expVal
&&
7551 aStrBuf
.getLength() == expVal
.getLength()
7558 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
7559 OString
expVal( aStrBuf
.getStr() );
7560 sal_Int32 input
= -4;
7561 sal_Int16 radix
= 10;
7563 expVal
+= OString( "-" );
7564 expVal
+= OString( "4" );
7565 aStrBuf
.append( input
, radix
);
7567 CPPUNIT_ASSERT_MESSAGE
7569 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
7570 aStrBuf
.getStr()== expVal
&&
7571 aStrBuf
.getLength() == expVal
.getLength()
7578 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
7579 OString
expVal( aStrBuf
.getStr() );
7580 sal_Int32 input
= -8;
7581 sal_Int16 radix
= 10;
7583 expVal
+= OString( "-" );
7584 expVal
+= OString( "8" );
7585 aStrBuf
.append( input
, radix
);
7587 CPPUNIT_ASSERT_MESSAGE
7589 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
7590 aStrBuf
.getStr()== expVal
&&
7591 aStrBuf
.getLength() == expVal
.getLength()
7598 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
7599 OString
expVal( aStrBuf
.getStr() );
7600 sal_Int32 input
= -15;
7601 sal_Int16 radix
= 10;
7603 expVal
+= OString( "-" );
7604 expVal
+= OString( "15" );
7605 aStrBuf
.append( input
, radix
);
7607 CPPUNIT_ASSERT_MESSAGE
7609 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
7610 aStrBuf
.getStr()== expVal
&&
7611 aStrBuf
.getLength() == expVal
.getLength()
7618 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
7619 OString
expVal( aStrBuf
.getStr() );
7620 sal_Int32 input
= -0;
7621 sal_Int16 radix
= 16;
7623 expVal
+= OString( "0" );
7624 aStrBuf
.append( input
, radix
);
7626 CPPUNIT_ASSERT_MESSAGE
7628 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
7629 aStrBuf
.getStr()== expVal
&&
7630 aStrBuf
.getLength() == expVal
.getLength()
7637 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
7638 OString
expVal( aStrBuf
.getStr() );
7639 sal_Int32 input
= -4;
7640 sal_Int16 radix
= 16;
7642 expVal
+= OString( "-" );
7643 expVal
+= OString( "4" );
7644 aStrBuf
.append( input
, radix
);
7646 CPPUNIT_ASSERT_MESSAGE
7648 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
7649 aStrBuf
.getStr()== expVal
&&
7650 aStrBuf
.getLength() == expVal
.getLength()
7657 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
7658 OString
expVal( aStrBuf
.getStr() );
7659 sal_Int32 input
= -8;
7660 sal_Int16 radix
= 16;
7662 expVal
+= OString( "-" );
7663 expVal
+= OString( "8" );
7664 aStrBuf
.append( input
, radix
);
7666 CPPUNIT_ASSERT_MESSAGE
7668 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
7669 aStrBuf
.getStr()== expVal
&&
7670 aStrBuf
.getLength() == expVal
.getLength()
7677 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
7678 OString
expVal( aStrBuf
.getStr() );
7679 sal_Int32 input
= -15;
7680 sal_Int16 radix
= 16;
7682 expVal
+= OString( "-" );
7683 expVal
+= OString( "f" );
7684 aStrBuf
.append( input
, radix
);
7686 CPPUNIT_ASSERT_MESSAGE
7688 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
7689 aStrBuf
.getStr()== expVal
&&
7690 aStrBuf
.getLength() == expVal
.getLength()
7697 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
7698 OString
expVal( aStrBuf
.getStr() );
7699 sal_Int32 input
= -0;
7700 sal_Int16 radix
= 36;
7702 expVal
+= OString( "0" );
7703 aStrBuf
.append( input
, radix
);
7705 CPPUNIT_ASSERT_MESSAGE
7707 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
7708 aStrBuf
.getStr()== expVal
&&
7709 aStrBuf
.getLength() == expVal
.getLength()
7716 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
7717 OString
expVal( aStrBuf
.getStr() );
7718 sal_Int32 input
= -4;
7719 sal_Int16 radix
= 36;
7721 expVal
+= OString( "-" );
7722 expVal
+= OString( "4" );
7723 aStrBuf
.append( input
, radix
);
7725 CPPUNIT_ASSERT_MESSAGE
7727 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
7728 aStrBuf
.getStr()== expVal
&&
7729 aStrBuf
.getLength() == expVal
.getLength()
7736 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
7737 OString
expVal( aStrBuf
.getStr() );
7738 sal_Int32 input
= -8;
7739 sal_Int16 radix
= 36;
7741 expVal
+= OString( "-" );
7742 expVal
+= OString( "8" );
7743 aStrBuf
.append( input
, radix
);
7745 CPPUNIT_ASSERT_MESSAGE
7747 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
7748 aStrBuf
.getStr()== expVal
&&
7749 aStrBuf
.getLength() == expVal
.getLength()
7756 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
7757 OString
expVal( aStrBuf
.getStr() );
7758 sal_Int32 input
= -35;
7759 sal_Int16 radix
= 36;
7761 expVal
+= OString( "-" );
7762 expVal
+= OString( "z" );
7763 aStrBuf
.append( input
, radix
);
7765 CPPUNIT_ASSERT_MESSAGE
7767 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
7768 aStrBuf
.getStr()== expVal
&&
7769 aStrBuf
.getLength() == expVal
.getLength()
7776 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
7777 OString
expVal( aStrBuf
.getStr() );
7778 sal_Int32 input
= -0;
7779 sal_Int16 radix
= 2;
7781 expVal
+= OString( "0" );
7782 aStrBuf
.append( input
, radix
);
7784 CPPUNIT_ASSERT_MESSAGE
7786 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
7787 aStrBuf
.getStr()== expVal
&&
7788 aStrBuf
.getLength() == expVal
.getLength()
7795 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
7796 OString
expVal( aStrBuf
.getStr() );
7797 sal_Int32 input
= -4;
7798 sal_Int16 radix
= 2;
7800 expVal
+= OString( "-" );
7801 expVal
+= OString( "100" );
7802 aStrBuf
.append( input
, radix
);
7804 CPPUNIT_ASSERT_MESSAGE
7806 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
7807 aStrBuf
.getStr()== expVal
&&
7808 aStrBuf
.getLength() == expVal
.getLength()
7815 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
7816 OString
expVal( aStrBuf
.getStr() );
7817 sal_Int32 input
= -8;
7818 sal_Int16 radix
= 2;
7820 expVal
+= OString( "-" );
7821 expVal
+= OString( "1000" );
7822 aStrBuf
.append( input
, radix
);
7824 CPPUNIT_ASSERT_MESSAGE
7826 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
7827 aStrBuf
.getStr()== expVal
&&
7828 aStrBuf
.getLength() == expVal
.getLength()
7835 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
7836 OString
expVal( aStrBuf
.getStr() );
7837 sal_Int32 input
= -15;
7838 sal_Int16 radix
= 2;
7840 expVal
+= OString( "-" );
7841 expVal
+= OString( "1111" );
7842 aStrBuf
.append( input
, radix
);
7844 CPPUNIT_ASSERT_MESSAGE
7846 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
7847 aStrBuf
.getStr()== expVal
&&
7848 aStrBuf
.getLength() == expVal
.getLength()
7855 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
7856 OString
expVal( aStrBuf
.getStr() );
7857 sal_Int32 input
= -0;
7858 sal_Int16 radix
= 8;
7860 expVal
+= OString( "0" );
7861 aStrBuf
.append( input
, radix
);
7863 CPPUNIT_ASSERT_MESSAGE
7865 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
7866 aStrBuf
.getStr()== expVal
&&
7867 aStrBuf
.getLength() == expVal
.getLength()
7874 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
7875 OString
expVal( aStrBuf
.getStr() );
7876 sal_Int32 input
= -4;
7877 sal_Int16 radix
= 8;
7879 expVal
+= OString( "-" );
7880 expVal
+= OString( "4" );
7881 aStrBuf
.append( input
, radix
);
7883 CPPUNIT_ASSERT_MESSAGE
7885 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
7886 aStrBuf
.getStr()== expVal
&&
7887 aStrBuf
.getLength() == expVal
.getLength()
7894 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
7895 OString
expVal( aStrBuf
.getStr() );
7896 sal_Int32 input
= -8;
7897 sal_Int16 radix
= 8;
7899 expVal
+= OString( "-" );
7900 expVal
+= OString( "10" );
7901 aStrBuf
.append( input
, radix
);
7903 CPPUNIT_ASSERT_MESSAGE
7905 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
7906 aStrBuf
.getStr()== expVal
&&
7907 aStrBuf
.getLength() == expVal
.getLength()
7914 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
7915 OString
expVal( aStrBuf
.getStr() );
7916 sal_Int32 input
= -15;
7917 sal_Int16 radix
= 8;
7919 expVal
+= OString( "-" );
7920 expVal
+= OString( "17" );
7921 aStrBuf
.append( input
, radix
);
7923 CPPUNIT_ASSERT_MESSAGE
7925 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
7926 aStrBuf
.getStr()== expVal
&&
7927 aStrBuf
.getLength() == expVal
.getLength()
7934 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
7935 OString
expVal( aStrBuf
.getStr() );
7936 sal_Int32 input
= -0;
7937 sal_Int16 radix
= 10;
7939 expVal
+= OString( "0" );
7940 aStrBuf
.append( input
, radix
);
7942 CPPUNIT_ASSERT_MESSAGE
7944 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
7945 aStrBuf
.getStr()== expVal
&&
7946 aStrBuf
.getLength() == expVal
.getLength()
7953 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
7954 OString
expVal( aStrBuf
.getStr() );
7955 sal_Int32 input
= -4;
7956 sal_Int16 radix
= 10;
7958 expVal
+= OString( "-" );
7959 expVal
+= OString( "4" );
7960 aStrBuf
.append( input
, radix
);
7962 CPPUNIT_ASSERT_MESSAGE
7964 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
7965 aStrBuf
.getStr()== expVal
&&
7966 aStrBuf
.getLength() == expVal
.getLength()
7973 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
7974 OString
expVal( aStrBuf
.getStr() );
7975 sal_Int32 input
= -8;
7976 sal_Int16 radix
= 10;
7978 expVal
+= OString( "-" );
7979 expVal
+= OString( "8" );
7980 aStrBuf
.append( input
, radix
);
7982 CPPUNIT_ASSERT_MESSAGE
7984 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
7985 aStrBuf
.getStr()== expVal
&&
7986 aStrBuf
.getLength() == expVal
.getLength()
7993 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
7994 OString
expVal( aStrBuf
.getStr() );
7995 sal_Int32 input
= -15;
7996 sal_Int16 radix
= 10;
7998 expVal
+= OString( "-" );
7999 expVal
+= OString( "15" );
8000 aStrBuf
.append( input
, radix
);
8002 CPPUNIT_ASSERT_MESSAGE
8004 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
8005 aStrBuf
.getStr()== expVal
&&
8006 aStrBuf
.getLength() == expVal
.getLength()
8013 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
8014 OString
expVal( aStrBuf
.getStr() );
8015 sal_Int32 input
= -0;
8016 sal_Int16 radix
= 16;
8018 expVal
+= OString( "0" );
8019 aStrBuf
.append( input
, radix
);
8021 CPPUNIT_ASSERT_MESSAGE
8023 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
8024 aStrBuf
.getStr()== expVal
&&
8025 aStrBuf
.getLength() == expVal
.getLength()
8032 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
8033 OString
expVal( aStrBuf
.getStr() );
8034 sal_Int32 input
= -4;
8035 sal_Int16 radix
= 16;
8037 expVal
+= OString( "-" );
8038 expVal
+= OString( "4" );
8039 aStrBuf
.append( input
, radix
);
8041 CPPUNIT_ASSERT_MESSAGE
8043 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
8044 aStrBuf
.getStr()== expVal
&&
8045 aStrBuf
.getLength() == expVal
.getLength()
8052 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
8053 OString
expVal( aStrBuf
.getStr() );
8054 sal_Int32 input
= -8;
8055 sal_Int16 radix
= 16;
8057 expVal
+= OString( "-" );
8058 expVal
+= OString( "8" );
8059 aStrBuf
.append( input
, radix
);
8061 CPPUNIT_ASSERT_MESSAGE
8063 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
8064 aStrBuf
.getStr()== expVal
&&
8065 aStrBuf
.getLength() == expVal
.getLength()
8072 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
8073 OString
expVal( aStrBuf
.getStr() );
8074 sal_Int32 input
= -15;
8075 sal_Int16 radix
= 16;
8077 expVal
+= OString( "-" );
8078 expVal
+= OString( "f" );
8079 aStrBuf
.append( input
, radix
);
8081 CPPUNIT_ASSERT_MESSAGE
8083 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
8084 aStrBuf
.getStr()== expVal
&&
8085 aStrBuf
.getLength() == expVal
.getLength()
8092 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
8093 OString
expVal( aStrBuf
.getStr() );
8094 sal_Int32 input
= -0;
8095 sal_Int16 radix
= 36;
8097 expVal
+= OString( "0" );
8098 aStrBuf
.append( input
, radix
);
8100 CPPUNIT_ASSERT_MESSAGE
8102 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
8103 aStrBuf
.getStr()== expVal
&&
8104 aStrBuf
.getLength() == expVal
.getLength()
8111 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
8112 OString
expVal( aStrBuf
.getStr() );
8113 sal_Int32 input
= -4;
8114 sal_Int16 radix
= 36;
8116 expVal
+= OString( "-" );
8117 expVal
+= OString( "4" );
8118 aStrBuf
.append( input
, radix
);
8120 CPPUNIT_ASSERT_MESSAGE
8122 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
8123 aStrBuf
.getStr()== expVal
&&
8124 aStrBuf
.getLength() == expVal
.getLength()
8130 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
8131 OString
expVal( aStrBuf
.getStr() );
8132 sal_Int32 input
= -8;
8133 sal_Int16 radix
= 36;
8135 expVal
+= OString( "-" );
8136 expVal
+= OString( "8" );
8137 aStrBuf
.append( input
, radix
);
8139 CPPUNIT_ASSERT_MESSAGE
8141 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
8142 aStrBuf
.getStr()== expVal
&&
8143 aStrBuf
.getLength() == expVal
.getLength()
8149 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
8150 OString
expVal( aStrBuf
.getStr() );
8151 sal_Int32 input
= -35;
8152 sal_Int16 radix
= 36;
8154 expVal
+= OString( "-" );
8155 expVal
+= OString( "z" );
8156 aStrBuf
.append( input
, radix
);
8158 CPPUNIT_ASSERT_MESSAGE
8160 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
8161 aStrBuf
.getStr()== expVal
&&
8162 aStrBuf
.getLength() == expVal
.getLength()
8166 CPPUNIT_TEST_SUITE( append_006_Int32_Negative
);
8167 CPPUNIT_TEST( append_001
); CPPUNIT_TEST( append_002
);
8168 CPPUNIT_TEST( append_003
); CPPUNIT_TEST( append_004
);
8169 CPPUNIT_TEST( append_005
); CPPUNIT_TEST( append_006
);
8170 CPPUNIT_TEST( append_007
); CPPUNIT_TEST( append_008
);
8171 CPPUNIT_TEST( append_009
); CPPUNIT_TEST( append_010
);
8172 CPPUNIT_TEST( append_011
); CPPUNIT_TEST( append_012
);
8173 CPPUNIT_TEST( append_013
); CPPUNIT_TEST( append_014
);
8174 CPPUNIT_TEST( append_015
); CPPUNIT_TEST( append_016
);
8175 CPPUNIT_TEST( append_017
); CPPUNIT_TEST( append_018
);
8176 CPPUNIT_TEST( append_019
); CPPUNIT_TEST( append_020
);
8177 CPPUNIT_TEST( append_021
); CPPUNIT_TEST( append_022
);
8178 CPPUNIT_TEST( append_023
); CPPUNIT_TEST( append_024
);
8179 CPPUNIT_TEST( append_025
); CPPUNIT_TEST( append_026
);
8180 CPPUNIT_TEST( append_027
); CPPUNIT_TEST( append_028
);
8181 CPPUNIT_TEST( append_029
); CPPUNIT_TEST( append_030
);
8182 CPPUNIT_TEST( append_031
); CPPUNIT_TEST( append_032
);
8183 CPPUNIT_TEST( append_033
); CPPUNIT_TEST( append_034
);
8184 CPPUNIT_TEST( append_035
); CPPUNIT_TEST( append_036
);
8185 CPPUNIT_TEST( append_037
); CPPUNIT_TEST( append_038
);
8186 CPPUNIT_TEST( append_039
); CPPUNIT_TEST( append_040
);
8187 CPPUNIT_TEST( append_041
); CPPUNIT_TEST( append_042
);
8188 CPPUNIT_TEST( append_043
); CPPUNIT_TEST( append_044
);
8189 CPPUNIT_TEST( append_045
); CPPUNIT_TEST( append_046
);
8190 CPPUNIT_TEST( append_047
); CPPUNIT_TEST( append_048
);
8191 CPPUNIT_TEST( append_049
); CPPUNIT_TEST( append_050
);
8192 CPPUNIT_TEST( append_051
); CPPUNIT_TEST( append_052
);
8193 CPPUNIT_TEST( append_053
); CPPUNIT_TEST( append_054
);
8194 CPPUNIT_TEST( append_055
); CPPUNIT_TEST( append_056
);
8195 CPPUNIT_TEST( append_057
); CPPUNIT_TEST( append_058
);
8196 CPPUNIT_TEST( append_059
); CPPUNIT_TEST( append_060
);
8197 CPPUNIT_TEST( append_061
); CPPUNIT_TEST( append_062
);
8198 CPPUNIT_TEST( append_063
); CPPUNIT_TEST( append_064
);
8199 CPPUNIT_TEST( append_065
); CPPUNIT_TEST( append_066
);
8200 CPPUNIT_TEST( append_067
); CPPUNIT_TEST( append_068
);
8201 CPPUNIT_TEST( append_069
); CPPUNIT_TEST( append_070
);
8202 CPPUNIT_TEST( append_071
); CPPUNIT_TEST( append_072
);
8203 CPPUNIT_TEST( append_073
); CPPUNIT_TEST( append_074
);
8204 CPPUNIT_TEST( append_075
); CPPUNIT_TEST( append_076
);
8205 CPPUNIT_TEST( append_077
); CPPUNIT_TEST( append_078
);
8206 CPPUNIT_TEST( append_079
); CPPUNIT_TEST( append_080
);
8207 CPPUNIT_TEST( append_081
); CPPUNIT_TEST( append_082
);
8208 CPPUNIT_TEST( append_083
); CPPUNIT_TEST( append_084
);
8209 CPPUNIT_TEST( append_085
); CPPUNIT_TEST( append_086
);
8210 CPPUNIT_TEST( append_087
); CPPUNIT_TEST( append_088
);
8211 CPPUNIT_TEST( append_089
); CPPUNIT_TEST( append_090
);
8212 CPPUNIT_TEST( append_091
); CPPUNIT_TEST( append_092
);
8213 CPPUNIT_TEST( append_093
); CPPUNIT_TEST( append_094
);
8214 CPPUNIT_TEST( append_095
); CPPUNIT_TEST( append_096
);
8215 CPPUNIT_TEST( append_097
); CPPUNIT_TEST( append_098
);
8216 CPPUNIT_TEST( append_099
); CPPUNIT_TEST( append_100
);
8217 CPPUNIT_TEST_SUITE_END();
8220 // testing the method append( sal_Int32 i, sal_Int16 radix ) where radix = -5
8222 class append_006_Int32_WrongRadix
: public CppUnit::TestFixture
8228 void setUp() SAL_OVERRIDE
8230 arrOUS
[0] = new OString( kTestStr7
);
8231 arrOUS
[1] = new OString( );
8232 arrOUS
[2] = new OString( kTestStr25
);
8233 arrOUS
[3] = new OString( "" );
8234 arrOUS
[4] = new OString( kTestStr28
);
8239 void tearDown() SAL_OVERRIDE
8241 delete arrOUS
[0]; delete arrOUS
[1]; delete arrOUS
[2];
8242 delete arrOUS
[3]; delete arrOUS
[4];
8247 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
8248 OString
expVal( kTestStr59
);
8250 aStrBuf
.append( intVal
, -5 );
8252 CPPUNIT_ASSERT_MESSAGE
8254 "Appends the WrongRadix to the string buffer arrOUS[0]",
8255 aStrBuf
.getStr()== expVal
&&
8256 aStrBuf
.getLength() == expVal
.getLength()
8262 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
8263 OString
expVal( kTestStr60
);
8265 aStrBuf
.append( intVal
, -5 );
8267 CPPUNIT_ASSERT_MESSAGE
8269 "Appends the WrongRadix to the string buffer arrOUS[1]",
8270 aStrBuf
.getStr()== expVal
&&
8271 aStrBuf
.getLength() == expVal
.getLength()
8277 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
8278 OString
expVal( kTestStr60
);
8280 aStrBuf
.append( intVal
, -5 );
8282 CPPUNIT_ASSERT_MESSAGE
8284 "Appends the WrongRadix to the string buffer arrOUS[2]",
8285 aStrBuf
.getStr()== expVal
&&
8286 aStrBuf
.getLength() == expVal
.getLength()
8293 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
8294 OString
expVal( kTestStr60
);
8296 aStrBuf
.append( intVal
, -5 );
8298 CPPUNIT_ASSERT_MESSAGE
8300 "Appends the WrongRadix to the string buffer arrOUS[3]",
8301 aStrBuf
.getStr()== expVal
&&
8302 aStrBuf
.getLength() == expVal
.getLength()
8309 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
8310 OString
expVal( kTestStr61
);
8312 aStrBuf
.append( intVal
, -5 );
8314 CPPUNIT_ASSERT_MESSAGE
8316 "Appends the WrongRadix to the string buffer arrOUS[4]",
8317 (aStrBuf
.toString() == expVal
&&
8318 aStrBuf
.getLength() == expVal
.getLength())
8324 ::rtl::OStringBuffer
aStrBuf( kSInt32Max
);
8325 OString
expVal( kTestStr60
);
8327 aStrBuf
.append( intVal
, -5 );
8329 CPPUNIT_ASSERT_MESSAGE
8331 "Appends the WrongRadix to the string buffer(with INT_MAX)",
8332 aStrBuf
.getStr()== expVal
&&
8333 aStrBuf
.getLength() == expVal
.getLength()
8339 CPPUNIT_TEST_SUITE( append_006_Int32_WrongRadix
);
8340 CPPUNIT_TEST( append_001
);
8341 CPPUNIT_TEST( append_002
);
8342 CPPUNIT_TEST( append_003
);
8343 CPPUNIT_TEST( append_004
);
8344 CPPUNIT_TEST( append_005
);
8346 CPPUNIT_TEST( append_006
);
8348 CPPUNIT_TEST_SUITE_END();
8351 class append_006_Int32_defaultParam
: public CppUnit::TestFixture
8356 void setUp() SAL_OVERRIDE
8358 arrOUS
[0] = new OString( kTestStr7
);
8359 arrOUS
[1] = new OString( );
8360 arrOUS
[2] = new OString( kTestStr25
);
8361 arrOUS
[3] = new OString( "" );
8362 arrOUS
[4] = new OString( kTestStr28
);
8366 void tearDown() SAL_OVERRIDE
8368 delete arrOUS
[0]; delete arrOUS
[1]; delete arrOUS
[2];
8369 delete arrOUS
[3]; delete arrOUS
[4];
8374 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
8375 OString
expVal( kTestStr59
);
8376 sal_Int32 input
= 11;
8378 aStrBuf
.append( input
);
8380 CPPUNIT_ASSERT_MESSAGE
8382 "input Int32 11 and return OStringBuffer[0]+11",
8383 (aStrBuf
.toString() == expVal
&&
8384 aStrBuf
.getLength() == expVal
.getLength())
8391 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
8392 OString
expVal( kTestStr62
);
8393 sal_Int32 input
= 0;
8395 aStrBuf
.append( input
);
8397 CPPUNIT_ASSERT_MESSAGE
8399 "input Int32 0 and return OStringBuffer[0]+0",
8400 (aStrBuf
.toString() == expVal
&&
8401 aStrBuf
.getLength() == expVal
.getLength())
8408 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
8409 OString
expVal( kTestStr63
);
8410 sal_Int32 input
= -11;
8412 aStrBuf
.append( input
);
8414 CPPUNIT_ASSERT_MESSAGE
8416 "input Int32 -11 and return OStringBuffer[0]+(-11)",
8417 (aStrBuf
.toString() == expVal
&&
8418 aStrBuf
.getLength() == expVal
.getLength())
8425 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
8426 OString
expVal( kTestStr64
);
8427 sal_Int32 input
= 2147483647;
8429 aStrBuf
.append( input
);
8431 CPPUNIT_ASSERT_MESSAGE
8433 "input Int32 2147483647 and return OStringBuffer[0]+2147483647",
8434 (aStrBuf
.toString() == expVal
&&
8435 aStrBuf
.getLength() == expVal
.getLength())
8442 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
8443 OString
expVal( kTestStr65
);
8444 sal_Int32 input
= kNonSInt32Max
;
8446 aStrBuf
.append( input
);
8448 CPPUNIT_ASSERT_MESSAGE
8450 "input Int32 -2147483648 and return OStringBuffer[0]+(-2147483648)",
8451 (aStrBuf
.toString() == expVal
&&
8452 aStrBuf
.getLength() == expVal
.getLength())
8459 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
8460 OString
expVal( kTestStr60
);
8461 sal_Int32 input
= 11;
8463 aStrBuf
.append( input
);
8465 CPPUNIT_ASSERT_MESSAGE
8467 "input Int32 11 and return OStringBuffer[1]+11",
8468 (aStrBuf
.toString() == expVal
&&
8469 aStrBuf
.getLength() == expVal
.getLength())
8476 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
8477 OString
expVal( kTestStr66
);
8478 sal_Int32 input
= 0;
8480 aStrBuf
.append( input
);
8482 CPPUNIT_ASSERT_MESSAGE
8484 "input Int32 0 and return OStringBuffer[1]+0",
8485 (aStrBuf
.toString() == expVal
&&
8486 aStrBuf
.getLength() == expVal
.getLength())
8493 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
8494 OString
expVal( kTestStr67
);
8495 sal_Int32 input
= -11;
8497 aStrBuf
.append( input
);
8499 CPPUNIT_ASSERT_MESSAGE
8501 "input Int32 -11 and return OStringBuffer[1]+(-11)",
8502 (aStrBuf
.toString() == expVal
&&
8503 aStrBuf
.getLength() == expVal
.getLength())
8510 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
8511 OString
expVal( kTestStr68
);
8512 sal_Int32 input
= 2147483647;
8514 aStrBuf
.append( input
);
8516 CPPUNIT_ASSERT_MESSAGE
8518 "input Int32 2147483647 and return OStringBuffer[1]+2147483647",
8519 (aStrBuf
.toString() == expVal
&&
8520 aStrBuf
.getLength() == expVal
.getLength())
8527 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
8528 OString
expVal( kTestStr69
);
8529 sal_Int32 input
= SAL_MIN_INT32
/*-2147483648*/;
8531 aStrBuf
.append( input
);
8533 CPPUNIT_ASSERT_MESSAGE
8535 "input Int32 -2147483648 and return OStringBuffer[1]+(-2147483648)",
8536 (aStrBuf
.toString() == expVal
&&
8537 aStrBuf
.getLength() == expVal
.getLength())
8544 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
8545 OString
expVal( kTestStr60
);
8546 sal_Int32 input
= 11;
8548 aStrBuf
.append( input
);
8550 CPPUNIT_ASSERT_MESSAGE
8552 "input Int32 11 and return OStringBuffer[2]+11",
8553 (aStrBuf
.toString() == expVal
&&
8554 aStrBuf
.getLength() == expVal
.getLength())
8561 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
8562 OString
expVal( kTestStr66
);
8563 sal_Int32 input
= 0;
8565 aStrBuf
.append( input
);
8567 CPPUNIT_ASSERT_MESSAGE
8569 "input Int32 0 and return OUStringBuffer[2]+0",
8570 (aStrBuf
.toString() == expVal
&&
8571 aStrBuf
.getLength() == expVal
.getLength())
8578 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
8579 OString
expVal( kTestStr67
);
8580 sal_Int32 input
= -11;
8582 aStrBuf
.append( input
);
8584 CPPUNIT_ASSERT_MESSAGE
8586 "input Int32 -11 and return OUStringBuffer[2]+(-11)",
8587 (aStrBuf
.toString() == expVal
&&
8588 aStrBuf
.getLength() == expVal
.getLength())
8595 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
8596 OString
expVal( kTestStr68
);
8597 sal_Int32 input
= 2147483647;
8599 aStrBuf
.append( input
);
8601 CPPUNIT_ASSERT_MESSAGE
8603 "input Int32 2147483647 and return OStringBuffer[2]+2147483647",
8604 (aStrBuf
.toString() == expVal
&&
8605 aStrBuf
.getLength() == expVal
.getLength())
8612 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
8613 OString
expVal( kTestStr69
);
8614 sal_Int32 input
= SAL_MIN_INT32
;
8616 aStrBuf
.append( input
);
8618 CPPUNIT_ASSERT_MESSAGE
8620 "input Int32 -2147483648 and return OStringBuffer[2]+(-2147483648)",
8621 (aStrBuf
.toString() == expVal
&&
8622 aStrBuf
.getLength() == expVal
.getLength())
8629 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
8630 OString
expVal( kTestStr60
);
8631 sal_Int32 input
= 11;
8633 aStrBuf
.append( input
);
8635 CPPUNIT_ASSERT_MESSAGE
8637 "input Int32 11 and return OStringBuffer[3]+11",
8638 (aStrBuf
.toString() == expVal
&&
8639 aStrBuf
.getLength() == expVal
.getLength())
8646 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
8647 OString
expVal( kTestStr66
);
8648 sal_Int32 input
= 0;
8650 aStrBuf
.append( input
);
8652 CPPUNIT_ASSERT_MESSAGE
8654 "input Int32 0 and return OStringBuffer[3]+0",
8655 (aStrBuf
.toString() == expVal
&&
8656 aStrBuf
.getLength() == expVal
.getLength())
8663 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
8664 OString
expVal( kTestStr67
);
8665 sal_Int32 input
= -11;
8667 aStrBuf
.append( input
);
8669 CPPUNIT_ASSERT_MESSAGE
8671 "input Int32 -11 and return OStringBuffer[3]+(-11)",
8672 (aStrBuf
.toString() == expVal
&&
8673 aStrBuf
.getLength() == expVal
.getLength())
8680 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
8681 OString
expVal( kTestStr68
);
8682 sal_Int32 input
= 2147483647;
8684 aStrBuf
.append( input
);
8686 CPPUNIT_ASSERT_MESSAGE
8688 "input Int32 2147483647 and return OStringBuffer[3]+2147483647",
8689 (aStrBuf
.toString() == expVal
&&
8690 aStrBuf
.getLength() == expVal
.getLength())
8697 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
8698 OString
expVal( kTestStr69
);
8699 sal_Int32 input
= SAL_MIN_INT32
;
8701 aStrBuf
.append( input
);
8703 CPPUNIT_ASSERT_MESSAGE
8705 "input Int32 -2147483648 and return OStringBuffer[3]+(-2147483648)",
8706 (aStrBuf
.toString() == expVal
&&
8707 aStrBuf
.getLength() == expVal
.getLength())
8714 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
8715 OString
expVal( kTestStr61
);
8716 sal_Int32 input
= 11;
8718 aStrBuf
.append( input
);
8720 CPPUNIT_ASSERT_MESSAGE
8722 "input Int32 11 and return OStringBuffer[4]+11",
8723 (aStrBuf
.toString() == expVal
&&
8724 aStrBuf
.getLength() == expVal
.getLength())
8731 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
8732 OString
expVal( kTestStr70
);
8733 sal_Int32 input
= 0;
8735 aStrBuf
.append( input
);
8737 CPPUNIT_ASSERT_MESSAGE
8739 "input Int32 0 and return OStringBuffer[4]+0",
8740 (aStrBuf
.toString() == expVal
&&
8741 aStrBuf
.getLength() == expVal
.getLength())
8748 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
8749 OString
expVal( kTestStr71
);
8750 sal_Int32 input
= -11;
8752 aStrBuf
.append( input
);
8754 CPPUNIT_ASSERT_MESSAGE
8756 "input Int32 -11 and return OStringBuffer[4]+(-11)",
8757 (aStrBuf
.toString() == expVal
&&
8758 aStrBuf
.getLength() == expVal
.getLength())
8765 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
8766 OString
expVal( kTestStr72
);
8767 sal_Int32 input
= 2147483647;
8769 aStrBuf
.append( input
);
8771 CPPUNIT_ASSERT_MESSAGE
8773 "input Int32 2147483647 and return OStringBuffer[4]+2147483647",
8774 (aStrBuf
.toString() == expVal
&&
8775 aStrBuf
.getLength() == expVal
.getLength())
8782 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
8783 OString
expVal( kTestStr73
);
8784 sal_Int32 input
= SAL_MIN_INT32
;
8786 aStrBuf
.append( input
);
8788 CPPUNIT_ASSERT_MESSAGE
8790 "input Int32 -2147483648 and return OStringBuffer[4]+(-2147483648)",
8791 (aStrBuf
.toString() == expVal
&&
8792 aStrBuf
.getLength() == expVal
.getLength())
8799 ::rtl::OStringBuffer
aStrBuf( kSInt32Max
);
8800 OString
expVal( kTestStr60
);
8801 sal_Int32 input
= 11;
8803 aStrBuf
.append( input
);
8805 CPPUNIT_ASSERT_MESSAGE
8807 "input Int32 11 and return OStringBuffer(kSInt32Max)+11",
8808 (aStrBuf
.toString() == expVal
&&
8809 aStrBuf
.getLength() == expVal
.getLength())
8816 ::rtl::OStringBuffer
aStrBuf( kSInt32Max
);
8817 OString
expVal( kTestStr66
);
8818 sal_Int32 input
= 0;
8820 aStrBuf
.append( input
);
8822 CPPUNIT_ASSERT_MESSAGE
8824 "input Int32 0 and return OStringBuffer(kSInt32Max)+0",
8825 (aStrBuf
.toString() == expVal
&&
8826 aStrBuf
.getLength() == expVal
.getLength())
8833 ::rtl::OStringBuffer
aStrBuf( kSInt32Max
);
8834 OString
expVal( kTestStr67
);
8835 sal_Int32 input
= -11;
8837 aStrBuf
.append( input
);
8839 CPPUNIT_ASSERT_MESSAGE
8841 "input Int32 -11 and return OStringBuffer(kSInt32Max)+(-11)",
8842 (aStrBuf
.toString() == expVal
&&
8843 aStrBuf
.getLength() == expVal
.getLength())
8850 ::rtl::OStringBuffer
aStrBuf( kSInt32Max
);
8851 OString
expVal( kTestStr68
);
8852 sal_Int32 input
= 2147483647;
8854 aStrBuf
.append( input
);
8856 CPPUNIT_ASSERT_MESSAGE
8858 "input Int32 2147483647 and return OStringBuffer(kSInt32Max)+2147483647",
8859 (aStrBuf
.toString() == expVal
&&
8860 aStrBuf
.getLength() == expVal
.getLength())
8867 ::rtl::OStringBuffer
aStrBuf( kSInt32Max
);
8868 OString
expVal( kTestStr69
);
8869 sal_Int32 input
= SAL_MIN_INT32
;
8871 aStrBuf
.append( input
);
8873 CPPUNIT_ASSERT_MESSAGE
8875 "input Int32 -2147483648 and return OStringBuffer(kSInt32Max)+(-2147483648)",
8876 (aStrBuf
.toString() == expVal
&&
8877 aStrBuf
.getLength() == expVal
.getLength())
8883 CPPUNIT_TEST_SUITE( append_006_Int32_defaultParam
);
8884 CPPUNIT_TEST( append_001
);
8885 CPPUNIT_TEST( append_002
);
8886 CPPUNIT_TEST( append_003
);
8887 CPPUNIT_TEST( append_004
);
8888 CPPUNIT_TEST( append_005
);
8889 CPPUNIT_TEST( append_006
);
8890 CPPUNIT_TEST( append_007
);
8891 CPPUNIT_TEST( append_008
);
8892 CPPUNIT_TEST( append_009
);
8893 CPPUNIT_TEST( append_010
);
8894 CPPUNIT_TEST( append_011
);
8895 CPPUNIT_TEST( append_012
);
8896 CPPUNIT_TEST( append_013
);
8897 CPPUNIT_TEST( append_014
);
8898 CPPUNIT_TEST( append_015
);
8899 CPPUNIT_TEST( append_016
);
8900 CPPUNIT_TEST( append_017
);
8901 CPPUNIT_TEST( append_018
);
8902 CPPUNIT_TEST( append_019
);
8903 CPPUNIT_TEST( append_020
);
8904 CPPUNIT_TEST( append_021
);
8905 CPPUNIT_TEST( append_022
);
8906 CPPUNIT_TEST( append_023
);
8907 CPPUNIT_TEST( append_024
);
8908 CPPUNIT_TEST( append_025
);
8910 CPPUNIT_TEST( append_026
);
8911 CPPUNIT_TEST( append_027
);
8912 CPPUNIT_TEST( append_028
);
8913 CPPUNIT_TEST( append_029
);
8914 CPPUNIT_TEST( append_030
);
8916 CPPUNIT_TEST_SUITE_END();
8919 // testing the method append( sal_Int64 l, sal_Int16 radix=2 )
8920 // testing the method append( sal_Int64 l, sal_Int16 radix=8 )
8921 // testing the method append( sal_Int64 l, sal_Int16 radix=10 )
8922 // testing the method append( sal_Int64 l, sal_Int16 radix=16 )
8923 // testing the method append( sal_Int64 l, sal_Int16 radix=36 )
8925 class append_007_Int64
: public CppUnit::TestFixture
8930 void setUp() SAL_OVERRIDE
8932 arrOUS
[0] = new OString( kTestStr7
);
8933 arrOUS
[1] = new OString( );
8934 arrOUS
[2] = new OString( kTestStr25
);
8935 arrOUS
[3] = new OString( "" );
8936 arrOUS
[4] = new OString( kTestStr28
);
8940 void tearDown() SAL_OVERRIDE
8942 delete arrOUS
[0]; delete arrOUS
[1]; delete arrOUS
[2];
8943 delete arrOUS
[3]; delete arrOUS
[4];
8948 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
8949 OString
expVal( aStrBuf
.getStr() );
8950 sal_Int64 input
= 0;
8951 sal_Int16 radix
= 2;
8953 expVal
+= OString( "0" );
8954 aStrBuf
.append( input
, radix
);
8956 CPPUNIT_ASSERT_MESSAGE
8958 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
8959 aStrBuf
.getStr()== expVal
&&
8960 aStrBuf
.getLength() == expVal
.getLength()
8967 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
8968 OString
expVal( aStrBuf
.getStr() );
8969 sal_Int64 input
= 4;
8970 sal_Int16 radix
= 2;
8972 expVal
+= OString( "100" );
8973 aStrBuf
.append( input
, radix
);
8975 CPPUNIT_ASSERT_MESSAGE
8977 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
8978 aStrBuf
.getStr()== expVal
&&
8979 aStrBuf
.getLength() == expVal
.getLength()
8986 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
8987 OString
expVal( aStrBuf
.getStr() );
8988 sal_Int64 input
= 8;
8989 sal_Int16 radix
= 2;
8991 expVal
+= OString( "1000" );
8992 aStrBuf
.append( input
, radix
);
8994 CPPUNIT_ASSERT_MESSAGE
8996 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
8997 aStrBuf
.getStr()== expVal
&&
8998 aStrBuf
.getLength() == expVal
.getLength()
9005 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
9006 OString
expVal( aStrBuf
.getStr() );
9007 sal_Int64 input
= 15;
9008 sal_Int16 radix
= 2;
9010 expVal
+= OString( "1111" );
9011 aStrBuf
.append( input
, radix
);
9013 CPPUNIT_ASSERT_MESSAGE
9015 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
9016 aStrBuf
.getStr()== expVal
&&
9017 aStrBuf
.getLength() == expVal
.getLength()
9024 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
9025 OString
expVal( aStrBuf
.getStr() );
9026 sal_Int64 input
= 0;
9027 sal_Int16 radix
= 8;
9029 expVal
+= OString( "0" );
9030 aStrBuf
.append( input
, radix
);
9032 CPPUNIT_ASSERT_MESSAGE
9034 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
9035 aStrBuf
.getStr()== expVal
&&
9036 aStrBuf
.getLength() == expVal
.getLength()
9043 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
9044 OString
expVal( aStrBuf
.getStr() );
9045 sal_Int64 input
= 4;
9046 sal_Int16 radix
= 8;
9048 expVal
+= OString( "4" );
9049 aStrBuf
.append( input
, radix
);
9051 CPPUNIT_ASSERT_MESSAGE
9053 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
9054 aStrBuf
.getStr()== expVal
&&
9055 aStrBuf
.getLength() == expVal
.getLength()
9062 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
9063 OString
expVal( aStrBuf
.getStr() );
9064 sal_Int64 input
= 8;
9065 sal_Int16 radix
= 8;
9067 expVal
+= OString( "10" );
9068 aStrBuf
.append( input
, radix
);
9070 CPPUNIT_ASSERT_MESSAGE
9072 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
9073 aStrBuf
.getStr()== expVal
&&
9074 aStrBuf
.getLength() == expVal
.getLength()
9081 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
9082 OString
expVal( aStrBuf
.getStr() );
9083 sal_Int64 input
= 15;
9084 sal_Int16 radix
= 8;
9086 expVal
+= OString( "17" );
9087 aStrBuf
.append( input
, radix
);
9089 CPPUNIT_ASSERT_MESSAGE
9091 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
9092 aStrBuf
.getStr()== expVal
&&
9093 aStrBuf
.getLength() == expVal
.getLength()
9100 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
9101 OString
expVal( aStrBuf
.getStr() );
9102 sal_Int64 input
= 0;
9103 sal_Int16 radix
= 10;
9105 expVal
+= OString( "0" );
9106 aStrBuf
.append( input
, radix
);
9108 CPPUNIT_ASSERT_MESSAGE
9110 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
9111 aStrBuf
.getStr()== expVal
&&
9112 aStrBuf
.getLength() == expVal
.getLength()
9119 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
9120 OString
expVal( aStrBuf
.getStr() );
9121 sal_Int64 input
= 4;
9122 sal_Int16 radix
= 10;
9124 expVal
+= OString( "4" );
9125 aStrBuf
.append( input
, radix
);
9127 CPPUNIT_ASSERT_MESSAGE
9129 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
9130 aStrBuf
.getStr()== expVal
&&
9131 aStrBuf
.getLength() == expVal
.getLength()
9138 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
9139 OString
expVal( aStrBuf
.getStr() );
9140 sal_Int64 input
= 8;
9141 sal_Int16 radix
= 10;
9143 expVal
+= OString( "8" );
9144 aStrBuf
.append( input
, radix
);
9146 CPPUNIT_ASSERT_MESSAGE
9148 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
9149 aStrBuf
.getStr()== expVal
&&
9150 aStrBuf
.getLength() == expVal
.getLength()
9157 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
9158 OString
expVal( aStrBuf
.getStr() );
9159 sal_Int64 input
= 15;
9160 sal_Int16 radix
= 10;
9162 expVal
+= OString( "15" );
9163 aStrBuf
.append( input
, radix
);
9165 CPPUNIT_ASSERT_MESSAGE
9167 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
9168 aStrBuf
.getStr()== expVal
&&
9169 aStrBuf
.getLength() == expVal
.getLength()
9176 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
9177 OString
expVal( aStrBuf
.getStr() );
9178 sal_Int64 input
= 0;
9179 sal_Int16 radix
= 16;
9181 expVal
+= OString( "0" );
9182 aStrBuf
.append( input
, radix
);
9184 CPPUNIT_ASSERT_MESSAGE
9186 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
9187 aStrBuf
.getStr()== expVal
&&
9188 aStrBuf
.getLength() == expVal
.getLength()
9195 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
9196 OString
expVal( aStrBuf
.getStr() );
9197 sal_Int64 input
= 4;
9198 sal_Int16 radix
= 16;
9200 expVal
+= OString( "4" );
9201 aStrBuf
.append( input
, radix
);
9203 CPPUNIT_ASSERT_MESSAGE
9205 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
9206 aStrBuf
.getStr()== expVal
&&
9207 aStrBuf
.getLength() == expVal
.getLength()
9214 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
9215 OString
expVal( aStrBuf
.getStr() );
9216 sal_Int64 input
= 8;
9217 sal_Int16 radix
= 16;
9219 expVal
+= OString( "8" );
9220 aStrBuf
.append( input
, radix
);
9222 CPPUNIT_ASSERT_MESSAGE
9224 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
9225 aStrBuf
.getStr()== expVal
&&
9226 aStrBuf
.getLength() == expVal
.getLength()
9233 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
9234 OString
expVal( aStrBuf
.getStr() );
9235 sal_Int64 input
= 15;
9236 sal_Int16 radix
= 16;
9238 expVal
+= OString( "f" );
9239 aStrBuf
.append( input
, radix
);
9241 CPPUNIT_ASSERT_MESSAGE
9243 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
9244 aStrBuf
.getStr()== expVal
&&
9245 aStrBuf
.getLength() == expVal
.getLength()
9252 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
9253 OString
expVal( aStrBuf
.getStr() );
9254 sal_Int64 input
= 0;
9255 sal_Int16 radix
= 36;
9257 expVal
+= OString( "0" );
9258 aStrBuf
.append( input
, radix
);
9260 CPPUNIT_ASSERT_MESSAGE
9262 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
9263 aStrBuf
.getStr()== expVal
&&
9264 aStrBuf
.getLength() == expVal
.getLength()
9271 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
9272 OString
expVal( aStrBuf
.getStr() );
9273 sal_Int64 input
= 4;
9274 sal_Int16 radix
= 36;
9276 expVal
+= OString( "4" );
9277 aStrBuf
.append( input
, radix
);
9279 CPPUNIT_ASSERT_MESSAGE
9281 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
9282 aStrBuf
.getStr()== expVal
&&
9283 aStrBuf
.getLength() == expVal
.getLength()
9290 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
9291 OString
expVal( aStrBuf
.getStr() );
9292 sal_Int64 input
= 8;
9293 sal_Int16 radix
= 36;
9295 expVal
+= OString( "8" );
9296 aStrBuf
.append( input
, radix
);
9298 CPPUNIT_ASSERT_MESSAGE
9300 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
9301 aStrBuf
.getStr()== expVal
&&
9302 aStrBuf
.getLength() == expVal
.getLength()
9309 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
9310 OString
expVal( aStrBuf
.getStr() );
9311 sal_Int64 input
= 35;
9312 sal_Int16 radix
= 36;
9314 expVal
+= OString( "z" );
9315 aStrBuf
.append( input
, radix
);
9317 CPPUNIT_ASSERT_MESSAGE
9319 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
9320 aStrBuf
.getStr()== expVal
&&
9321 aStrBuf
.getLength() == expVal
.getLength()
9328 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
9329 OString
expVal( aStrBuf
.getStr() );
9330 sal_Int64 input
= 0;
9331 sal_Int16 radix
= 2;
9333 expVal
+= OString( "0" );
9334 aStrBuf
.append( input
, radix
);
9336 CPPUNIT_ASSERT_MESSAGE
9338 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
9339 aStrBuf
.getStr()== expVal
&&
9340 aStrBuf
.getLength() == expVal
.getLength()
9347 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
9348 OString
expVal( aStrBuf
.getStr() );
9349 sal_Int64 input
= 4;
9350 sal_Int16 radix
= 2;
9352 expVal
+= OString( "100" );
9353 aStrBuf
.append( input
, radix
);
9355 CPPUNIT_ASSERT_MESSAGE
9357 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
9358 aStrBuf
.getStr()== expVal
&&
9359 aStrBuf
.getLength() == expVal
.getLength()
9366 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
9367 OString
expVal( aStrBuf
.getStr() );
9368 sal_Int64 input
= 8;
9369 sal_Int16 radix
= 2;
9371 expVal
+= OString( "1000" );
9372 aStrBuf
.append( input
, radix
);
9374 CPPUNIT_ASSERT_MESSAGE
9376 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
9377 aStrBuf
.getStr()== expVal
&&
9378 aStrBuf
.getLength() == expVal
.getLength()
9385 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
9386 OString
expVal( aStrBuf
.getStr() );
9387 sal_Int64 input
= 15;
9388 sal_Int16 radix
= 2;
9390 expVal
+= OString( "1111" );
9391 aStrBuf
.append( input
, radix
);
9393 CPPUNIT_ASSERT_MESSAGE
9395 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
9396 aStrBuf
.getStr()== expVal
&&
9397 aStrBuf
.getLength() == expVal
.getLength()
9404 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
9405 OString
expVal( aStrBuf
.getStr() );
9406 sal_Int64 input
= 0;
9407 sal_Int16 radix
= 8;
9409 expVal
+= OString( "0" );
9410 aStrBuf
.append( input
, radix
);
9412 CPPUNIT_ASSERT_MESSAGE
9414 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
9415 aStrBuf
.getStr()== expVal
&&
9416 aStrBuf
.getLength() == expVal
.getLength()
9423 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
9424 OString
expVal( aStrBuf
.getStr() );
9425 sal_Int64 input
= 4;
9426 sal_Int16 radix
= 8;
9428 expVal
+= OString( "4" );
9429 aStrBuf
.append( input
, radix
);
9431 CPPUNIT_ASSERT_MESSAGE
9433 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
9434 aStrBuf
.getStr()== expVal
&&
9435 aStrBuf
.getLength() == expVal
.getLength()
9442 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
9443 OString
expVal( aStrBuf
.getStr() );
9444 sal_Int64 input
= 8;
9445 sal_Int16 radix
= 8;
9447 expVal
+= OString( "10" );
9448 aStrBuf
.append( input
, radix
);
9450 CPPUNIT_ASSERT_MESSAGE
9452 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
9453 aStrBuf
.getStr()== expVal
&&
9454 aStrBuf
.getLength() == expVal
.getLength()
9461 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
9462 OString
expVal( aStrBuf
.getStr() );
9463 sal_Int64 input
= 15;
9464 sal_Int16 radix
= 8;
9466 expVal
+= OString( "17" );
9467 aStrBuf
.append( input
, radix
);
9469 CPPUNIT_ASSERT_MESSAGE
9471 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
9472 aStrBuf
.getStr()== expVal
&&
9473 aStrBuf
.getLength() == expVal
.getLength()
9480 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
9481 OString
expVal( aStrBuf
.getStr() );
9482 sal_Int64 input
= 0;
9483 sal_Int16 radix
= 10;
9485 expVal
+= OString( "0" );
9486 aStrBuf
.append( input
, radix
);
9488 CPPUNIT_ASSERT_MESSAGE
9490 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
9491 aStrBuf
.getStr()== expVal
&&
9492 aStrBuf
.getLength() == expVal
.getLength()
9499 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
9500 OString
expVal( aStrBuf
.getStr() );
9501 sal_Int64 input
= 4;
9502 sal_Int16 radix
= 10;
9504 expVal
+= OString( "4" );
9505 aStrBuf
.append( input
, radix
);
9507 CPPUNIT_ASSERT_MESSAGE
9509 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
9510 aStrBuf
.getStr()== expVal
&&
9511 aStrBuf
.getLength() == expVal
.getLength()
9518 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
9519 OString
expVal( aStrBuf
.getStr() );
9520 sal_Int64 input
= 8;
9521 sal_Int16 radix
= 10;
9523 expVal
+= OString( "8" );
9524 aStrBuf
.append( input
, radix
);
9526 CPPUNIT_ASSERT_MESSAGE
9528 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
9529 aStrBuf
.getStr()== expVal
&&
9530 aStrBuf
.getLength() == expVal
.getLength()
9537 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
9538 OString
expVal( aStrBuf
.getStr() );
9539 sal_Int64 input
= 15;
9540 sal_Int16 radix
= 10;
9542 expVal
+= OString( "15" );
9543 aStrBuf
.append( input
, radix
);
9545 CPPUNIT_ASSERT_MESSAGE
9547 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
9548 aStrBuf
.getStr()== expVal
&&
9549 aStrBuf
.getLength() == expVal
.getLength()
9556 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
9557 OString
expVal( aStrBuf
.getStr() );
9558 sal_Int64 input
= 0;
9559 sal_Int16 radix
= 16;
9561 expVal
+= OString( "0" );
9562 aStrBuf
.append( input
, radix
);
9564 CPPUNIT_ASSERT_MESSAGE
9566 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
9567 aStrBuf
.getStr()== expVal
&&
9568 aStrBuf
.getLength() == expVal
.getLength()
9575 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
9576 OString
expVal( aStrBuf
.getStr() );
9577 sal_Int64 input
= 4;
9578 sal_Int16 radix
= 16;
9580 expVal
+= OString( "4" );
9581 aStrBuf
.append( input
, radix
);
9583 CPPUNIT_ASSERT_MESSAGE
9585 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
9586 aStrBuf
.getStr()== expVal
&&
9587 aStrBuf
.getLength() == expVal
.getLength()
9594 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
9595 OString
expVal( aStrBuf
.getStr() );
9596 sal_Int64 input
= 8;
9597 sal_Int16 radix
= 16;
9599 expVal
+= OString( "8" );
9600 aStrBuf
.append( input
, radix
);
9602 CPPUNIT_ASSERT_MESSAGE
9604 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
9605 aStrBuf
.getStr()== expVal
&&
9606 aStrBuf
.getLength() == expVal
.getLength()
9613 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
9614 OString
expVal( aStrBuf
.getStr() );
9615 sal_Int64 input
= 15;
9616 sal_Int16 radix
= 16;
9618 expVal
+= OString( "f" );
9619 aStrBuf
.append( input
, radix
);
9621 CPPUNIT_ASSERT_MESSAGE
9623 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
9624 aStrBuf
.getStr()== expVal
&&
9625 aStrBuf
.getLength() == expVal
.getLength()
9632 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
9633 OString
expVal( aStrBuf
.getStr() );
9634 sal_Int64 input
= 0;
9635 sal_Int16 radix
= 36;
9637 expVal
+= OString( "0" );
9638 aStrBuf
.append( input
, radix
);
9640 CPPUNIT_ASSERT_MESSAGE
9642 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
9643 aStrBuf
.getStr()== expVal
&&
9644 aStrBuf
.getLength() == expVal
.getLength()
9651 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
9652 OString
expVal( aStrBuf
.getStr() );
9653 sal_Int64 input
= 4;
9654 sal_Int16 radix
= 36;
9656 expVal
+= OString( "4" );
9657 aStrBuf
.append( input
, radix
);
9659 CPPUNIT_ASSERT_MESSAGE
9661 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
9662 aStrBuf
.getStr()== expVal
&&
9663 aStrBuf
.getLength() == expVal
.getLength()
9670 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
9671 OString
expVal( aStrBuf
.getStr() );
9672 sal_Int64 input
= 8;
9673 sal_Int16 radix
= 36;
9675 expVal
+= OString( "8" );
9676 aStrBuf
.append( input
, radix
);
9678 CPPUNIT_ASSERT_MESSAGE
9680 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
9681 aStrBuf
.getStr()== expVal
&&
9682 aStrBuf
.getLength() == expVal
.getLength()
9689 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
9690 OString
expVal( aStrBuf
.getStr() );
9691 sal_Int64 input
= 35;
9692 sal_Int16 radix
= 36;
9694 expVal
+= OString( "z" );
9695 aStrBuf
.append( input
, radix
);
9697 CPPUNIT_ASSERT_MESSAGE
9699 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
9700 aStrBuf
.getStr()== expVal
&&
9701 aStrBuf
.getLength() == expVal
.getLength()
9708 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
9709 OString
expVal( aStrBuf
.getStr() );
9710 sal_Int64 input
= 0;
9711 sal_Int16 radix
= 2;
9713 expVal
+= OString( "0" );
9714 aStrBuf
.append( input
, radix
);
9716 CPPUNIT_ASSERT_MESSAGE
9718 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
9719 aStrBuf
.getStr()== expVal
&&
9720 aStrBuf
.getLength() == expVal
.getLength()
9727 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
9728 OString
expVal( aStrBuf
.getStr() );
9729 sal_Int64 input
= 4;
9730 sal_Int16 radix
= 2;
9732 expVal
+= OString( "100" );
9733 aStrBuf
.append( input
, radix
);
9735 CPPUNIT_ASSERT_MESSAGE
9737 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
9738 aStrBuf
.getStr()== expVal
&&
9739 aStrBuf
.getLength() == expVal
.getLength()
9746 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
9747 OString
expVal( aStrBuf
.getStr() );
9748 sal_Int64 input
= 8;
9749 sal_Int16 radix
= 2;
9751 expVal
+= OString( "1000" );
9752 aStrBuf
.append( input
, radix
);
9754 CPPUNIT_ASSERT_MESSAGE
9756 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
9757 aStrBuf
.getStr()== expVal
&&
9758 aStrBuf
.getLength() == expVal
.getLength()
9765 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
9766 OString
expVal( aStrBuf
.getStr() );
9767 sal_Int64 input
= 15;
9768 sal_Int16 radix
= 2;
9770 expVal
+= OString( "1111" );
9771 aStrBuf
.append( input
, radix
);
9773 CPPUNIT_ASSERT_MESSAGE
9775 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
9776 aStrBuf
.getStr()== expVal
&&
9777 aStrBuf
.getLength() == expVal
.getLength()
9784 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
9785 OString
expVal( aStrBuf
.getStr() );
9786 sal_Int64 input
= 0;
9787 sal_Int16 radix
= 8;
9789 expVal
+= OString( "0" );
9790 aStrBuf
.append( input
, radix
);
9792 CPPUNIT_ASSERT_MESSAGE
9794 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
9795 aStrBuf
.getStr()== expVal
&&
9796 aStrBuf
.getLength() == expVal
.getLength()
9803 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
9804 OString
expVal( aStrBuf
.getStr() );
9805 sal_Int64 input
= 4;
9806 sal_Int16 radix
= 8;
9808 expVal
+= OString( "4" );
9809 aStrBuf
.append( input
, radix
);
9811 CPPUNIT_ASSERT_MESSAGE
9813 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
9814 aStrBuf
.getStr()== expVal
&&
9815 aStrBuf
.getLength() == expVal
.getLength()
9822 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
9823 OString
expVal( aStrBuf
.getStr() );
9824 sal_Int64 input
= 8;
9825 sal_Int16 radix
= 8;
9827 expVal
+= OString( "10" );
9828 aStrBuf
.append( input
, radix
);
9830 CPPUNIT_ASSERT_MESSAGE
9832 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
9833 aStrBuf
.getStr()== expVal
&&
9834 aStrBuf
.getLength() == expVal
.getLength()
9841 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
9842 OString
expVal( aStrBuf
.getStr() );
9843 sal_Int64 input
= 15;
9844 sal_Int16 radix
= 8;
9846 expVal
+= OString( "17" );
9847 aStrBuf
.append( input
, radix
);
9849 CPPUNIT_ASSERT_MESSAGE
9851 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
9852 aStrBuf
.getStr()== expVal
&&
9853 aStrBuf
.getLength() == expVal
.getLength()
9860 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
9861 OString
expVal( aStrBuf
.getStr() );
9862 sal_Int64 input
= 0;
9863 sal_Int16 radix
= 10;
9865 expVal
+= OString( "0" );
9866 aStrBuf
.append( input
, radix
);
9868 CPPUNIT_ASSERT_MESSAGE
9870 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
9871 aStrBuf
.getStr()== expVal
&&
9872 aStrBuf
.getLength() == expVal
.getLength()
9879 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
9880 OString
expVal( aStrBuf
.getStr() );
9881 sal_Int64 input
= 4;
9882 sal_Int16 radix
= 10;
9884 expVal
+= OString( "4" );
9885 aStrBuf
.append( input
, radix
);
9887 CPPUNIT_ASSERT_MESSAGE
9889 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
9890 aStrBuf
.getStr()== expVal
&&
9891 aStrBuf
.getLength() == expVal
.getLength()
9898 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
9899 OString
expVal( aStrBuf
.getStr() );
9900 sal_Int64 input
= 8;
9901 sal_Int16 radix
= 10;
9903 expVal
+= OString( "8" );
9904 aStrBuf
.append( input
, radix
);
9906 CPPUNIT_ASSERT_MESSAGE
9908 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
9909 aStrBuf
.getStr()== expVal
&&
9910 aStrBuf
.getLength() == expVal
.getLength()
9917 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
9918 OString
expVal( aStrBuf
.getStr() );
9919 sal_Int64 input
= 15;
9920 sal_Int16 radix
= 10;
9922 expVal
+= OString( "15" );
9923 aStrBuf
.append( input
, radix
);
9925 CPPUNIT_ASSERT_MESSAGE
9927 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
9928 aStrBuf
.getStr()== expVal
&&
9929 aStrBuf
.getLength() == expVal
.getLength()
9936 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
9937 OString
expVal( aStrBuf
.getStr() );
9938 sal_Int64 input
= 0;
9939 sal_Int16 radix
= 16;
9941 expVal
+= OString( "0" );
9942 aStrBuf
.append( input
, radix
);
9944 CPPUNIT_ASSERT_MESSAGE
9946 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
9947 aStrBuf
.getStr()== expVal
&&
9948 aStrBuf
.getLength() == expVal
.getLength()
9955 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
9956 OString
expVal( aStrBuf
.getStr() );
9957 sal_Int64 input
= 4;
9958 sal_Int16 radix
= 16;
9960 expVal
+= OString( "4" );
9961 aStrBuf
.append( input
, radix
);
9963 CPPUNIT_ASSERT_MESSAGE
9965 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
9966 aStrBuf
.getStr()== expVal
&&
9967 aStrBuf
.getLength() == expVal
.getLength()
9974 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
9975 OString
expVal( aStrBuf
.getStr() );
9976 sal_Int64 input
= 8;
9977 sal_Int16 radix
= 16;
9979 expVal
+= OString( "8" );
9980 aStrBuf
.append( input
, radix
);
9982 CPPUNIT_ASSERT_MESSAGE
9984 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
9985 aStrBuf
.getStr()== expVal
&&
9986 aStrBuf
.getLength() == expVal
.getLength()
9993 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
9994 OString
expVal( aStrBuf
.getStr() );
9995 sal_Int64 input
= 15;
9996 sal_Int16 radix
= 16;
9998 expVal
+= OString( "f" );
9999 aStrBuf
.append( input
, radix
);
10001 CPPUNIT_ASSERT_MESSAGE
10003 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
10004 aStrBuf
.getStr()== expVal
&&
10005 aStrBuf
.getLength() == expVal
.getLength()
10012 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
10013 OString
expVal( aStrBuf
.getStr() );
10014 sal_Int64 input
= 0;
10015 sal_Int16 radix
= 36;
10017 expVal
+= OString( "0" );
10018 aStrBuf
.append( input
, radix
);
10020 CPPUNIT_ASSERT_MESSAGE
10022 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
10023 aStrBuf
.getStr()== expVal
&&
10024 aStrBuf
.getLength() == expVal
.getLength()
10031 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
10032 OString
expVal( aStrBuf
.getStr() );
10033 sal_Int64 input
= 4;
10034 sal_Int16 radix
= 36;
10036 expVal
+= OString( "4" );
10037 aStrBuf
.append( input
, radix
);
10039 CPPUNIT_ASSERT_MESSAGE
10041 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
10042 aStrBuf
.getStr()== expVal
&&
10043 aStrBuf
.getLength() == expVal
.getLength()
10050 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
10051 OString
expVal( aStrBuf
.getStr() );
10052 sal_Int64 input
= 8;
10053 sal_Int16 radix
= 36;
10055 expVal
+= OString( "8" );
10056 aStrBuf
.append( input
, radix
);
10058 CPPUNIT_ASSERT_MESSAGE
10060 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
10061 aStrBuf
.getStr()== expVal
&&
10062 aStrBuf
.getLength() == expVal
.getLength()
10069 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
10070 OString
expVal( aStrBuf
.getStr() );
10071 sal_Int64 input
= 35;
10072 sal_Int16 radix
= 36;
10074 expVal
+= OString( "z" );
10075 aStrBuf
.append( input
, radix
);
10077 CPPUNIT_ASSERT_MESSAGE
10079 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
10080 aStrBuf
.getStr()== expVal
&&
10081 aStrBuf
.getLength() == expVal
.getLength()
10088 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
10089 OString
expVal( aStrBuf
.getStr() );
10090 sal_Int64 input
= 0;
10091 sal_Int16 radix
= 2;
10093 expVal
+= OString( "0" );
10094 aStrBuf
.append( input
, radix
);
10096 CPPUNIT_ASSERT_MESSAGE
10098 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
10099 aStrBuf
.getStr()== expVal
&&
10100 aStrBuf
.getLength() == expVal
.getLength()
10107 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
10108 OString
expVal( aStrBuf
.getStr() );
10109 sal_Int64 input
= 4;
10110 sal_Int16 radix
= 2;
10112 expVal
+= OString( "100" );
10113 aStrBuf
.append( input
, radix
);
10115 CPPUNIT_ASSERT_MESSAGE
10117 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
10118 aStrBuf
.getStr()== expVal
&&
10119 aStrBuf
.getLength() == expVal
.getLength()
10126 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
10127 OString
expVal( aStrBuf
.getStr() );
10128 sal_Int64 input
= 8;
10129 sal_Int16 radix
= 2;
10131 expVal
+= OString( "1000" );
10132 aStrBuf
.append( input
, radix
);
10134 CPPUNIT_ASSERT_MESSAGE
10136 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
10137 aStrBuf
.getStr()== expVal
&&
10138 aStrBuf
.getLength() == expVal
.getLength()
10145 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
10146 OString
expVal( aStrBuf
.getStr() );
10147 sal_Int64 input
= 15;
10148 sal_Int16 radix
= 2;
10150 expVal
+= OString( "1111" );
10151 aStrBuf
.append( input
, radix
);
10153 CPPUNIT_ASSERT_MESSAGE
10155 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
10156 aStrBuf
.getStr()== expVal
&&
10157 aStrBuf
.getLength() == expVal
.getLength()
10164 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
10165 OString
expVal( aStrBuf
.getStr() );
10166 sal_Int64 input
= 0;
10167 sal_Int16 radix
= 8;
10169 expVal
+= OString( "0" );
10170 aStrBuf
.append( input
, radix
);
10172 CPPUNIT_ASSERT_MESSAGE
10174 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
10175 aStrBuf
.getStr()== expVal
&&
10176 aStrBuf
.getLength() == expVal
.getLength()
10183 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
10184 OString
expVal( aStrBuf
.getStr() );
10185 sal_Int64 input
= 4;
10186 sal_Int16 radix
= 8;
10188 expVal
+= OString( "4" );
10189 aStrBuf
.append( input
, radix
);
10191 CPPUNIT_ASSERT_MESSAGE
10193 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
10194 aStrBuf
.getStr()== expVal
&&
10195 aStrBuf
.getLength() == expVal
.getLength()
10202 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
10203 OString
expVal( aStrBuf
.getStr() );
10204 sal_Int64 input
= 8;
10205 sal_Int16 radix
= 8;
10207 expVal
+= OString( "10" );
10208 aStrBuf
.append( input
, radix
);
10210 CPPUNIT_ASSERT_MESSAGE
10212 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
10213 aStrBuf
.getStr()== expVal
&&
10214 aStrBuf
.getLength() == expVal
.getLength()
10221 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
10222 OString
expVal( aStrBuf
.getStr() );
10223 sal_Int64 input
= 15;
10224 sal_Int16 radix
= 8;
10226 expVal
+= OString( "17" );
10227 aStrBuf
.append( input
, radix
);
10229 CPPUNIT_ASSERT_MESSAGE
10231 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
10232 aStrBuf
.getStr()== expVal
&&
10233 aStrBuf
.getLength() == expVal
.getLength()
10240 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
10241 OString
expVal( aStrBuf
.getStr() );
10242 sal_Int64 input
= 0;
10243 sal_Int16 radix
= 10;
10245 expVal
+= OString( "0" );
10246 aStrBuf
.append( input
, radix
);
10248 CPPUNIT_ASSERT_MESSAGE
10250 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
10251 aStrBuf
.getStr()== expVal
&&
10252 aStrBuf
.getLength() == expVal
.getLength()
10259 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
10260 OString
expVal( aStrBuf
.getStr() );
10261 sal_Int64 input
= 4;
10262 sal_Int16 radix
= 10;
10264 expVal
+= OString( "4" );
10265 aStrBuf
.append( input
, radix
);
10267 CPPUNIT_ASSERT_MESSAGE
10269 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
10270 aStrBuf
.getStr()== expVal
&&
10271 aStrBuf
.getLength() == expVal
.getLength()
10278 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
10279 OString
expVal( aStrBuf
.getStr() );
10280 sal_Int64 input
= 8;
10281 sal_Int16 radix
= 10;
10283 expVal
+= OString( "8" );
10284 aStrBuf
.append( input
, radix
);
10286 CPPUNIT_ASSERT_MESSAGE
10288 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
10289 aStrBuf
.getStr()== expVal
&&
10290 aStrBuf
.getLength() == expVal
.getLength()
10297 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
10298 OString
expVal( aStrBuf
.getStr() );
10299 sal_Int64 input
= 15;
10300 sal_Int16 radix
= 10;
10302 expVal
+= OString( "15" );
10303 aStrBuf
.append( input
, radix
);
10305 CPPUNIT_ASSERT_MESSAGE
10307 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
10308 aStrBuf
.getStr()== expVal
&&
10309 aStrBuf
.getLength() == expVal
.getLength()
10316 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
10317 OString
expVal( aStrBuf
.getStr() );
10318 sal_Int64 input
= 0;
10319 sal_Int16 radix
= 16;
10321 expVal
+= OString( "0" );
10322 aStrBuf
.append( input
, radix
);
10324 CPPUNIT_ASSERT_MESSAGE
10326 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
10327 aStrBuf
.getStr()== expVal
&&
10328 aStrBuf
.getLength() == expVal
.getLength()
10335 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
10336 OString
expVal( aStrBuf
.getStr() );
10337 sal_Int64 input
= 4;
10338 sal_Int16 radix
= 16;
10340 expVal
+= OString( "4" );
10341 aStrBuf
.append( input
, radix
);
10343 CPPUNIT_ASSERT_MESSAGE
10345 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
10346 aStrBuf
.getStr()== expVal
&&
10347 aStrBuf
.getLength() == expVal
.getLength()
10354 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
10355 OString
expVal( aStrBuf
.getStr() );
10356 sal_Int64 input
= 8;
10357 sal_Int16 radix
= 16;
10359 expVal
+= OString( "8" );
10360 aStrBuf
.append( input
, radix
);
10362 CPPUNIT_ASSERT_MESSAGE
10364 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
10365 aStrBuf
.getStr()== expVal
&&
10366 aStrBuf
.getLength() == expVal
.getLength()
10373 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
10374 OString
expVal( aStrBuf
.getStr() );
10375 sal_Int64 input
= 15;
10376 sal_Int16 radix
= 16;
10378 expVal
+= OString( "f" );
10379 aStrBuf
.append( input
, radix
);
10381 CPPUNIT_ASSERT_MESSAGE
10383 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
10384 aStrBuf
.getStr()== expVal
&&
10385 aStrBuf
.getLength() == expVal
.getLength()
10392 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
10393 OString
expVal( aStrBuf
.getStr() );
10394 sal_Int64 input
= 0;
10395 sal_Int16 radix
= 36;
10397 expVal
+= OString( "0" );
10398 aStrBuf
.append( input
, radix
);
10400 CPPUNIT_ASSERT_MESSAGE
10402 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
10403 aStrBuf
.getStr()== expVal
&&
10404 aStrBuf
.getLength() == expVal
.getLength()
10411 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
10412 OString
expVal( aStrBuf
.getStr() );
10413 sal_Int64 input
= 4;
10414 sal_Int16 radix
= 36;
10416 expVal
+= OString( "4" );
10417 aStrBuf
.append( input
, radix
);
10419 CPPUNIT_ASSERT_MESSAGE
10421 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
10422 aStrBuf
.getStr()== expVal
&&
10423 aStrBuf
.getLength() == expVal
.getLength()
10430 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
10431 OString
expVal( aStrBuf
.getStr() );
10432 sal_Int64 input
= 8;
10433 sal_Int16 radix
= 36;
10435 expVal
+= OString( "8" );
10436 aStrBuf
.append( input
, radix
);
10438 CPPUNIT_ASSERT_MESSAGE
10440 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
10441 aStrBuf
.getStr()== expVal
&&
10442 aStrBuf
.getLength() == expVal
.getLength()
10449 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
10450 OString
expVal( aStrBuf
.getStr() );
10451 sal_Int64 input
= 35;
10452 sal_Int16 radix
= 36;
10454 expVal
+= OString( "z" );
10455 aStrBuf
.append( input
, radix
);
10457 CPPUNIT_ASSERT_MESSAGE
10459 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
10460 aStrBuf
.getStr()== expVal
&&
10461 aStrBuf
.getLength() == expVal
.getLength()
10468 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
10469 OString
expVal( aStrBuf
.getStr() );
10470 sal_Int64 input
= 0;
10471 sal_Int16 radix
= 2;
10473 expVal
+= OString( "0" );
10474 aStrBuf
.append( input
, radix
);
10476 CPPUNIT_ASSERT_MESSAGE
10478 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
10479 aStrBuf
.getStr()== expVal
&&
10480 aStrBuf
.getLength() == expVal
.getLength()
10487 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
10488 OString
expVal( aStrBuf
.getStr() );
10489 sal_Int64 input
= 4;
10490 sal_Int16 radix
= 2;
10492 expVal
+= OString( "100" );
10493 aStrBuf
.append( input
, radix
);
10495 CPPUNIT_ASSERT_MESSAGE
10497 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
10498 aStrBuf
.getStr()== expVal
&&
10499 aStrBuf
.getLength() == expVal
.getLength()
10506 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
10507 OString
expVal( aStrBuf
.getStr() );
10508 sal_Int64 input
= 8;
10509 sal_Int16 radix
= 2;
10511 expVal
+= OString( "1000" );
10512 aStrBuf
.append( input
, radix
);
10514 CPPUNIT_ASSERT_MESSAGE
10516 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
10517 aStrBuf
.getStr()== expVal
&&
10518 aStrBuf
.getLength() == expVal
.getLength()
10525 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
10526 OString
expVal( aStrBuf
.getStr() );
10527 sal_Int64 input
= 15;
10528 sal_Int16 radix
= 2;
10530 expVal
+= OString( "1111" );
10531 aStrBuf
.append( input
, radix
);
10533 CPPUNIT_ASSERT_MESSAGE
10535 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
10536 aStrBuf
.getStr()== expVal
&&
10537 aStrBuf
.getLength() == expVal
.getLength()
10544 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
10545 OString
expVal( aStrBuf
.getStr() );
10546 sal_Int64 input
= 0;
10547 sal_Int16 radix
= 8;
10549 expVal
+= OString( "0" );
10550 aStrBuf
.append( input
, radix
);
10552 CPPUNIT_ASSERT_MESSAGE
10554 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
10555 aStrBuf
.getStr()== expVal
&&
10556 aStrBuf
.getLength() == expVal
.getLength()
10563 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
10564 OString
expVal( aStrBuf
.getStr() );
10565 sal_Int64 input
= 4;
10566 sal_Int16 radix
= 8;
10568 expVal
+= OString( "4" );
10569 aStrBuf
.append( input
, radix
);
10571 CPPUNIT_ASSERT_MESSAGE
10573 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
10574 aStrBuf
.getStr()== expVal
&&
10575 aStrBuf
.getLength() == expVal
.getLength()
10582 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
10583 OString
expVal( aStrBuf
.getStr() );
10584 sal_Int64 input
= 8;
10585 sal_Int16 radix
= 8;
10587 expVal
+= OString( "10" );
10588 aStrBuf
.append( input
, radix
);
10590 CPPUNIT_ASSERT_MESSAGE
10592 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
10593 aStrBuf
.getStr()== expVal
&&
10594 aStrBuf
.getLength() == expVal
.getLength()
10601 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
10602 OString
expVal( aStrBuf
.getStr() );
10603 sal_Int64 input
= 15;
10604 sal_Int16 radix
= 8;
10606 expVal
+= OString( "17" );
10607 aStrBuf
.append( input
, radix
);
10609 CPPUNIT_ASSERT_MESSAGE
10611 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
10612 aStrBuf
.getStr()== expVal
&&
10613 aStrBuf
.getLength() == expVal
.getLength()
10620 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
10621 OString
expVal( aStrBuf
.getStr() );
10622 sal_Int64 input
= 0;
10623 sal_Int16 radix
= 10;
10625 expVal
+= OString( "0" );
10626 aStrBuf
.append( input
, radix
);
10628 CPPUNIT_ASSERT_MESSAGE
10630 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
10631 aStrBuf
.getStr()== expVal
&&
10632 aStrBuf
.getLength() == expVal
.getLength()
10639 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
10640 OString
expVal( aStrBuf
.getStr() );
10641 sal_Int64 input
= 4;
10642 sal_Int16 radix
= 10;
10644 expVal
+= OString( "4" );
10645 aStrBuf
.append( input
, radix
);
10647 CPPUNIT_ASSERT_MESSAGE
10649 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
10650 aStrBuf
.getStr()== expVal
&&
10651 aStrBuf
.getLength() == expVal
.getLength()
10658 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
10659 OString
expVal( aStrBuf
.getStr() );
10660 sal_Int64 input
= 8;
10661 sal_Int16 radix
= 10;
10663 expVal
+= OString( "8" );
10664 aStrBuf
.append( input
, radix
);
10666 CPPUNIT_ASSERT_MESSAGE
10668 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
10669 aStrBuf
.getStr()== expVal
&&
10670 aStrBuf
.getLength() == expVal
.getLength()
10677 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
10678 OString
expVal( aStrBuf
.getStr() );
10679 sal_Int64 input
= 15;
10680 sal_Int16 radix
= 10;
10682 expVal
+= OString( "15" );
10683 aStrBuf
.append( input
, radix
);
10685 CPPUNIT_ASSERT_MESSAGE
10687 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
10688 aStrBuf
.getStr()== expVal
&&
10689 aStrBuf
.getLength() == expVal
.getLength()
10696 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
10697 OString
expVal( aStrBuf
.getStr() );
10698 sal_Int64 input
= 0;
10699 sal_Int16 radix
= 16;
10701 expVal
+= OString( "0" );
10702 aStrBuf
.append( input
, radix
);
10704 CPPUNIT_ASSERT_MESSAGE
10706 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
10707 aStrBuf
.getStr()== expVal
&&
10708 aStrBuf
.getLength() == expVal
.getLength()
10715 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
10716 OString
expVal( aStrBuf
.getStr() );
10717 sal_Int64 input
= 4;
10718 sal_Int16 radix
= 16;
10720 expVal
+= OString( "4" );
10721 aStrBuf
.append( input
, radix
);
10723 CPPUNIT_ASSERT_MESSAGE
10725 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
10726 aStrBuf
.getStr()== expVal
&&
10727 aStrBuf
.getLength() == expVal
.getLength()
10734 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
10735 OString
expVal( aStrBuf
.getStr() );
10736 sal_Int64 input
= 8;
10737 sal_Int16 radix
= 16;
10739 expVal
+= OString( "8" );
10740 aStrBuf
.append( input
, radix
);
10742 CPPUNIT_ASSERT_MESSAGE
10744 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
10745 aStrBuf
.getStr()== expVal
&&
10746 aStrBuf
.getLength() == expVal
.getLength()
10753 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
10754 OString
expVal( aStrBuf
.getStr() );
10755 sal_Int64 input
= 15;
10756 sal_Int16 radix
= 16;
10758 expVal
+= OString( "f" );
10759 aStrBuf
.append( input
, radix
);
10761 CPPUNIT_ASSERT_MESSAGE
10763 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
10764 aStrBuf
.getStr()== expVal
&&
10765 aStrBuf
.getLength() == expVal
.getLength()
10772 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
10773 OString
expVal( aStrBuf
.getStr() );
10774 sal_Int64 input
= 0;
10775 sal_Int16 radix
= 36;
10777 expVal
+= OString( "0" );
10778 aStrBuf
.append( input
, radix
);
10780 CPPUNIT_ASSERT_MESSAGE
10782 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
10783 aStrBuf
.getStr()== expVal
&&
10784 aStrBuf
.getLength() == expVal
.getLength()
10791 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
10792 OString
expVal( aStrBuf
.getStr() );
10793 sal_Int64 input
= 4;
10794 sal_Int16 radix
= 36;
10796 expVal
+= OString( "4" );
10797 aStrBuf
.append( input
, radix
);
10799 CPPUNIT_ASSERT_MESSAGE
10801 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
10802 aStrBuf
.getStr()== expVal
&&
10803 aStrBuf
.getLength() == expVal
.getLength()
10810 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
10811 OString
expVal( aStrBuf
.getStr() );
10812 sal_Int64 input
= 8;
10813 sal_Int16 radix
= 36;
10815 expVal
+= OString( "8" );
10816 aStrBuf
.append( input
, radix
);
10818 CPPUNIT_ASSERT_MESSAGE
10820 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
10821 aStrBuf
.getStr()== expVal
&&
10822 aStrBuf
.getLength() == expVal
.getLength()
10829 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
10830 OString
expVal( aStrBuf
.getStr() );
10831 sal_Int64 input
= 35;
10832 sal_Int16 radix
= 36;
10834 expVal
+= OString( "z" );
10835 aStrBuf
.append( input
, radix
);
10837 CPPUNIT_ASSERT_MESSAGE
10839 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
10840 aStrBuf
.getStr()== expVal
&&
10841 aStrBuf
.getLength() == expVal
.getLength()
10846 CPPUNIT_TEST_SUITE( append_007_Int64
);
10847 CPPUNIT_TEST( append_001
); CPPUNIT_TEST( append_002
);
10848 CPPUNIT_TEST( append_003
); CPPUNIT_TEST( append_004
);
10849 CPPUNIT_TEST( append_005
); CPPUNIT_TEST( append_006
);
10850 CPPUNIT_TEST( append_007
); CPPUNIT_TEST( append_008
);
10851 CPPUNIT_TEST( append_009
); CPPUNIT_TEST( append_010
);
10852 CPPUNIT_TEST( append_011
); CPPUNIT_TEST( append_012
);
10853 CPPUNIT_TEST( append_013
); CPPUNIT_TEST( append_014
);
10854 CPPUNIT_TEST( append_015
); CPPUNIT_TEST( append_016
);
10855 CPPUNIT_TEST( append_017
); CPPUNIT_TEST( append_018
);
10856 CPPUNIT_TEST( append_019
); CPPUNIT_TEST( append_020
);
10857 CPPUNIT_TEST( append_021
); CPPUNIT_TEST( append_022
);
10858 CPPUNIT_TEST( append_023
); CPPUNIT_TEST( append_024
);
10859 CPPUNIT_TEST( append_025
); CPPUNIT_TEST( append_026
);
10860 CPPUNIT_TEST( append_027
); CPPUNIT_TEST( append_028
);
10861 CPPUNIT_TEST( append_029
); CPPUNIT_TEST( append_030
);
10862 CPPUNIT_TEST( append_031
); CPPUNIT_TEST( append_032
);
10863 CPPUNIT_TEST( append_033
); CPPUNIT_TEST( append_034
);
10864 CPPUNIT_TEST( append_035
); CPPUNIT_TEST( append_036
);
10865 CPPUNIT_TEST( append_037
); CPPUNIT_TEST( append_038
);
10866 CPPUNIT_TEST( append_039
); CPPUNIT_TEST( append_040
);
10867 CPPUNIT_TEST( append_041
); CPPUNIT_TEST( append_042
);
10868 CPPUNIT_TEST( append_043
); CPPUNIT_TEST( append_044
);
10869 CPPUNIT_TEST( append_045
); CPPUNIT_TEST( append_046
);
10870 CPPUNIT_TEST( append_047
); CPPUNIT_TEST( append_048
);
10871 CPPUNIT_TEST( append_049
); CPPUNIT_TEST( append_050
);
10872 CPPUNIT_TEST( append_051
); CPPUNIT_TEST( append_052
);
10873 CPPUNIT_TEST( append_053
); CPPUNIT_TEST( append_054
);
10874 CPPUNIT_TEST( append_055
); CPPUNIT_TEST( append_056
);
10875 CPPUNIT_TEST( append_057
); CPPUNIT_TEST( append_058
);
10876 CPPUNIT_TEST( append_059
); CPPUNIT_TEST( append_060
);
10877 CPPUNIT_TEST( append_061
); CPPUNIT_TEST( append_062
);
10878 CPPUNIT_TEST( append_063
); CPPUNIT_TEST( append_064
);
10879 CPPUNIT_TEST( append_065
); CPPUNIT_TEST( append_066
);
10880 CPPUNIT_TEST( append_067
); CPPUNIT_TEST( append_068
);
10881 CPPUNIT_TEST( append_069
); CPPUNIT_TEST( append_070
);
10882 CPPUNIT_TEST( append_071
); CPPUNIT_TEST( append_072
);
10883 CPPUNIT_TEST( append_073
); CPPUNIT_TEST( append_074
);
10884 CPPUNIT_TEST( append_075
); CPPUNIT_TEST( append_076
);
10885 CPPUNIT_TEST( append_077
); CPPUNIT_TEST( append_078
);
10886 CPPUNIT_TEST( append_079
); CPPUNIT_TEST( append_080
);
10887 CPPUNIT_TEST( append_081
); CPPUNIT_TEST( append_082
);
10888 CPPUNIT_TEST( append_083
); CPPUNIT_TEST( append_084
);
10889 CPPUNIT_TEST( append_085
); CPPUNIT_TEST( append_086
);
10890 CPPUNIT_TEST( append_087
); CPPUNIT_TEST( append_088
);
10891 CPPUNIT_TEST( append_089
); CPPUNIT_TEST( append_090
);
10892 CPPUNIT_TEST( append_091
); CPPUNIT_TEST( append_092
);
10893 CPPUNIT_TEST( append_093
); CPPUNIT_TEST( append_094
);
10894 CPPUNIT_TEST( append_095
); CPPUNIT_TEST( append_096
);
10895 CPPUNIT_TEST( append_097
); CPPUNIT_TEST( append_098
);
10896 CPPUNIT_TEST( append_099
); CPPUNIT_TEST( append_100
);
10897 CPPUNIT_TEST_SUITE_END();
10900 // testing the method append( sal_Int64 i, sal_Int16 radix=2 )
10901 // where i = large constants
10902 // testing the method append( sal_Int64 i, sal_Int16 radix=8 )
10903 // where i = large constants
10904 // testing the method append( sal_Int64 i, sal_Int16 radix=10 )
10905 // where i = large constants
10906 // testing the method append( sal_Int64 i, sal_Int16 radix=16 )
10907 // where i = large constants
10908 // testing the method append( sal_Int64 i, sal_Int16 radix=36 )
10909 // where i = large constants
10911 class append_007_Int64_Bounderies
: public CppUnit::TestFixture
10913 OString
* arrOUS
[5];
10916 void setUp() SAL_OVERRIDE
10918 arrOUS
[0] = new OString( kTestStr7
);
10919 arrOUS
[1] = new OString( );
10920 arrOUS
[2] = new OString( kTestStr25
);
10921 arrOUS
[3] = new OString( "" );
10922 arrOUS
[4] = new OString( kTestStr28
);
10926 void tearDown() SAL_OVERRIDE
10928 delete arrOUS
[0]; delete arrOUS
[1]; delete arrOUS
[2];
10929 delete arrOUS
[3]; delete arrOUS
[4];
10934 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
10935 OString
expVal( aStrBuf
.getStr() );
10936 sal_Int64 input
= kSInt8Max
;
10937 sal_Int16 radix
= 2;
10939 expVal
+= OString( "1111111" );
10940 aStrBuf
.append( input
, radix
);
10942 CPPUNIT_ASSERT_MESSAGE
10944 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
10945 aStrBuf
.getStr()== expVal
&&
10946 aStrBuf
.getLength() == expVal
.getLength()
10953 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
10954 OString
expVal( aStrBuf
.getStr() );
10955 sal_Int64 input
= kSInt64Max
;
10956 sal_Int16 radix
= 2;
10958 expVal
+= OString( "111111111111111111111111111111111111111111111111111111111111111" );
10959 aStrBuf
.append( input
, radix
);
10961 CPPUNIT_ASSERT_MESSAGE
10963 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
10964 aStrBuf
.getStr()== expVal
&&
10965 aStrBuf
.getLength() == expVal
.getLength()
10972 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
10973 OString
expVal( aStrBuf
.getStr() );
10974 sal_Int64 input
= kSInt8Max
;
10975 sal_Int16 radix
= 8;
10977 expVal
+= OString( "177" );
10978 aStrBuf
.append( input
, radix
);
10980 CPPUNIT_ASSERT_MESSAGE
10982 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
10983 aStrBuf
.getStr()== expVal
&&
10984 aStrBuf
.getLength() == expVal
.getLength()
10991 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
10992 OString
expVal( aStrBuf
.getStr() );
10993 sal_Int64 input
= kSInt64Max
;
10994 sal_Int16 radix
= 8;
10996 expVal
+= OString( "777777777777777777777" );
10997 aStrBuf
.append( input
, radix
);
10999 CPPUNIT_ASSERT_MESSAGE
11001 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
11002 aStrBuf
.getStr()== expVal
&&
11003 aStrBuf
.getLength() == expVal
.getLength()
11010 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
11011 OString
expVal( aStrBuf
.getStr() );
11012 sal_Int64 input
= kSInt8Max
;
11013 sal_Int16 radix
= 10;
11015 expVal
+= OString( "127" );
11016 aStrBuf
.append( input
, radix
);
11018 CPPUNIT_ASSERT_MESSAGE
11020 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
11021 aStrBuf
.getStr()== expVal
&&
11022 aStrBuf
.getLength() == expVal
.getLength()
11029 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
11030 OString
expVal( aStrBuf
.getStr() );
11031 sal_Int64 input
= kSInt64Max
;
11032 sal_Int16 radix
= 10;
11034 expVal
+= OString( "9223372036854775807" );
11035 aStrBuf
.append( input
, radix
);
11037 CPPUNIT_ASSERT_MESSAGE
11039 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
11040 aStrBuf
.getStr()== expVal
&&
11041 aStrBuf
.getLength() == expVal
.getLength()
11048 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
11049 OString
expVal( aStrBuf
.getStr() );
11050 sal_Int64 input
= kSInt8Max
;
11051 sal_Int16 radix
= 16;
11053 expVal
+= OString( "7f" );
11054 aStrBuf
.append( input
, radix
);
11056 CPPUNIT_ASSERT_MESSAGE
11058 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
11059 aStrBuf
.getStr()== expVal
&&
11060 aStrBuf
.getLength() == expVal
.getLength()
11067 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
11068 OString
expVal( aStrBuf
.getStr() );
11069 sal_Int64 input
= kSInt64Max
;
11070 sal_Int16 radix
= 16;
11072 expVal
+= OString( "7fffffffffffffff" );
11073 aStrBuf
.append( input
, radix
);
11075 CPPUNIT_ASSERT_MESSAGE
11077 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
11078 aStrBuf
.getStr()== expVal
&&
11079 aStrBuf
.getLength() == expVal
.getLength()
11086 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
11087 OString
expVal( aStrBuf
.getStr() );
11088 sal_Int64 input
= kSInt8Max
;
11089 sal_Int16 radix
= 36;
11091 expVal
+= OString( "3j" );
11092 aStrBuf
.append( input
, radix
);
11094 CPPUNIT_ASSERT_MESSAGE
11096 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
11097 aStrBuf
.getStr()== expVal
&&
11098 aStrBuf
.getLength() == expVal
.getLength()
11105 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
11106 OString
expVal( aStrBuf
.getStr() );
11107 sal_Int64 input
= kSInt64Max
;
11108 sal_Int16 radix
= 36;
11110 expVal
+= OString( "1y2p0ij32e8e7" );
11111 aStrBuf
.append( input
, radix
);
11113 CPPUNIT_ASSERT_MESSAGE
11115 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
11116 aStrBuf
.getStr()== expVal
&&
11117 aStrBuf
.getLength() == expVal
.getLength()
11124 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
11125 OString
expVal( aStrBuf
.getStr() );
11126 sal_Int64 input
= kSInt8Max
;
11127 sal_Int16 radix
= 2;
11129 expVal
+= OString( "1111111" );
11130 aStrBuf
.append( input
, radix
);
11132 CPPUNIT_ASSERT_MESSAGE
11134 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
11135 aStrBuf
.getStr()== expVal
&&
11136 aStrBuf
.getLength() == expVal
.getLength()
11143 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
11144 OString
expVal( aStrBuf
.getStr() );
11145 sal_Int64 input
= kSInt64Max
;
11146 sal_Int16 radix
= 2;
11148 expVal
+= OString( "111111111111111111111111111111111111111111111111111111111111111" );
11149 aStrBuf
.append( input
, radix
);
11151 CPPUNIT_ASSERT_MESSAGE
11153 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
11154 aStrBuf
.getStr()== expVal
&&
11155 aStrBuf
.getLength() == expVal
.getLength()
11162 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
11163 OString
expVal( aStrBuf
.getStr() );
11164 sal_Int64 input
= kSInt8Max
;
11165 sal_Int16 radix
= 8;
11167 expVal
+= OString( "177" );
11168 aStrBuf
.append( input
, radix
);
11170 CPPUNIT_ASSERT_MESSAGE
11172 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
11173 aStrBuf
.getStr()== expVal
&&
11174 aStrBuf
.getLength() == expVal
.getLength()
11181 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
11182 OString
expVal( aStrBuf
.getStr() );
11183 sal_Int64 input
= kSInt64Max
;
11184 sal_Int16 radix
= 8;
11186 expVal
+= OString( "777777777777777777777" );
11187 aStrBuf
.append( input
, radix
);
11189 CPPUNIT_ASSERT_MESSAGE
11191 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
11192 aStrBuf
.getStr()== expVal
&&
11193 aStrBuf
.getLength() == expVal
.getLength()
11200 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
11201 OString
expVal( aStrBuf
.getStr() );
11202 sal_Int64 input
= kSInt8Max
;
11203 sal_Int16 radix
= 10;
11205 expVal
+= OString( "127" );
11206 aStrBuf
.append( input
, radix
);
11208 CPPUNIT_ASSERT_MESSAGE
11210 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
11211 aStrBuf
.getStr()== expVal
&&
11212 aStrBuf
.getLength() == expVal
.getLength()
11219 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
11220 OString
expVal( aStrBuf
.getStr() );
11221 sal_Int64 input
= kSInt64Max
;
11222 sal_Int16 radix
= 10;
11224 expVal
+= OString( "9223372036854775807" );
11225 aStrBuf
.append( input
, radix
);
11227 CPPUNIT_ASSERT_MESSAGE
11229 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
11230 aStrBuf
.getStr()== expVal
&&
11231 aStrBuf
.getLength() == expVal
.getLength()
11238 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
11239 OString
expVal( aStrBuf
.getStr() );
11240 sal_Int64 input
= kSInt8Max
;
11241 sal_Int16 radix
= 16;
11243 expVal
+= OString( "7f" );
11244 aStrBuf
.append( input
, radix
);
11246 CPPUNIT_ASSERT_MESSAGE
11248 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
11249 aStrBuf
.getStr()== expVal
&&
11250 aStrBuf
.getLength() == expVal
.getLength()
11257 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
11258 OString
expVal( aStrBuf
.getStr() );
11259 sal_Int64 input
= kSInt64Max
;
11260 sal_Int16 radix
= 16;
11262 expVal
+= OString( "7fffffffffffffff" );
11263 aStrBuf
.append( input
, radix
);
11265 CPPUNIT_ASSERT_MESSAGE
11267 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
11268 aStrBuf
.getStr()== expVal
&&
11269 aStrBuf
.getLength() == expVal
.getLength()
11276 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
11277 OString
expVal( aStrBuf
.getStr() );
11278 sal_Int64 input
= kSInt8Max
;
11279 sal_Int16 radix
= 36;
11281 expVal
+= OString( "3j" );
11282 aStrBuf
.append( input
, radix
);
11284 CPPUNIT_ASSERT_MESSAGE
11286 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
11287 aStrBuf
.getStr()== expVal
&&
11288 aStrBuf
.getLength() == expVal
.getLength()
11295 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
11296 OString
expVal( aStrBuf
.getStr() );
11297 sal_Int64 input
= kSInt64Max
;
11298 sal_Int16 radix
= 36;
11300 expVal
+= OString( "1y2p0ij32e8e7" );
11301 aStrBuf
.append( input
, radix
);
11303 CPPUNIT_ASSERT_MESSAGE
11305 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
11306 aStrBuf
.getStr()== expVal
&&
11307 aStrBuf
.getLength() == expVal
.getLength()
11314 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
11315 OString
expVal( aStrBuf
.getStr() );
11316 sal_Int64 input
= kSInt8Max
;
11317 sal_Int16 radix
= 2;
11319 expVal
+= OString( "1111111" );
11320 aStrBuf
.append( input
, radix
);
11322 CPPUNIT_ASSERT_MESSAGE
11324 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
11325 aStrBuf
.getStr()== expVal
&&
11326 aStrBuf
.getLength() == expVal
.getLength()
11333 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
11334 OString
expVal( aStrBuf
.getStr() );
11335 sal_Int64 input
= kSInt64Max
;
11336 sal_Int16 radix
= 2;
11338 expVal
+= OString( "111111111111111111111111111111111111111111111111111111111111111" );
11339 aStrBuf
.append( input
, radix
);
11341 CPPUNIT_ASSERT_MESSAGE
11343 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
11344 aStrBuf
.getStr()== expVal
&&
11345 aStrBuf
.getLength() == expVal
.getLength()
11352 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
11353 OString
expVal( aStrBuf
.getStr() );
11354 sal_Int64 input
= kSInt8Max
;
11355 sal_Int16 radix
= 8;
11357 expVal
+= OString( "177" );
11358 aStrBuf
.append( input
, radix
);
11360 CPPUNIT_ASSERT_MESSAGE
11362 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
11363 aStrBuf
.getStr()== expVal
&&
11364 aStrBuf
.getLength() == expVal
.getLength()
11371 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
11372 OString
expVal( aStrBuf
.getStr() );
11373 sal_Int64 input
= kSInt64Max
;
11374 sal_Int16 radix
= 8;
11376 expVal
+= OString( "777777777777777777777" );
11377 aStrBuf
.append( input
, radix
);
11379 CPPUNIT_ASSERT_MESSAGE
11381 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
11382 aStrBuf
.getStr()== expVal
&&
11383 aStrBuf
.getLength() == expVal
.getLength()
11390 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
11391 OString
expVal( aStrBuf
.getStr() );
11392 sal_Int64 input
= kSInt8Max
;
11393 sal_Int16 radix
= 10;
11395 expVal
+= OString( "127" );
11396 aStrBuf
.append( input
, radix
);
11398 CPPUNIT_ASSERT_MESSAGE
11400 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
11401 aStrBuf
.getStr()== expVal
&&
11402 aStrBuf
.getLength() == expVal
.getLength()
11409 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
11410 OString
expVal( aStrBuf
.getStr() );
11411 sal_Int64 input
= kSInt64Max
;
11412 sal_Int16 radix
= 10;
11414 expVal
+= OString( "9223372036854775807" );
11415 aStrBuf
.append( input
, radix
);
11417 CPPUNIT_ASSERT_MESSAGE
11419 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
11420 aStrBuf
.getStr()== expVal
&&
11421 aStrBuf
.getLength() == expVal
.getLength()
11428 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
11429 OString
expVal( aStrBuf
.getStr() );
11430 sal_Int64 input
= kSInt8Max
;
11431 sal_Int16 radix
= 16;
11433 expVal
+= OString( "7f" );
11434 aStrBuf
.append( input
, radix
);
11436 CPPUNIT_ASSERT_MESSAGE
11438 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
11439 aStrBuf
.getStr()== expVal
&&
11440 aStrBuf
.getLength() == expVal
.getLength()
11447 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
11448 OString
expVal( aStrBuf
.getStr() );
11449 sal_Int64 input
= kSInt64Max
;
11450 sal_Int16 radix
= 16;
11452 expVal
+= OString( "7fffffffffffffff" );
11453 aStrBuf
.append( input
, radix
);
11455 CPPUNIT_ASSERT_MESSAGE
11457 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
11458 aStrBuf
.getStr()== expVal
&&
11459 aStrBuf
.getLength() == expVal
.getLength()
11466 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
11467 OString
expVal( aStrBuf
.getStr() );
11468 sal_Int64 input
= kSInt8Max
;
11469 sal_Int16 radix
= 36;
11471 expVal
+= OString( "3j" );
11472 aStrBuf
.append( input
, radix
);
11474 CPPUNIT_ASSERT_MESSAGE
11476 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
11477 aStrBuf
.getStr()== expVal
&&
11478 aStrBuf
.getLength() == expVal
.getLength()
11485 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
11486 OString
expVal( aStrBuf
.getStr() );
11487 sal_Int64 input
= kSInt64Max
;
11488 sal_Int16 radix
= 36;
11490 expVal
+= OString( "1y2p0ij32e8e7" );
11491 aStrBuf
.append( input
, radix
);
11493 CPPUNIT_ASSERT_MESSAGE
11495 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
11496 aStrBuf
.getStr()== expVal
&&
11497 aStrBuf
.getLength() == expVal
.getLength()
11504 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
11505 OString
expVal( aStrBuf
.getStr() );
11506 sal_Int64 input
= kSInt8Max
;
11507 sal_Int16 radix
= 2;
11509 expVal
+= OString( "1111111" );
11510 aStrBuf
.append( input
, radix
);
11512 CPPUNIT_ASSERT_MESSAGE
11514 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
11515 aStrBuf
.getStr()== expVal
&&
11516 aStrBuf
.getLength() == expVal
.getLength()
11523 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
11524 OString
expVal( aStrBuf
.getStr() );
11525 sal_Int64 input
= kSInt64Max
;
11526 sal_Int16 radix
= 2;
11528 expVal
+= OString( "111111111111111111111111111111111111111111111111111111111111111" );
11529 aStrBuf
.append( input
, radix
);
11531 CPPUNIT_ASSERT_MESSAGE
11533 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
11534 aStrBuf
.getStr()== expVal
&&
11535 aStrBuf
.getLength() == expVal
.getLength()
11542 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
11543 OString
expVal( aStrBuf
.getStr() );
11544 sal_Int64 input
= kSInt8Max
;
11545 sal_Int16 radix
= 8;
11547 expVal
+= OString( "177" );
11548 aStrBuf
.append( input
, radix
);
11550 CPPUNIT_ASSERT_MESSAGE
11552 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
11553 aStrBuf
.getStr()== expVal
&&
11554 aStrBuf
.getLength() == expVal
.getLength()
11561 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
11562 OString
expVal( aStrBuf
.getStr() );
11563 sal_Int64 input
= kSInt64Max
;
11564 sal_Int16 radix
= 8;
11566 expVal
+= OString( "777777777777777777777" );
11567 aStrBuf
.append( input
, radix
);
11569 CPPUNIT_ASSERT_MESSAGE
11571 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
11572 aStrBuf
.getStr()== expVal
&&
11573 aStrBuf
.getLength() == expVal
.getLength()
11580 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
11581 OString
expVal( aStrBuf
.getStr() );
11582 sal_Int64 input
= kSInt8Max
;
11583 sal_Int16 radix
= 10;
11585 expVal
+= OString( "127" );
11586 aStrBuf
.append( input
, radix
);
11588 CPPUNIT_ASSERT_MESSAGE
11590 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
11591 aStrBuf
.getStr()== expVal
&&
11592 aStrBuf
.getLength() == expVal
.getLength()
11599 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
11600 OString
expVal( aStrBuf
.getStr() );
11601 sal_Int64 input
= kSInt64Max
;
11602 sal_Int16 radix
= 10;
11604 expVal
+= OString( "9223372036854775807" );
11605 aStrBuf
.append( input
, radix
);
11607 CPPUNIT_ASSERT_MESSAGE
11609 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
11610 aStrBuf
.getStr()== expVal
&&
11611 aStrBuf
.getLength() == expVal
.getLength()
11618 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
11619 OString
expVal( aStrBuf
.getStr() );
11620 sal_Int64 input
= kSInt8Max
;
11621 sal_Int16 radix
= 16;
11623 expVal
+= OString( "7f" );
11624 aStrBuf
.append( input
, radix
);
11626 CPPUNIT_ASSERT_MESSAGE
11628 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
11629 aStrBuf
.getStr()== expVal
&&
11630 aStrBuf
.getLength() == expVal
.getLength()
11637 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
11638 OString
expVal( aStrBuf
.getStr() );
11639 sal_Int64 input
= kSInt64Max
;
11640 sal_Int16 radix
= 16;
11642 expVal
+= OString( "7fffffffffffffff" );
11643 aStrBuf
.append( input
, radix
);
11645 CPPUNIT_ASSERT_MESSAGE
11647 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
11648 aStrBuf
.getStr()== expVal
&&
11649 aStrBuf
.getLength() == expVal
.getLength()
11656 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
11657 OString
expVal( aStrBuf
.getStr() );
11658 sal_Int64 input
= kSInt8Max
;
11659 sal_Int16 radix
= 36;
11661 expVal
+= OString( "3j" );
11662 aStrBuf
.append( input
, radix
);
11664 CPPUNIT_ASSERT_MESSAGE
11666 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
11667 aStrBuf
.getStr()== expVal
&&
11668 aStrBuf
.getLength() == expVal
.getLength()
11675 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
11676 OString
expVal( aStrBuf
.getStr() );
11677 sal_Int64 input
= kSInt64Max
;
11678 sal_Int16 radix
= 36;
11680 expVal
+= OString( "1y2p0ij32e8e7" );
11681 aStrBuf
.append( input
, radix
);
11683 CPPUNIT_ASSERT_MESSAGE
11685 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
11686 aStrBuf
.getStr()== expVal
&&
11687 aStrBuf
.getLength() == expVal
.getLength()
11694 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
11695 OString
expVal( aStrBuf
.getStr() );
11696 sal_Int64 input
= kSInt8Max
;
11697 sal_Int16 radix
= 2;
11699 expVal
+= OString( "1111111" );
11700 aStrBuf
.append( input
, radix
);
11702 CPPUNIT_ASSERT_MESSAGE
11704 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
11705 aStrBuf
.getStr()== expVal
&&
11706 aStrBuf
.getLength() == expVal
.getLength()
11713 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
11714 OString
expVal( aStrBuf
.getStr() );
11715 sal_Int64 input
= kSInt64Max
;
11716 sal_Int16 radix
= 2;
11718 expVal
+= OString( "111111111111111111111111111111111111111111111111111111111111111" );
11719 aStrBuf
.append( input
, radix
);
11721 CPPUNIT_ASSERT_MESSAGE
11723 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
11724 aStrBuf
.getStr()== expVal
&&
11725 aStrBuf
.getLength() == expVal
.getLength()
11732 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
11733 OString
expVal( aStrBuf
.getStr() );
11734 sal_Int64 input
= kSInt8Max
;
11735 sal_Int16 radix
= 8;
11737 expVal
+= OString( "177" );
11738 aStrBuf
.append( input
, radix
);
11740 CPPUNIT_ASSERT_MESSAGE
11742 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
11743 aStrBuf
.getStr()== expVal
&&
11744 aStrBuf
.getLength() == expVal
.getLength()
11751 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
11752 OString
expVal( aStrBuf
.getStr() );
11753 sal_Int64 input
= kSInt64Max
;
11754 sal_Int16 radix
= 8;
11756 expVal
+= OString( "777777777777777777777" );
11757 aStrBuf
.append( input
, radix
);
11759 CPPUNIT_ASSERT_MESSAGE
11761 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
11762 aStrBuf
.getStr()== expVal
&&
11763 aStrBuf
.getLength() == expVal
.getLength()
11770 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
11771 OString
expVal( aStrBuf
.getStr() );
11772 sal_Int64 input
= kSInt8Max
;
11773 sal_Int16 radix
= 10;
11775 expVal
+= OString( "127" );
11776 aStrBuf
.append( input
, radix
);
11778 CPPUNIT_ASSERT_MESSAGE
11780 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
11781 aStrBuf
.getStr()== expVal
&&
11782 aStrBuf
.getLength() == expVal
.getLength()
11789 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
11790 OString
expVal( aStrBuf
.getStr() );
11791 sal_Int64 input
= kSInt64Max
;
11792 sal_Int16 radix
= 10;
11794 expVal
+= OString( "9223372036854775807" );
11795 aStrBuf
.append( input
, radix
);
11797 CPPUNIT_ASSERT_MESSAGE
11799 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
11800 aStrBuf
.getStr()== expVal
&&
11801 aStrBuf
.getLength() == expVal
.getLength()
11808 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
11809 OString
expVal( aStrBuf
.getStr() );
11810 sal_Int64 input
= kSInt8Max
;
11811 sal_Int16 radix
= 16;
11813 expVal
+= OString( "7f" );
11814 aStrBuf
.append( input
, radix
);
11816 CPPUNIT_ASSERT_MESSAGE
11818 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
11819 aStrBuf
.getStr()== expVal
&&
11820 aStrBuf
.getLength() == expVal
.getLength()
11827 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
11828 OString
expVal( aStrBuf
.getStr() );
11829 sal_Int64 input
= kSInt64Max
;
11830 sal_Int16 radix
= 16;
11832 expVal
+= OString( "7fffffffffffffff" );
11833 aStrBuf
.append( input
, radix
);
11835 CPPUNIT_ASSERT_MESSAGE
11837 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
11838 aStrBuf
.getStr()== expVal
&&
11839 aStrBuf
.getLength() == expVal
.getLength()
11846 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
11847 OString
expVal( aStrBuf
.getStr() );
11848 sal_Int64 input
= kSInt8Max
;
11849 sal_Int16 radix
= 36;
11851 expVal
+= OString( "3j" );
11852 aStrBuf
.append( input
, radix
);
11854 CPPUNIT_ASSERT_MESSAGE
11856 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
11857 aStrBuf
.getStr()== expVal
&&
11858 aStrBuf
.getLength() == expVal
.getLength()
11865 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
11866 OString
expVal( aStrBuf
.getStr() );
11867 sal_Int64 input
= kSInt64Max
;
11868 sal_Int16 radix
= 36;
11870 expVal
+= OString( "1y2p0ij32e8e7" );
11871 aStrBuf
.append( input
, radix
);
11873 CPPUNIT_ASSERT_MESSAGE
11875 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
11876 aStrBuf
.getStr()== expVal
&&
11877 aStrBuf
.getLength() == expVal
.getLength()
11882 CPPUNIT_TEST_SUITE( append_007_Int64_Bounderies
);
11883 CPPUNIT_TEST( append_001
); CPPUNIT_TEST( append_002
);
11884 CPPUNIT_TEST( append_003
); CPPUNIT_TEST( append_004
);
11885 CPPUNIT_TEST( append_005
); CPPUNIT_TEST( append_006
);
11886 CPPUNIT_TEST( append_007
); CPPUNIT_TEST( append_008
);
11887 CPPUNIT_TEST( append_009
); CPPUNIT_TEST( append_010
);
11888 CPPUNIT_TEST( append_011
); CPPUNIT_TEST( append_012
);
11889 CPPUNIT_TEST( append_013
); CPPUNIT_TEST( append_014
);
11890 CPPUNIT_TEST( append_015
); CPPUNIT_TEST( append_016
);
11891 CPPUNIT_TEST( append_017
); CPPUNIT_TEST( append_018
);
11892 CPPUNIT_TEST( append_019
); CPPUNIT_TEST( append_020
);
11893 CPPUNIT_TEST( append_021
); CPPUNIT_TEST( append_022
);
11894 CPPUNIT_TEST( append_023
); CPPUNIT_TEST( append_024
);
11895 CPPUNIT_TEST( append_025
); CPPUNIT_TEST( append_026
);
11896 CPPUNIT_TEST( append_027
); CPPUNIT_TEST( append_028
);
11897 CPPUNIT_TEST( append_029
); CPPUNIT_TEST( append_030
);
11898 CPPUNIT_TEST( append_031
); CPPUNIT_TEST( append_032
);
11899 CPPUNIT_TEST( append_033
); CPPUNIT_TEST( append_034
);
11900 CPPUNIT_TEST( append_035
); CPPUNIT_TEST( append_036
);
11901 CPPUNIT_TEST( append_037
); CPPUNIT_TEST( append_038
);
11902 CPPUNIT_TEST( append_039
); CPPUNIT_TEST( append_040
);
11903 CPPUNIT_TEST( append_041
); CPPUNIT_TEST( append_042
);
11904 CPPUNIT_TEST( append_043
); CPPUNIT_TEST( append_044
);
11905 CPPUNIT_TEST( append_045
); CPPUNIT_TEST( append_046
);
11906 CPPUNIT_TEST( append_047
); CPPUNIT_TEST( append_048
);
11907 CPPUNIT_TEST( append_049
); CPPUNIT_TEST( append_050
);
11908 CPPUNIT_TEST_SUITE_END();
11911 // testing the method append( sal_Int64 i, sal_Int16 radix=2 )
11912 // for negative value
11913 // testing the method append( sal_Int64 i, sal_Int16 radix=8 )
11914 // for negative value
11915 // testing the method append( sal_Int64 i, sal_Int16 radix=10 )
11916 // for negative value
11917 // testing the method append( sal_Int64 i, sal_Int16 radix=16 )
11918 // for negative value
11919 // testing the method append( sal_Int64 i, sal_Int16 radix=36 )
11920 // for negative value
11922 class append_007_Int64_Negative
: public CppUnit::TestFixture
11924 OString
* arrOUS
[5];
11927 void setUp() SAL_OVERRIDE
11929 arrOUS
[0] = new OString( kTestStr7
);
11930 arrOUS
[1] = new OString( );
11931 arrOUS
[2] = new OString( kTestStr25
);
11932 arrOUS
[3] = new OString( "" );
11933 arrOUS
[4] = new OString( kTestStr28
);
11937 void tearDown() SAL_OVERRIDE
11939 delete arrOUS
[0]; delete arrOUS
[1]; delete arrOUS
[2];
11940 delete arrOUS
[3]; delete arrOUS
[4];
11945 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
11946 OString
expVal( aStrBuf
.getStr() );
11947 sal_Int64 input
= -0;
11948 sal_Int16 radix
= 2;
11950 expVal
+= OString( "0" );
11951 aStrBuf
.append( input
, radix
);
11953 CPPUNIT_ASSERT_MESSAGE
11955 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
11956 aStrBuf
.getStr()== expVal
&&
11957 aStrBuf
.getLength() == expVal
.getLength()
11964 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
11965 OString
expVal( aStrBuf
.getStr() );
11966 sal_Int64 input
= -4;
11967 sal_Int16 radix
= 2;
11969 expVal
+= OString( "-" );
11970 expVal
+= OString( "100" );
11971 aStrBuf
.append( input
, radix
);
11973 CPPUNIT_ASSERT_MESSAGE
11975 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
11976 aStrBuf
.getStr()== expVal
&&
11977 aStrBuf
.getLength() == expVal
.getLength()
11984 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
11985 OString
expVal( aStrBuf
.getStr() );
11986 sal_Int64 input
= -8;
11987 sal_Int16 radix
= 2;
11989 expVal
+= OString( "-" );
11990 expVal
+= OString( "1000" );
11991 aStrBuf
.append( input
, radix
);
11993 CPPUNIT_ASSERT_MESSAGE
11995 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
11996 aStrBuf
.getStr()== expVal
&&
11997 aStrBuf
.getLength() == expVal
.getLength()
12004 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
12005 OString
expVal( aStrBuf
.getStr() );
12006 sal_Int64 input
= -15;
12007 sal_Int16 radix
= 2;
12009 expVal
+= OString( "-" );
12010 expVal
+= OString( "1111" );
12011 aStrBuf
.append( input
, radix
);
12013 CPPUNIT_ASSERT_MESSAGE
12015 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
12016 aStrBuf
.getStr()== expVal
&&
12017 aStrBuf
.getLength() == expVal
.getLength()
12024 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
12025 OString
expVal( aStrBuf
.getStr() );
12026 sal_Int64 input
= -0;
12027 sal_Int16 radix
= 8;
12029 expVal
+= OString( "0" );
12030 aStrBuf
.append( input
, radix
);
12032 CPPUNIT_ASSERT_MESSAGE
12034 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
12035 aStrBuf
.getStr()== expVal
&&
12036 aStrBuf
.getLength() == expVal
.getLength()
12043 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
12044 OString
expVal( aStrBuf
.getStr() );
12045 sal_Int64 input
= -4;
12046 sal_Int16 radix
= 8;
12048 expVal
+= OString( "-" );
12049 expVal
+= OString( "4" );
12050 aStrBuf
.append( input
, radix
);
12052 CPPUNIT_ASSERT_MESSAGE
12054 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
12055 aStrBuf
.getStr()== expVal
&&
12056 aStrBuf
.getLength() == expVal
.getLength()
12063 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
12064 OString
expVal( aStrBuf
.getStr() );
12065 sal_Int64 input
= -8;
12066 sal_Int16 radix
= 8;
12068 expVal
+= OString( "-" );
12069 expVal
+= OString( "10" );
12070 aStrBuf
.append( input
, radix
);
12072 CPPUNIT_ASSERT_MESSAGE
12074 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
12075 aStrBuf
.getStr()== expVal
&&
12076 aStrBuf
.getLength() == expVal
.getLength()
12083 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
12084 OString
expVal( aStrBuf
.getStr() );
12085 sal_Int64 input
= -15;
12086 sal_Int16 radix
= 8;
12088 expVal
+= OString( "-" );
12089 expVal
+= OString( "17" );
12090 aStrBuf
.append( input
, radix
);
12092 CPPUNIT_ASSERT_MESSAGE
12094 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
12095 aStrBuf
.getStr()== expVal
&&
12096 aStrBuf
.getLength() == expVal
.getLength()
12103 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
12104 OString
expVal( aStrBuf
.getStr() );
12105 sal_Int64 input
= -0;
12106 sal_Int16 radix
= 10;
12108 expVal
+= OString( "0" );
12109 aStrBuf
.append( input
, radix
);
12111 CPPUNIT_ASSERT_MESSAGE
12113 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
12114 aStrBuf
.getStr()== expVal
&&
12115 aStrBuf
.getLength() == expVal
.getLength()
12122 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
12123 OString
expVal( aStrBuf
.getStr() );
12124 sal_Int64 input
= -4;
12125 sal_Int16 radix
= 10;
12127 expVal
+= OString( "-" );
12128 expVal
+= OString( "4" );
12129 aStrBuf
.append( input
, radix
);
12131 CPPUNIT_ASSERT_MESSAGE
12133 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
12134 aStrBuf
.getStr()== expVal
&&
12135 aStrBuf
.getLength() == expVal
.getLength()
12142 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
12143 OString
expVal( aStrBuf
.getStr() );
12144 sal_Int64 input
= -8;
12145 sal_Int16 radix
= 10;
12147 expVal
+= OString( "-" );
12148 expVal
+= OString( "8" );
12149 aStrBuf
.append( input
, radix
);
12151 CPPUNIT_ASSERT_MESSAGE
12153 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
12154 aStrBuf
.getStr()== expVal
&&
12155 aStrBuf
.getLength() == expVal
.getLength()
12162 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
12163 OString
expVal( aStrBuf
.getStr() );
12164 sal_Int64 input
= -15;
12165 sal_Int16 radix
= 10;
12167 expVal
+= OString( "-" );
12168 expVal
+= OString( "15" );
12169 aStrBuf
.append( input
, radix
);
12171 CPPUNIT_ASSERT_MESSAGE
12173 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
12174 aStrBuf
.getStr()== expVal
&&
12175 aStrBuf
.getLength() == expVal
.getLength()
12182 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
12183 OString
expVal( aStrBuf
.getStr() );
12184 sal_Int64 input
= -0;
12185 sal_Int16 radix
= 16;
12187 expVal
+= OString( "0" );
12188 aStrBuf
.append( input
, radix
);
12190 CPPUNIT_ASSERT_MESSAGE
12192 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
12193 aStrBuf
.getStr()== expVal
&&
12194 aStrBuf
.getLength() == expVal
.getLength()
12201 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
12202 OString
expVal( aStrBuf
.getStr() );
12203 sal_Int64 input
= -4;
12204 sal_Int16 radix
= 16;
12206 expVal
+= OString( "-" );
12207 expVal
+= OString( "4" );
12208 aStrBuf
.append( input
, radix
);
12210 CPPUNIT_ASSERT_MESSAGE
12212 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
12213 aStrBuf
.getStr()== expVal
&&
12214 aStrBuf
.getLength() == expVal
.getLength()
12221 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
12222 OString
expVal( aStrBuf
.getStr() );
12223 sal_Int64 input
= -8;
12224 sal_Int16 radix
= 16;
12226 expVal
+= OString( "-" );
12227 expVal
+= OString( "8" );
12228 aStrBuf
.append( input
, radix
);
12230 CPPUNIT_ASSERT_MESSAGE
12232 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
12233 aStrBuf
.getStr()== expVal
&&
12234 aStrBuf
.getLength() == expVal
.getLength()
12241 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
12242 OString
expVal( aStrBuf
.getStr() );
12243 sal_Int64 input
= -15;
12244 sal_Int16 radix
= 16;
12246 expVal
+= OString( "-" );
12247 expVal
+= OString( "f" );
12248 aStrBuf
.append( input
, radix
);
12250 CPPUNIT_ASSERT_MESSAGE
12252 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
12253 aStrBuf
.getStr()== expVal
&&
12254 aStrBuf
.getLength() == expVal
.getLength()
12261 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
12262 OString
expVal( aStrBuf
.getStr() );
12263 sal_Int64 input
= -0;
12264 sal_Int16 radix
= 36;
12266 expVal
+= OString( "0" );
12267 aStrBuf
.append( input
, radix
);
12269 CPPUNIT_ASSERT_MESSAGE
12271 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
12272 aStrBuf
.getStr()== expVal
&&
12273 aStrBuf
.getLength() == expVal
.getLength()
12280 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
12281 OString
expVal( aStrBuf
.getStr() );
12282 sal_Int64 input
= -4;
12283 sal_Int16 radix
= 36;
12285 expVal
+= OString( "-" );
12286 expVal
+= OString( "4" );
12287 aStrBuf
.append( input
, radix
);
12289 CPPUNIT_ASSERT_MESSAGE
12291 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
12292 aStrBuf
.getStr()== expVal
&&
12293 aStrBuf
.getLength() == expVal
.getLength()
12300 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
12301 OString
expVal( aStrBuf
.getStr() );
12302 sal_Int64 input
= -8;
12303 sal_Int16 radix
= 36;
12305 expVal
+= OString( "-" );
12306 expVal
+= OString( "8" );
12307 aStrBuf
.append( input
, radix
);
12309 CPPUNIT_ASSERT_MESSAGE
12311 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
12312 aStrBuf
.getStr()== expVal
&&
12313 aStrBuf
.getLength() == expVal
.getLength()
12320 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
12321 OString
expVal( aStrBuf
.getStr() );
12322 sal_Int64 input
= -35;
12323 sal_Int16 radix
= 36;
12325 expVal
+= OString( "-" );
12326 expVal
+= OString( "z" );
12327 aStrBuf
.append( input
, radix
);
12329 CPPUNIT_ASSERT_MESSAGE
12331 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
12332 aStrBuf
.getStr()== expVal
&&
12333 aStrBuf
.getLength() == expVal
.getLength()
12340 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
12341 OString
expVal( aStrBuf
.getStr() );
12342 sal_Int64 input
= -0;
12343 sal_Int16 radix
= 2;
12345 expVal
+= OString( "0" );
12346 aStrBuf
.append( input
, radix
);
12348 CPPUNIT_ASSERT_MESSAGE
12350 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
12351 aStrBuf
.getStr()== expVal
&&
12352 aStrBuf
.getLength() == expVal
.getLength()
12359 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
12360 OString
expVal( aStrBuf
.getStr() );
12361 sal_Int64 input
= -4;
12362 sal_Int16 radix
= 2;
12364 expVal
+= OString( "-" );
12365 expVal
+= OString( "100" );
12366 aStrBuf
.append( input
, radix
);
12368 CPPUNIT_ASSERT_MESSAGE
12370 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
12371 aStrBuf
.getStr()== expVal
&&
12372 aStrBuf
.getLength() == expVal
.getLength()
12379 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
12380 OString
expVal( aStrBuf
.getStr() );
12381 sal_Int64 input
= -8;
12382 sal_Int16 radix
= 2;
12384 expVal
+= OString( "-" );
12385 expVal
+= OString( "1000" );
12386 aStrBuf
.append( input
, radix
);
12388 CPPUNIT_ASSERT_MESSAGE
12390 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
12391 aStrBuf
.getStr()== expVal
&&
12392 aStrBuf
.getLength() == expVal
.getLength()
12399 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
12400 OString
expVal( aStrBuf
.getStr() );
12401 sal_Int64 input
= -15;
12402 sal_Int16 radix
= 2;
12404 expVal
+= OString( "-" );
12405 expVal
+= OString( "1111" );
12406 aStrBuf
.append( input
, radix
);
12408 CPPUNIT_ASSERT_MESSAGE
12410 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
12411 aStrBuf
.getStr()== expVal
&&
12412 aStrBuf
.getLength() == expVal
.getLength()
12419 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
12420 OString
expVal( aStrBuf
.getStr() );
12421 sal_Int64 input
= -0;
12422 sal_Int16 radix
= 8;
12424 expVal
+= OString( "0" );
12425 aStrBuf
.append( input
, radix
);
12427 CPPUNIT_ASSERT_MESSAGE
12429 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
12430 aStrBuf
.getStr()== expVal
&&
12431 aStrBuf
.getLength() == expVal
.getLength()
12438 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
12439 OString
expVal( aStrBuf
.getStr() );
12440 sal_Int64 input
= -4;
12441 sal_Int16 radix
= 8;
12443 expVal
+= OString( "-" );
12444 expVal
+= OString( "4" );
12445 aStrBuf
.append( input
, radix
);
12447 CPPUNIT_ASSERT_MESSAGE
12449 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
12450 aStrBuf
.getStr()== expVal
&&
12451 aStrBuf
.getLength() == expVal
.getLength()
12458 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
12459 OString
expVal( aStrBuf
.getStr() );
12460 sal_Int64 input
= -8;
12461 sal_Int16 radix
= 8;
12463 expVal
+= OString( "-" );
12464 expVal
+= OString( "10" );
12465 aStrBuf
.append( input
, radix
);
12467 CPPUNIT_ASSERT_MESSAGE
12469 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
12470 aStrBuf
.getStr()== expVal
&&
12471 aStrBuf
.getLength() == expVal
.getLength()
12478 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
12479 OString
expVal( aStrBuf
.getStr() );
12480 sal_Int64 input
= -15;
12481 sal_Int16 radix
= 8;
12483 expVal
+= OString( "-" );
12484 expVal
+= OString( "17" );
12485 aStrBuf
.append( input
, radix
);
12487 CPPUNIT_ASSERT_MESSAGE
12489 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
12490 aStrBuf
.getStr()== expVal
&&
12491 aStrBuf
.getLength() == expVal
.getLength()
12498 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
12499 OString
expVal( aStrBuf
.getStr() );
12500 sal_Int64 input
= -0;
12501 sal_Int16 radix
= 10;
12503 expVal
+= OString( "0" );
12504 aStrBuf
.append( input
, radix
);
12506 CPPUNIT_ASSERT_MESSAGE
12508 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
12509 aStrBuf
.getStr()== expVal
&&
12510 aStrBuf
.getLength() == expVal
.getLength()
12517 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
12518 OString
expVal( aStrBuf
.getStr() );
12519 sal_Int64 input
= -4;
12520 sal_Int16 radix
= 10;
12522 expVal
+= OString( "-" );
12523 expVal
+= OString( "4" );
12524 aStrBuf
.append( input
, radix
);
12526 CPPUNIT_ASSERT_MESSAGE
12528 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
12529 aStrBuf
.getStr()== expVal
&&
12530 aStrBuf
.getLength() == expVal
.getLength()
12537 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
12538 OString
expVal( aStrBuf
.getStr() );
12539 sal_Int64 input
= -8;
12540 sal_Int16 radix
= 10;
12542 expVal
+= OString( "-" );
12543 expVal
+= OString( "8" );
12544 aStrBuf
.append( input
, radix
);
12546 CPPUNIT_ASSERT_MESSAGE
12548 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
12549 aStrBuf
.getStr()== expVal
&&
12550 aStrBuf
.getLength() == expVal
.getLength()
12557 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
12558 OString
expVal( aStrBuf
.getStr() );
12559 sal_Int64 input
= -15;
12560 sal_Int16 radix
= 10;
12562 expVal
+= OString( "-" );
12563 expVal
+= OString( "15" );
12564 aStrBuf
.append( input
, radix
);
12566 CPPUNIT_ASSERT_MESSAGE
12568 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
12569 aStrBuf
.getStr()== expVal
&&
12570 aStrBuf
.getLength() == expVal
.getLength()
12577 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
12578 OString
expVal( aStrBuf
.getStr() );
12579 sal_Int64 input
= -0;
12580 sal_Int16 radix
= 16;
12582 expVal
+= OString( "0" );
12583 aStrBuf
.append( input
, radix
);
12585 CPPUNIT_ASSERT_MESSAGE
12587 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
12588 aStrBuf
.getStr()== expVal
&&
12589 aStrBuf
.getLength() == expVal
.getLength()
12596 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
12597 OString
expVal( aStrBuf
.getStr() );
12598 sal_Int64 input
= -4;
12599 sal_Int16 radix
= 16;
12601 expVal
+= OString( "-" );
12602 expVal
+= OString( "4" );
12603 aStrBuf
.append( input
, radix
);
12605 CPPUNIT_ASSERT_MESSAGE
12607 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
12608 aStrBuf
.getStr()== expVal
&&
12609 aStrBuf
.getLength() == expVal
.getLength()
12616 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
12617 OString
expVal( aStrBuf
.getStr() );
12618 sal_Int64 input
= -8;
12619 sal_Int16 radix
= 16;
12621 expVal
+= OString( "-" );
12622 expVal
+= OString( "8" );
12623 aStrBuf
.append( input
, radix
);
12625 CPPUNIT_ASSERT_MESSAGE
12627 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
12628 aStrBuf
.getStr()== expVal
&&
12629 aStrBuf
.getLength() == expVal
.getLength()
12636 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
12637 OString
expVal( aStrBuf
.getStr() );
12638 sal_Int64 input
= -15;
12639 sal_Int16 radix
= 16;
12641 expVal
+= OString( "-" );
12642 expVal
+= OString( "f" );
12643 aStrBuf
.append( input
, radix
);
12645 CPPUNIT_ASSERT_MESSAGE
12647 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
12648 aStrBuf
.getStr()== expVal
&&
12649 aStrBuf
.getLength() == expVal
.getLength()
12656 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
12657 OString
expVal( aStrBuf
.getStr() );
12658 sal_Int64 input
= -0;
12659 sal_Int16 radix
= 36;
12661 expVal
+= OString( "0" );
12662 aStrBuf
.append( input
, radix
);
12664 CPPUNIT_ASSERT_MESSAGE
12666 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
12667 aStrBuf
.getStr()== expVal
&&
12668 aStrBuf
.getLength() == expVal
.getLength()
12675 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
12676 OString
expVal( aStrBuf
.getStr() );
12677 sal_Int64 input
= -4;
12678 sal_Int16 radix
= 36;
12680 expVal
+= OString( "-" );
12681 expVal
+= OString( "4" );
12682 aStrBuf
.append( input
, radix
);
12684 CPPUNIT_ASSERT_MESSAGE
12686 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
12687 aStrBuf
.getStr()== expVal
&&
12688 aStrBuf
.getLength() == expVal
.getLength()
12695 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
12696 OString
expVal( aStrBuf
.getStr() );
12697 sal_Int64 input
= -8;
12698 sal_Int16 radix
= 36;
12700 expVal
+= OString( "-" );
12701 expVal
+= OString( "8" );
12702 aStrBuf
.append( input
, radix
);
12704 CPPUNIT_ASSERT_MESSAGE
12706 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
12707 aStrBuf
.getStr()== expVal
&&
12708 aStrBuf
.getLength() == expVal
.getLength()
12715 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
12716 OString
expVal( aStrBuf
.getStr() );
12717 sal_Int64 input
= -35;
12718 sal_Int16 radix
= 36;
12720 expVal
+= OString( "-" );
12721 expVal
+= OString( "z" );
12722 aStrBuf
.append( input
, radix
);
12724 CPPUNIT_ASSERT_MESSAGE
12726 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
12727 aStrBuf
.getStr()== expVal
&&
12728 aStrBuf
.getLength() == expVal
.getLength()
12735 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
12736 OString
expVal( aStrBuf
.getStr() );
12737 sal_Int64 input
= -0;
12738 sal_Int16 radix
= 2;
12740 expVal
+= OString( "0" );
12741 aStrBuf
.append( input
, radix
);
12743 CPPUNIT_ASSERT_MESSAGE
12745 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
12746 aStrBuf
.getStr()== expVal
&&
12747 aStrBuf
.getLength() == expVal
.getLength()
12754 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
12755 OString
expVal( aStrBuf
.getStr() );
12756 sal_Int64 input
= -4;
12757 sal_Int16 radix
= 2;
12759 expVal
+= OString( "-" );
12760 expVal
+= OString( "100" );
12761 aStrBuf
.append( input
, radix
);
12763 CPPUNIT_ASSERT_MESSAGE
12765 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
12766 aStrBuf
.getStr()== expVal
&&
12767 aStrBuf
.getLength() == expVal
.getLength()
12774 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
12775 OString
expVal( aStrBuf
.getStr() );
12776 sal_Int64 input
= -8;
12777 sal_Int16 radix
= 2;
12779 expVal
+= OString( "-" );
12780 expVal
+= OString( "1000" );
12781 aStrBuf
.append( input
, radix
);
12783 CPPUNIT_ASSERT_MESSAGE
12785 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
12786 aStrBuf
.getStr()== expVal
&&
12787 aStrBuf
.getLength() == expVal
.getLength()
12794 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
12795 OString
expVal( aStrBuf
.getStr() );
12796 sal_Int64 input
= -15;
12797 sal_Int16 radix
= 2;
12799 expVal
+= OString( "-" );
12800 expVal
+= OString( "1111" );
12801 aStrBuf
.append( input
, radix
);
12803 CPPUNIT_ASSERT_MESSAGE
12805 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
12806 aStrBuf
.getStr()== expVal
&&
12807 aStrBuf
.getLength() == expVal
.getLength()
12814 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
12815 OString
expVal( aStrBuf
.getStr() );
12816 sal_Int64 input
= -0;
12817 sal_Int16 radix
= 8;
12819 expVal
+= OString( "0" );
12820 aStrBuf
.append( input
, radix
);
12822 CPPUNIT_ASSERT_MESSAGE
12824 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
12825 aStrBuf
.getStr()== expVal
&&
12826 aStrBuf
.getLength() == expVal
.getLength()
12833 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
12834 OString
expVal( aStrBuf
.getStr() );
12835 sal_Int64 input
= -4;
12836 sal_Int16 radix
= 8;
12838 expVal
+= OString( "-" );
12839 expVal
+= OString( "4" );
12840 aStrBuf
.append( input
, radix
);
12842 CPPUNIT_ASSERT_MESSAGE
12844 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
12845 aStrBuf
.getStr()== expVal
&&
12846 aStrBuf
.getLength() == expVal
.getLength()
12853 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
12854 OString
expVal( aStrBuf
.getStr() );
12855 sal_Int64 input
= -8;
12856 sal_Int16 radix
= 8;
12858 expVal
+= OString( "-" );
12859 expVal
+= OString( "10" );
12860 aStrBuf
.append( input
, radix
);
12862 CPPUNIT_ASSERT_MESSAGE
12864 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
12865 aStrBuf
.getStr()== expVal
&&
12866 aStrBuf
.getLength() == expVal
.getLength()
12873 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
12874 OString
expVal( aStrBuf
.getStr() );
12875 sal_Int64 input
= -15;
12876 sal_Int16 radix
= 8;
12878 expVal
+= OString( "-" );
12879 expVal
+= OString( "17" );
12880 aStrBuf
.append( input
, radix
);
12882 CPPUNIT_ASSERT_MESSAGE
12884 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
12885 aStrBuf
.getStr()== expVal
&&
12886 aStrBuf
.getLength() == expVal
.getLength()
12893 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
12894 OString
expVal( aStrBuf
.getStr() );
12895 sal_Int64 input
= -0;
12896 sal_Int16 radix
= 10;
12898 expVal
+= OString( "0" );
12899 aStrBuf
.append( input
, radix
);
12901 CPPUNIT_ASSERT_MESSAGE
12903 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
12904 aStrBuf
.getStr()== expVal
&&
12905 aStrBuf
.getLength() == expVal
.getLength()
12912 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
12913 OString
expVal( aStrBuf
.getStr() );
12914 sal_Int64 input
= -4;
12915 sal_Int16 radix
= 10;
12917 expVal
+= OString( "-" );
12918 expVal
+= OString( "4" );
12919 aStrBuf
.append( input
, radix
);
12921 CPPUNIT_ASSERT_MESSAGE
12923 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
12924 aStrBuf
.getStr()== expVal
&&
12925 aStrBuf
.getLength() == expVal
.getLength()
12932 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
12933 OString
expVal( aStrBuf
.getStr() );
12934 sal_Int64 input
= -8;
12935 sal_Int16 radix
= 10;
12937 expVal
+= OString( "-" );
12938 expVal
+= OString( "8" );
12939 aStrBuf
.append( input
, radix
);
12941 CPPUNIT_ASSERT_MESSAGE
12943 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
12944 aStrBuf
.getStr()== expVal
&&
12945 aStrBuf
.getLength() == expVal
.getLength()
12952 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
12953 OString
expVal( aStrBuf
.getStr() );
12954 sal_Int64 input
= -15;
12955 sal_Int16 radix
= 10;
12957 expVal
+= OString( "-" );
12958 expVal
+= OString( "15" );
12959 aStrBuf
.append( input
, radix
);
12961 CPPUNIT_ASSERT_MESSAGE
12963 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
12964 aStrBuf
.getStr()== expVal
&&
12965 aStrBuf
.getLength() == expVal
.getLength()
12972 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
12973 OString
expVal( aStrBuf
.getStr() );
12974 sal_Int64 input
= -0;
12975 sal_Int16 radix
= 16;
12977 expVal
+= OString( "0" );
12978 aStrBuf
.append( input
, radix
);
12980 CPPUNIT_ASSERT_MESSAGE
12982 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
12983 aStrBuf
.getStr()== expVal
&&
12984 aStrBuf
.getLength() == expVal
.getLength()
12991 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
12992 OString
expVal( aStrBuf
.getStr() );
12993 sal_Int64 input
= -4;
12994 sal_Int16 radix
= 16;
12996 expVal
+= OString( "-" );
12997 expVal
+= OString( "4" );
12998 aStrBuf
.append( input
, radix
);
13000 CPPUNIT_ASSERT_MESSAGE
13002 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
13003 aStrBuf
.getStr()== expVal
&&
13004 aStrBuf
.getLength() == expVal
.getLength()
13011 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
13012 OString
expVal( aStrBuf
.getStr() );
13013 sal_Int64 input
= -8;
13014 sal_Int16 radix
= 16;
13016 expVal
+= OString( "-" );
13017 expVal
+= OString( "8" );
13018 aStrBuf
.append( input
, radix
);
13020 CPPUNIT_ASSERT_MESSAGE
13022 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
13023 aStrBuf
.getStr()== expVal
&&
13024 aStrBuf
.getLength() == expVal
.getLength()
13031 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
13032 OString
expVal( aStrBuf
.getStr() );
13033 sal_Int64 input
= -15;
13034 sal_Int16 radix
= 16;
13036 expVal
+= OString( "-" );
13037 expVal
+= OString( "f" );
13038 aStrBuf
.append( input
, radix
);
13040 CPPUNIT_ASSERT_MESSAGE
13042 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
13043 aStrBuf
.getStr()== expVal
&&
13044 aStrBuf
.getLength() == expVal
.getLength()
13051 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
13052 OString
expVal( aStrBuf
.getStr() );
13053 sal_Int64 input
= -0;
13054 sal_Int16 radix
= 36;
13056 expVal
+= OString( "0" );
13057 aStrBuf
.append( input
, radix
);
13059 CPPUNIT_ASSERT_MESSAGE
13061 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
13062 aStrBuf
.getStr()== expVal
&&
13063 aStrBuf
.getLength() == expVal
.getLength()
13070 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
13071 OString
expVal( aStrBuf
.getStr() );
13072 sal_Int64 input
= -4;
13073 sal_Int16 radix
= 36;
13075 expVal
+= OString( "-" );
13076 expVal
+= OString( "4" );
13077 aStrBuf
.append( input
, radix
);
13079 CPPUNIT_ASSERT_MESSAGE
13081 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
13082 aStrBuf
.getStr()== expVal
&&
13083 aStrBuf
.getLength() == expVal
.getLength()
13090 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
13091 OString
expVal( aStrBuf
.getStr() );
13092 sal_Int64 input
= -8;
13093 sal_Int16 radix
= 36;
13095 expVal
+= OString( "-" );
13096 expVal
+= OString( "8" );
13097 aStrBuf
.append( input
, radix
);
13099 CPPUNIT_ASSERT_MESSAGE
13101 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
13102 aStrBuf
.getStr()== expVal
&&
13103 aStrBuf
.getLength() == expVal
.getLength()
13110 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
13111 OString
expVal( aStrBuf
.getStr() );
13112 sal_Int64 input
= -35;
13113 sal_Int16 radix
= 36;
13115 expVal
+= OString( "-" );
13116 expVal
+= OString( "z" );
13117 aStrBuf
.append( input
, radix
);
13119 CPPUNIT_ASSERT_MESSAGE
13121 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
13122 aStrBuf
.getStr()== expVal
&&
13123 aStrBuf
.getLength() == expVal
.getLength()
13130 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
13131 OString
expVal( aStrBuf
.getStr() );
13132 sal_Int64 input
= -0;
13133 sal_Int16 radix
= 2;
13135 expVal
+= OString( "0" );
13136 aStrBuf
.append( input
, radix
);
13138 CPPUNIT_ASSERT_MESSAGE
13140 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
13141 aStrBuf
.getStr()== expVal
&&
13142 aStrBuf
.getLength() == expVal
.getLength()
13149 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
13150 OString
expVal( aStrBuf
.getStr() );
13151 sal_Int64 input
= -4;
13152 sal_Int16 radix
= 2;
13154 expVal
+= OString( "-" );
13155 expVal
+= OString( "100" );
13156 aStrBuf
.append( input
, radix
);
13158 CPPUNIT_ASSERT_MESSAGE
13160 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
13161 aStrBuf
.getStr()== expVal
&&
13162 aStrBuf
.getLength() == expVal
.getLength()
13169 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
13170 OString
expVal( aStrBuf
.getStr() );
13171 sal_Int64 input
= -8;
13172 sal_Int16 radix
= 2;
13174 expVal
+= OString( "-" );
13175 expVal
+= OString( "1000" );
13176 aStrBuf
.append( input
, radix
);
13178 CPPUNIT_ASSERT_MESSAGE
13180 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
13181 aStrBuf
.getStr()== expVal
&&
13182 aStrBuf
.getLength() == expVal
.getLength()
13189 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
13190 OString
expVal( aStrBuf
.getStr() );
13191 sal_Int64 input
= -15;
13192 sal_Int16 radix
= 2;
13194 expVal
+= OString( "-" );
13195 expVal
+= OString( "1111" );
13196 aStrBuf
.append( input
, radix
);
13198 CPPUNIT_ASSERT_MESSAGE
13200 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
13201 aStrBuf
.getStr()== expVal
&&
13202 aStrBuf
.getLength() == expVal
.getLength()
13209 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
13210 OString
expVal( aStrBuf
.getStr() );
13211 sal_Int64 input
= -0;
13212 sal_Int16 radix
= 8;
13214 expVal
+= OString( "0" );
13215 aStrBuf
.append( input
, radix
);
13217 CPPUNIT_ASSERT_MESSAGE
13219 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
13220 aStrBuf
.getStr()== expVal
&&
13221 aStrBuf
.getLength() == expVal
.getLength()
13228 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
13229 OString
expVal( aStrBuf
.getStr() );
13230 sal_Int64 input
= -4;
13231 sal_Int16 radix
= 8;
13233 expVal
+= OString( "-" );
13234 expVal
+= OString( "4" );
13235 aStrBuf
.append( input
, radix
);
13237 CPPUNIT_ASSERT_MESSAGE
13239 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
13240 aStrBuf
.getStr()== expVal
&&
13241 aStrBuf
.getLength() == expVal
.getLength()
13248 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
13249 OString
expVal( aStrBuf
.getStr() );
13250 sal_Int64 input
= -8;
13251 sal_Int16 radix
= 8;
13253 expVal
+= OString( "-" );
13254 expVal
+= OString( "10" );
13255 aStrBuf
.append( input
, radix
);
13257 CPPUNIT_ASSERT_MESSAGE
13259 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
13260 aStrBuf
.getStr()== expVal
&&
13261 aStrBuf
.getLength() == expVal
.getLength()
13268 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
13269 OString
expVal( aStrBuf
.getStr() );
13270 sal_Int64 input
= -15;
13271 sal_Int16 radix
= 8;
13273 expVal
+= OString( "-" );
13274 expVal
+= OString( "17" );
13275 aStrBuf
.append( input
, radix
);
13277 CPPUNIT_ASSERT_MESSAGE
13279 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
13280 aStrBuf
.getStr()== expVal
&&
13281 aStrBuf
.getLength() == expVal
.getLength()
13288 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
13289 OString
expVal( aStrBuf
.getStr() );
13290 sal_Int64 input
= -0;
13291 sal_Int16 radix
= 10;
13293 expVal
+= OString( "0" );
13294 aStrBuf
.append( input
, radix
);
13296 CPPUNIT_ASSERT_MESSAGE
13298 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
13299 aStrBuf
.getStr()== expVal
&&
13300 aStrBuf
.getLength() == expVal
.getLength()
13307 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
13308 OString
expVal( aStrBuf
.getStr() );
13309 sal_Int64 input
= -4;
13310 sal_Int16 radix
= 10;
13312 expVal
+= OString( "-" );
13313 expVal
+= OString( "4" );
13314 aStrBuf
.append( input
, radix
);
13316 CPPUNIT_ASSERT_MESSAGE
13318 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
13319 aStrBuf
.getStr()== expVal
&&
13320 aStrBuf
.getLength() == expVal
.getLength()
13327 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
13328 OString
expVal( aStrBuf
.getStr() );
13329 sal_Int64 input
= -8;
13330 sal_Int16 radix
= 10;
13332 expVal
+= OString( "-" );
13333 expVal
+= OString( "8" );
13334 aStrBuf
.append( input
, radix
);
13336 CPPUNIT_ASSERT_MESSAGE
13338 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
13339 aStrBuf
.getStr()== expVal
&&
13340 aStrBuf
.getLength() == expVal
.getLength()
13347 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
13348 OString
expVal( aStrBuf
.getStr() );
13349 sal_Int64 input
= -15;
13350 sal_Int16 radix
= 10;
13352 expVal
+= OString( "-" );
13353 expVal
+= OString( "15" );
13354 aStrBuf
.append( input
, radix
);
13356 CPPUNIT_ASSERT_MESSAGE
13358 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
13359 aStrBuf
.getStr()== expVal
&&
13360 aStrBuf
.getLength() == expVal
.getLength()
13367 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
13368 OString
expVal( aStrBuf
.getStr() );
13369 sal_Int64 input
= -0;
13370 sal_Int16 radix
= 16;
13372 expVal
+= OString( "0" );
13373 aStrBuf
.append( input
, radix
);
13375 CPPUNIT_ASSERT_MESSAGE
13377 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
13378 aStrBuf
.getStr()== expVal
&&
13379 aStrBuf
.getLength() == expVal
.getLength()
13386 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
13387 OString
expVal( aStrBuf
.getStr() );
13388 sal_Int64 input
= -4;
13389 sal_Int16 radix
= 16;
13391 expVal
+= OString( "-" );
13392 expVal
+= OString( "4" );
13393 aStrBuf
.append( input
, radix
);
13395 CPPUNIT_ASSERT_MESSAGE
13397 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
13398 aStrBuf
.getStr()== expVal
&&
13399 aStrBuf
.getLength() == expVal
.getLength()
13406 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
13407 OString
expVal( aStrBuf
.getStr() );
13408 sal_Int64 input
= -8;
13409 sal_Int16 radix
= 16;
13411 expVal
+= OString( "-" );
13412 expVal
+= OString( "8" );
13413 aStrBuf
.append( input
, radix
);
13415 CPPUNIT_ASSERT_MESSAGE
13417 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
13418 aStrBuf
.getStr()== expVal
&&
13419 aStrBuf
.getLength() == expVal
.getLength()
13426 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
13427 OString
expVal( aStrBuf
.getStr() );
13428 sal_Int64 input
= -15;
13429 sal_Int16 radix
= 16;
13431 expVal
+= OString( "-" );
13432 expVal
+= OString( "f" );
13433 aStrBuf
.append( input
, radix
);
13435 CPPUNIT_ASSERT_MESSAGE
13437 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
13438 aStrBuf
.getStr()== expVal
&&
13439 aStrBuf
.getLength() == expVal
.getLength()
13446 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
13447 OString
expVal( aStrBuf
.getStr() );
13448 sal_Int64 input
= -0;
13449 sal_Int16 radix
= 36;
13451 expVal
+= OString( "0" );
13452 aStrBuf
.append( input
, radix
);
13454 CPPUNIT_ASSERT_MESSAGE
13456 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
13457 aStrBuf
.getStr()== expVal
&&
13458 aStrBuf
.getLength() == expVal
.getLength()
13465 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
13466 OString
expVal( aStrBuf
.getStr() );
13467 sal_Int64 input
= -4;
13468 sal_Int16 radix
= 36;
13470 expVal
+= OString( "-" );
13471 expVal
+= OString( "4" );
13472 aStrBuf
.append( input
, radix
);
13474 CPPUNIT_ASSERT_MESSAGE
13476 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
13477 aStrBuf
.getStr()== expVal
&&
13478 aStrBuf
.getLength() == expVal
.getLength()
13485 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
13486 OString
expVal( aStrBuf
.getStr() );
13487 sal_Int64 input
= -8;
13488 sal_Int16 radix
= 36;
13490 expVal
+= OString( "-" );
13491 expVal
+= OString( "8" );
13492 aStrBuf
.append( input
, radix
);
13494 CPPUNIT_ASSERT_MESSAGE
13496 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
13497 aStrBuf
.getStr()== expVal
&&
13498 aStrBuf
.getLength() == expVal
.getLength()
13505 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
13506 OString
expVal( aStrBuf
.getStr() );
13507 sal_Int64 input
= -35;
13508 sal_Int16 radix
= 36;
13510 expVal
+= OString( "-" );
13511 expVal
+= OString( "z" );
13512 aStrBuf
.append( input
, radix
);
13514 CPPUNIT_ASSERT_MESSAGE
13516 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
13517 aStrBuf
.getStr()== expVal
&&
13518 aStrBuf
.getLength() == expVal
.getLength()
13525 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
13526 OString
expVal( aStrBuf
.getStr() );
13527 sal_Int64 input
= -0;
13528 sal_Int16 radix
= 2;
13530 expVal
+= OString( "0" );
13531 aStrBuf
.append( input
, radix
);
13533 CPPUNIT_ASSERT_MESSAGE
13535 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
13536 aStrBuf
.getStr()== expVal
&&
13537 aStrBuf
.getLength() == expVal
.getLength()
13544 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
13545 OString
expVal( aStrBuf
.getStr() );
13546 sal_Int64 input
= -4;
13547 sal_Int16 radix
= 2;
13549 expVal
+= OString( "-" );
13550 expVal
+= OString( "100" );
13551 aStrBuf
.append( input
, radix
);
13553 CPPUNIT_ASSERT_MESSAGE
13555 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
13556 aStrBuf
.getStr()== expVal
&&
13557 aStrBuf
.getLength() == expVal
.getLength()
13564 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
13565 OString
expVal( aStrBuf
.getStr() );
13566 sal_Int64 input
= -8;
13567 sal_Int16 radix
= 2;
13569 expVal
+= OString( "-" );
13570 expVal
+= OString( "1000" );
13571 aStrBuf
.append( input
, radix
);
13573 CPPUNIT_ASSERT_MESSAGE
13575 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
13576 aStrBuf
.getStr()== expVal
&&
13577 aStrBuf
.getLength() == expVal
.getLength()
13584 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
13585 OString
expVal( aStrBuf
.getStr() );
13586 sal_Int64 input
= -15;
13587 sal_Int16 radix
= 2;
13589 expVal
+= OString( "-" );
13590 expVal
+= OString( "1111" );
13591 aStrBuf
.append( input
, radix
);
13593 CPPUNIT_ASSERT_MESSAGE
13595 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
13596 aStrBuf
.getStr()== expVal
&&
13597 aStrBuf
.getLength() == expVal
.getLength()
13604 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
13605 OString
expVal( aStrBuf
.getStr() );
13606 sal_Int64 input
= -0;
13607 sal_Int16 radix
= 8;
13609 expVal
+= OString( "0" );
13610 aStrBuf
.append( input
, radix
);
13612 CPPUNIT_ASSERT_MESSAGE
13614 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
13615 aStrBuf
.getStr()== expVal
&&
13616 aStrBuf
.getLength() == expVal
.getLength()
13623 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
13624 OString
expVal( aStrBuf
.getStr() );
13625 sal_Int64 input
= -4;
13626 sal_Int16 radix
= 8;
13628 expVal
+= OString( "-" );
13629 expVal
+= OString( "4" );
13630 aStrBuf
.append( input
, radix
);
13632 CPPUNIT_ASSERT_MESSAGE
13634 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
13635 aStrBuf
.getStr()== expVal
&&
13636 aStrBuf
.getLength() == expVal
.getLength()
13643 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
13644 OString
expVal( aStrBuf
.getStr() );
13645 sal_Int64 input
= -8;
13646 sal_Int16 radix
= 8;
13648 expVal
+= OString( "-" );
13649 expVal
+= OString( "10" );
13650 aStrBuf
.append( input
, radix
);
13652 CPPUNIT_ASSERT_MESSAGE
13654 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
13655 aStrBuf
.getStr()== expVal
&&
13656 aStrBuf
.getLength() == expVal
.getLength()
13663 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
13664 OString
expVal( aStrBuf
.getStr() );
13665 sal_Int64 input
= -15;
13666 sal_Int16 radix
= 8;
13668 expVal
+= OString( "-" );
13669 expVal
+= OString( "17" );
13670 aStrBuf
.append( input
, radix
);
13672 CPPUNIT_ASSERT_MESSAGE
13674 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
13675 aStrBuf
.getStr()== expVal
&&
13676 aStrBuf
.getLength() == expVal
.getLength()
13683 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
13684 OString
expVal( aStrBuf
.getStr() );
13685 sal_Int64 input
= -0;
13686 sal_Int16 radix
= 10;
13688 expVal
+= OString( "0" );
13689 aStrBuf
.append( input
, radix
);
13691 CPPUNIT_ASSERT_MESSAGE
13693 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
13694 aStrBuf
.getStr()== expVal
&&
13695 aStrBuf
.getLength() == expVal
.getLength()
13702 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
13703 OString
expVal( aStrBuf
.getStr() );
13704 sal_Int64 input
= -4;
13705 sal_Int16 radix
= 10;
13707 expVal
+= OString( "-" );
13708 expVal
+= OString( "4" );
13709 aStrBuf
.append( input
, radix
);
13711 CPPUNIT_ASSERT_MESSAGE
13713 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
13714 aStrBuf
.getStr()== expVal
&&
13715 aStrBuf
.getLength() == expVal
.getLength()
13722 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
13723 OString
expVal( aStrBuf
.getStr() );
13724 sal_Int64 input
= -8;
13725 sal_Int16 radix
= 10;
13727 expVal
+= OString( "-" );
13728 expVal
+= OString( "8" );
13729 aStrBuf
.append( input
, radix
);
13731 CPPUNIT_ASSERT_MESSAGE
13733 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
13734 aStrBuf
.getStr()== expVal
&&
13735 aStrBuf
.getLength() == expVal
.getLength()
13742 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
13743 OString
expVal( aStrBuf
.getStr() );
13744 sal_Int64 input
= -15;
13745 sal_Int16 radix
= 10;
13747 expVal
+= OString( "-" );
13748 expVal
+= OString( "15" );
13749 aStrBuf
.append( input
, radix
);
13751 CPPUNIT_ASSERT_MESSAGE
13753 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
13754 aStrBuf
.getStr()== expVal
&&
13755 aStrBuf
.getLength() == expVal
.getLength()
13762 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
13763 OString
expVal( aStrBuf
.getStr() );
13764 sal_Int64 input
= -0;
13765 sal_Int16 radix
= 16;
13767 expVal
+= OString( "0" );
13768 aStrBuf
.append( input
, radix
);
13770 CPPUNIT_ASSERT_MESSAGE
13772 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
13773 aStrBuf
.getStr()== expVal
&&
13774 aStrBuf
.getLength() == expVal
.getLength()
13781 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
13782 OString
expVal( aStrBuf
.getStr() );
13783 sal_Int64 input
= -4;
13784 sal_Int16 radix
= 16;
13786 expVal
+= OString( "-" );
13787 expVal
+= OString( "4" );
13788 aStrBuf
.append( input
, radix
);
13790 CPPUNIT_ASSERT_MESSAGE
13792 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
13793 aStrBuf
.getStr()== expVal
&&
13794 aStrBuf
.getLength() == expVal
.getLength()
13801 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
13802 OString
expVal( aStrBuf
.getStr() );
13803 sal_Int64 input
= -8;
13804 sal_Int16 radix
= 16;
13806 expVal
+= OString( "-" );
13807 expVal
+= OString( "8" );
13808 aStrBuf
.append( input
, radix
);
13810 CPPUNIT_ASSERT_MESSAGE
13812 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
13813 aStrBuf
.getStr()== expVal
&&
13814 aStrBuf
.getLength() == expVal
.getLength()
13821 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
13822 OString
expVal( aStrBuf
.getStr() );
13823 sal_Int64 input
= -15;
13824 sal_Int16 radix
= 16;
13826 expVal
+= OString( "-" );
13827 expVal
+= OString( "f" );
13828 aStrBuf
.append( input
, radix
);
13830 CPPUNIT_ASSERT_MESSAGE
13832 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
13833 aStrBuf
.getStr()== expVal
&&
13834 aStrBuf
.getLength() == expVal
.getLength()
13841 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
13842 OString
expVal( aStrBuf
.getStr() );
13843 sal_Int64 input
= -0;
13844 sal_Int16 radix
= 36;
13846 expVal
+= OString( "0" );
13847 aStrBuf
.append( input
, radix
);
13849 CPPUNIT_ASSERT_MESSAGE
13851 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
13852 aStrBuf
.getStr()== expVal
&&
13853 aStrBuf
.getLength() == expVal
.getLength()
13860 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
13861 OString
expVal( aStrBuf
.getStr() );
13862 sal_Int64 input
= -4;
13863 sal_Int16 radix
= 36;
13865 expVal
+= OString( "-" );
13866 expVal
+= OString( "4" );
13867 aStrBuf
.append( input
, radix
);
13869 CPPUNIT_ASSERT_MESSAGE
13871 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
13872 aStrBuf
.getStr()== expVal
&&
13873 aStrBuf
.getLength() == expVal
.getLength()
13880 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
13881 OString
expVal( aStrBuf
.getStr() );
13882 sal_Int64 input
= -8;
13883 sal_Int16 radix
= 36;
13885 expVal
+= OString( "-" );
13886 expVal
+= OString( "8" );
13887 aStrBuf
.append( input
, radix
);
13889 CPPUNIT_ASSERT_MESSAGE
13891 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
13892 aStrBuf
.getStr()== expVal
&&
13893 aStrBuf
.getLength() == expVal
.getLength()
13900 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
13901 OString
expVal( aStrBuf
.getStr() );
13902 sal_Int64 input
= -35;
13903 sal_Int16 radix
= 36;
13905 expVal
+= OString( "-" );
13906 expVal
+= OString( "z" );
13907 aStrBuf
.append( input
, radix
);
13909 CPPUNIT_ASSERT_MESSAGE
13911 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
13912 aStrBuf
.getStr()== expVal
&&
13913 aStrBuf
.getLength() == expVal
.getLength()
13918 CPPUNIT_TEST_SUITE( append_007_Int64_Negative
);
13919 CPPUNIT_TEST( append_001
); CPPUNIT_TEST( append_002
);
13920 CPPUNIT_TEST( append_003
); CPPUNIT_TEST( append_004
);
13921 CPPUNIT_TEST( append_005
); CPPUNIT_TEST( append_006
);
13922 CPPUNIT_TEST( append_007
); CPPUNIT_TEST( append_008
);
13923 CPPUNIT_TEST( append_009
); CPPUNIT_TEST( append_010
);
13924 CPPUNIT_TEST( append_011
); CPPUNIT_TEST( append_012
);
13925 CPPUNIT_TEST( append_013
); CPPUNIT_TEST( append_014
);
13926 CPPUNIT_TEST( append_015
); CPPUNIT_TEST( append_016
);
13927 CPPUNIT_TEST( append_017
); CPPUNIT_TEST( append_018
);
13928 CPPUNIT_TEST( append_019
); CPPUNIT_TEST( append_020
);
13929 CPPUNIT_TEST( append_021
); CPPUNIT_TEST( append_022
);
13930 CPPUNIT_TEST( append_023
); CPPUNIT_TEST( append_024
);
13931 CPPUNIT_TEST( append_025
); CPPUNIT_TEST( append_026
);
13932 CPPUNIT_TEST( append_027
); CPPUNIT_TEST( append_028
);
13933 CPPUNIT_TEST( append_029
); CPPUNIT_TEST( append_030
);
13934 CPPUNIT_TEST( append_031
); CPPUNIT_TEST( append_032
);
13935 CPPUNIT_TEST( append_033
); CPPUNIT_TEST( append_034
);
13936 CPPUNIT_TEST( append_035
); CPPUNIT_TEST( append_036
);
13937 CPPUNIT_TEST( append_037
); CPPUNIT_TEST( append_038
);
13938 CPPUNIT_TEST( append_039
); CPPUNIT_TEST( append_040
);
13939 CPPUNIT_TEST( append_041
); CPPUNIT_TEST( append_042
);
13940 CPPUNIT_TEST( append_043
); CPPUNIT_TEST( append_044
);
13941 CPPUNIT_TEST( append_045
); CPPUNIT_TEST( append_046
);
13942 CPPUNIT_TEST( append_047
); CPPUNIT_TEST( append_048
);
13943 CPPUNIT_TEST( append_049
); CPPUNIT_TEST( append_050
);
13944 CPPUNIT_TEST( append_051
); CPPUNIT_TEST( append_052
);
13945 CPPUNIT_TEST( append_053
); CPPUNIT_TEST( append_054
);
13946 CPPUNIT_TEST( append_055
); CPPUNIT_TEST( append_056
);
13947 CPPUNIT_TEST( append_057
); CPPUNIT_TEST( append_058
);
13948 CPPUNIT_TEST( append_059
); CPPUNIT_TEST( append_060
);
13949 CPPUNIT_TEST( append_061
); CPPUNIT_TEST( append_062
);
13950 CPPUNIT_TEST( append_063
); CPPUNIT_TEST( append_064
);
13951 CPPUNIT_TEST( append_065
); CPPUNIT_TEST( append_066
);
13952 CPPUNIT_TEST( append_067
); CPPUNIT_TEST( append_068
);
13953 CPPUNIT_TEST( append_069
); CPPUNIT_TEST( append_070
);
13954 CPPUNIT_TEST( append_071
); CPPUNIT_TEST( append_072
);
13955 CPPUNIT_TEST( append_073
); CPPUNIT_TEST( append_074
);
13956 CPPUNIT_TEST( append_075
); CPPUNIT_TEST( append_076
);
13957 CPPUNIT_TEST( append_077
); CPPUNIT_TEST( append_078
);
13958 CPPUNIT_TEST( append_079
); CPPUNIT_TEST( append_080
);
13959 CPPUNIT_TEST( append_081
); CPPUNIT_TEST( append_082
);
13960 CPPUNIT_TEST( append_083
); CPPUNIT_TEST( append_084
);
13961 CPPUNIT_TEST( append_085
); CPPUNIT_TEST( append_086
);
13962 CPPUNIT_TEST( append_087
); CPPUNIT_TEST( append_088
);
13963 CPPUNIT_TEST( append_089
); CPPUNIT_TEST( append_090
);
13964 CPPUNIT_TEST( append_091
); CPPUNIT_TEST( append_092
);
13965 CPPUNIT_TEST( append_093
); CPPUNIT_TEST( append_094
);
13966 CPPUNIT_TEST( append_095
); CPPUNIT_TEST( append_096
);
13967 CPPUNIT_TEST( append_097
); CPPUNIT_TEST( append_098
);
13968 CPPUNIT_TEST( append_099
); CPPUNIT_TEST( append_100
);
13969 CPPUNIT_TEST_SUITE_END();
13972 // testing the method append( sal_Int64 i, sal_Int16 radix ) where radix = -5
13974 class append_007_Int64_WrongRadix
: public CppUnit::TestFixture
13976 OString
* arrOUS
[5];
13980 void setUp() SAL_OVERRIDE
13982 arrOUS
[0] = new OString( kTestStr7
);
13983 arrOUS
[1] = new OString( );
13984 arrOUS
[2] = new OString( kTestStr25
);
13985 arrOUS
[3] = new OString( "" );
13986 arrOUS
[4] = new OString( kTestStr28
);
13991 void tearDown() SAL_OVERRIDE
13993 delete arrOUS
[0]; delete arrOUS
[1]; delete arrOUS
[2];
13994 delete arrOUS
[3]; delete arrOUS
[4];
13999 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
14000 OString
expVal( kTestStr59
);
14002 aStrBuf
.append( intVal
, -5 );
14004 CPPUNIT_ASSERT_MESSAGE
14006 "Appends the WrongRadix to the string buffer arrOUS[0]",
14007 (aStrBuf
.toString() == expVal
&&
14008 aStrBuf
.getLength() == expVal
.getLength())
14014 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
14015 OString
expVal( kTestStr60
);
14017 aStrBuf
.append( intVal
, -5 );
14019 CPPUNIT_ASSERT_MESSAGE
14021 "Appends the WrongRadix to the string buffer arrOUS[1]",
14022 (aStrBuf
.toString() == expVal
&&
14023 aStrBuf
.getLength() == expVal
.getLength())
14029 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
14030 OString
expVal( kTestStr60
);
14032 aStrBuf
.append( intVal
, -5 );
14034 CPPUNIT_ASSERT_MESSAGE
14036 "Appends the WrongRadix to the string buffer arrOUS[2]",
14037 (aStrBuf
.toString() == expVal
&&
14038 aStrBuf
.getLength() == expVal
.getLength())
14044 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
14045 OString
expVal( kTestStr60
);
14047 aStrBuf
.append( intVal
, -5 );
14049 CPPUNIT_ASSERT_MESSAGE
14051 "Appends the WrongRadix to the string buffer arrOUS[3]",
14052 (aStrBuf
.toString() == expVal
&&
14053 aStrBuf
.getLength() == expVal
.getLength())
14059 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
14060 OString
expVal( kTestStr61
);
14062 aStrBuf
.append( intVal
, -5 );
14064 CPPUNIT_ASSERT_MESSAGE
14066 "Appends the WrongRadix to the string buffer arrOUS[4]",
14067 (aStrBuf
.toString() == expVal
&&
14068 aStrBuf
.getLength() == expVal
.getLength())
14074 ::rtl::OStringBuffer
aStrBuf( kSInt64Max
);
14075 OString
expVal( kTestStr60
);
14077 aStrBuf
.append( intVal
, -5 );
14079 CPPUNIT_ASSERT_MESSAGE
14081 "Appends the WrongRadix to the string buffer(with INT_MAX)",
14082 (aStrBuf
.toString() == expVal
&&
14083 aStrBuf
.getLength() == expVal
.getLength())
14088 CPPUNIT_TEST_SUITE( append_007_Int64_WrongRadix
);
14089 CPPUNIT_TEST( append_001
);
14090 CPPUNIT_TEST( append_002
);
14091 CPPUNIT_TEST( append_003
);
14092 CPPUNIT_TEST( append_004
);
14093 CPPUNIT_TEST( append_005
);
14095 CPPUNIT_TEST( append_006
);
14097 CPPUNIT_TEST_SUITE_END();
14100 class append_007_Int64_defaultParam
: public CppUnit::TestFixture
14102 OString
* arrOUS
[5];
14105 void setUp() SAL_OVERRIDE
14107 arrOUS
[0] = new OString( kTestStr7
);
14108 arrOUS
[1] = new OString( );
14109 arrOUS
[2] = new OString( kTestStr25
);
14110 arrOUS
[3] = new OString( "" );
14111 arrOUS
[4] = new OString( kTestStr28
);
14115 void tearDown() SAL_OVERRIDE
14117 delete arrOUS
[0]; delete arrOUS
[1]; delete arrOUS
[2];
14118 delete arrOUS
[3]; delete arrOUS
[4];
14123 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
14124 OString
expVal( kTestStr59
);
14125 sal_Int64 input
= 11;
14127 aStrBuf
.append( input
);
14129 CPPUNIT_ASSERT_MESSAGE
14131 "input Int64 11 and return OStringBuffer[0]+11",
14132 (aStrBuf
.toString() == expVal
&&
14133 aStrBuf
.getLength() == expVal
.getLength())
14140 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
14141 OString
expVal( kTestStr62
);
14142 sal_Int64 input
= 0;
14144 aStrBuf
.append( input
);
14146 CPPUNIT_ASSERT_MESSAGE
14148 "input Int64 0 and return OStringBuffer[0]+0",
14149 (aStrBuf
.toString() == expVal
&&
14150 aStrBuf
.getLength() == expVal
.getLength())
14157 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
14158 OString
expVal( kTestStr63
);
14159 sal_Int64 input
= -11;
14161 aStrBuf
.append( input
);
14163 CPPUNIT_ASSERT_MESSAGE
14165 "input Int64 -11 and return OStringBuffer[0]+(-11)",
14166 (aStrBuf
.toString() == expVal
&&
14167 aStrBuf
.getLength() == expVal
.getLength())
14174 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
14175 OString
expVal( kTestStr116
);
14176 sal_Int64 input
= SAL_CONST_INT64(9223372036854775807);
14177 aStrBuf
.append( input
);
14179 CPPUNIT_ASSERT_MESSAGE
14181 "input Int64 9223372036854775807 and return OStringBuffer[0]+9223372036854775807",
14182 (aStrBuf
.toString() == expVal
&&
14183 aStrBuf
.getLength() == expVal
.getLength())
14190 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
14191 OString
expVal( kTestStr117
);
14192 sal_Int64 input
= SAL_MIN_INT64
/*-9223372036854775808*/; // LLA: this is not the same :-( kNonSInt64Max;
14194 aStrBuf
.append( input
);
14196 bool bRes
= expVal
.equals( aStrBuf
.getStr() );
14197 CPPUNIT_ASSERT_MESSAGE
14199 "input Int64 -9223372036854775808 and return OStringBuffer[0]+(-9223372036854775808)",
14200 bRes
&& aStrBuf
.getLength() == expVal
.getLength()
14207 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
14208 OString
expVal( kTestStr60
);
14209 sal_Int64 input
= 11;
14211 aStrBuf
.append( input
);
14213 CPPUNIT_ASSERT_MESSAGE
14215 "input Int64 11 and return OStringBuffer[1]+11",
14216 (aStrBuf
.toString() == expVal
&&
14217 aStrBuf
.getLength() == expVal
.getLength())
14224 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
14225 OString
expVal( kTestStr66
);
14226 sal_Int64 input
= 0;
14228 aStrBuf
.append( input
);
14230 CPPUNIT_ASSERT_MESSAGE
14232 "input Int64 0 and return OStringBuffer[1]+0",
14233 (aStrBuf
.toString() == expVal
&&
14234 aStrBuf
.getLength() == expVal
.getLength())
14241 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
14242 OString
expVal( kTestStr67
);
14243 sal_Int64 input
= -11;
14245 aStrBuf
.append( input
);
14247 CPPUNIT_ASSERT_MESSAGE
14249 "input Int64 -11 and return OStringBuffer[1]+(-11)",
14250 (aStrBuf
.toString() == expVal
&&
14251 aStrBuf
.getLength() == expVal
.getLength())
14258 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
14259 OString
expVal( kTestStr118
);
14260 sal_Int64 input
= SAL_CONST_INT64(9223372036854775807);
14261 aStrBuf
.append( input
);
14263 CPPUNIT_ASSERT_MESSAGE
14265 "input Int64 9223372036854775807 and return OStringBuffer[1]+9223372036854775807",
14266 (aStrBuf
.toString() == expVal
&&
14267 aStrBuf
.getLength() == expVal
.getLength())
14274 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
14275 OString
expVal( kTestStr119
);
14276 sal_Int64 input
= SAL_MIN_INT64
; // LLA: this is not the same :-( kNonSInt64Max;
14278 aStrBuf
.append( input
);
14280 CPPUNIT_ASSERT_MESSAGE
14282 "input Int64 -9223372036854775808 and return OStringBuffer[1]+(-9223372036854775808)",
14283 (aStrBuf
.toString() == expVal
&&
14284 aStrBuf
.getLength() == expVal
.getLength())
14291 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
14292 OString
expVal( kTestStr60
);
14293 sal_Int64 input
= 11;
14295 aStrBuf
.append( input
);
14297 CPPUNIT_ASSERT_MESSAGE
14299 "input Int64 11 and return OStringBuffer[2]+11",
14300 (aStrBuf
.toString() == expVal
&&
14301 aStrBuf
.getLength() == expVal
.getLength())
14308 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
14309 OString
expVal( kTestStr66
);
14310 sal_Int64 input
= 0;
14312 aStrBuf
.append( input
);
14314 CPPUNIT_ASSERT_MESSAGE
14316 "input Int64 0 and return OUStringBuffer[2]+0",
14317 (aStrBuf
.toString() == expVal
&&
14318 aStrBuf
.getLength() == expVal
.getLength())
14325 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
14326 OString
expVal( kTestStr67
);
14327 sal_Int64 input
= -11;
14329 aStrBuf
.append( input
);
14331 CPPUNIT_ASSERT_MESSAGE
14333 "input Int64 -11 and return OUStringBuffer[2]+(-11)",
14334 (aStrBuf
.toString() == expVal
&&
14335 aStrBuf
.getLength() == expVal
.getLength())
14342 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
14343 OString
expVal( kTestStr118
);
14344 sal_Int64 input
= SAL_CONST_INT64(9223372036854775807);
14345 aStrBuf
.append( input
);
14347 CPPUNIT_ASSERT_MESSAGE
14349 "input Int64 9223372036854775807 and return OStringBuffer[2]+9223372036854775807",
14350 (aStrBuf
.toString() == expVal
&&
14351 aStrBuf
.getLength() == expVal
.getLength())
14358 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
14359 OString
expVal( kTestStr119
);
14360 sal_Int64 input
= SAL_MIN_INT64
; // LLA: this is not the same :-( kNonSInt64Max;
14362 aStrBuf
.append( input
);
14364 CPPUNIT_ASSERT_MESSAGE
14366 "input Int64 -9223372036854775808 and return OStringBuffer[2]+(-9223372036854775808)",
14367 (aStrBuf
.toString() == expVal
&&
14368 aStrBuf
.getLength() == expVal
.getLength())
14375 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
14376 OString
expVal( kTestStr60
);
14377 sal_Int64 input
= 11;
14379 aStrBuf
.append( input
);
14381 CPPUNIT_ASSERT_MESSAGE
14383 "input Int64 11 and return OStringBuffer[3]+11",
14384 (aStrBuf
.toString() == expVal
&&
14385 aStrBuf
.getLength() == expVal
.getLength())
14392 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
14393 OString
expVal( kTestStr66
);
14394 sal_Int64 input
= 0;
14396 aStrBuf
.append( input
);
14398 CPPUNIT_ASSERT_MESSAGE
14400 "input Int64 0 and return OStringBuffer[3]+0",
14401 (aStrBuf
.toString() == expVal
&&
14402 aStrBuf
.getLength() == expVal
.getLength())
14409 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
14410 OString
expVal( kTestStr67
);
14411 sal_Int64 input
= -11;
14413 aStrBuf
.append( input
);
14415 CPPUNIT_ASSERT_MESSAGE
14417 "input Int64 -11 and return OStringBuffer[3]+(-11)",
14418 (aStrBuf
.toString() == expVal
&&
14419 aStrBuf
.getLength() == expVal
.getLength())
14426 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
14427 OString
expVal( kTestStr118
);
14428 sal_Int64 input
= SAL_CONST_INT64(9223372036854775807);
14429 aStrBuf
.append( input
);
14431 CPPUNIT_ASSERT_MESSAGE
14433 "input Int64 9223372036854775807 and return OStringBuffer[3]+9223372036854775807",
14434 (aStrBuf
.toString() == expVal
&&
14435 aStrBuf
.getLength() == expVal
.getLength())
14442 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
14443 OString
expVal( kTestStr119
);
14444 sal_Int64 input
= SAL_MIN_INT64
; // LLA: this is not the same :-( kNonSInt64Max;
14446 aStrBuf
.append( input
);
14448 CPPUNIT_ASSERT_MESSAGE
14450 "input Int64 -9223372036854775808 and return OStringBuffer[3]+(-9223372036854775808)",
14451 (aStrBuf
.toString() == expVal
&&
14452 aStrBuf
.getLength() == expVal
.getLength())
14459 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
14460 OString
expVal( kTestStr61
);
14461 sal_Int64 input
= 11;
14463 aStrBuf
.append( input
);
14465 CPPUNIT_ASSERT_MESSAGE
14467 "input Int64 11 and return OStringBuffer[4]+11",
14468 (aStrBuf
.toString() == expVal
&&
14469 aStrBuf
.getLength() == expVal
.getLength())
14476 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
14477 OString
expVal( kTestStr70
);
14478 sal_Int64 input
= 0;
14480 aStrBuf
.append( input
);
14482 CPPUNIT_ASSERT_MESSAGE
14484 "input Int64 0 and return OStringBuffer[4]+0",
14485 (aStrBuf
.toString() == expVal
&&
14486 aStrBuf
.getLength() == expVal
.getLength())
14493 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
14494 OString
expVal( kTestStr71
);
14495 sal_Int64 input
= -11;
14497 aStrBuf
.append( input
);
14499 CPPUNIT_ASSERT_MESSAGE
14501 "input Int64 -11 and return OStringBuffer[4]+(-11)",
14502 (aStrBuf
.toString() == expVal
&&
14503 aStrBuf
.getLength() == expVal
.getLength())
14510 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
14511 OString
expVal( kTestStr120
);
14512 sal_Int64 input
= SAL_CONST_INT64(9223372036854775807);
14513 aStrBuf
.append( input
);
14515 CPPUNIT_ASSERT_MESSAGE
14517 "input Int64 9223372036854775807 and return OStringBuffer[4]+9223372036854775807",
14518 (aStrBuf
.toString() == expVal
&&
14519 aStrBuf
.getLength() == expVal
.getLength())
14526 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
14527 OString
expVal( kTestStr121
);
14528 sal_Int64 input
= SAL_MIN_INT64
; // LLA: this is not the same :-( kNonSInt64Max;
14530 aStrBuf
.append( input
);
14532 CPPUNIT_ASSERT_MESSAGE
14534 "input Int64 -9223372036854775808 and return OStringBuffer[4]+(-9223372036854775808)",
14535 (aStrBuf
.toString() == expVal
&&
14536 aStrBuf
.getLength() == expVal
.getLength())
14543 ::rtl::OStringBuffer
aStrBuf( kSInt64Max
);
14544 OString
expVal( kTestStr60
);
14545 sal_Int64 input
= 11;
14547 aStrBuf
.append( input
);
14549 CPPUNIT_ASSERT_MESSAGE
14551 "input Int64 11 and return OStringBuffer(kSInt64Max)+11",
14552 (aStrBuf
.toString() == expVal
&&
14553 aStrBuf
.getLength() == expVal
.getLength())
14560 ::rtl::OStringBuffer
aStrBuf( kSInt64Max
);
14561 OString
expVal( kTestStr66
);
14562 sal_Int64 input
= 0;
14564 aStrBuf
.append( input
);
14566 CPPUNIT_ASSERT_MESSAGE
14568 "input Int64 0 and return OStringBuffer(kSInt64Max)+0",
14569 (aStrBuf
.toString() == expVal
&&
14570 aStrBuf
.getLength() == expVal
.getLength())
14577 ::rtl::OStringBuffer
aStrBuf( kSInt64Max
);
14578 OString
expVal( kTestStr67
);
14579 sal_Int64 input
= -11;
14581 aStrBuf
.append( input
);
14583 CPPUNIT_ASSERT_MESSAGE
14585 "input Int64 -11 and return OStringBuffer(kSInt64Max)+(-11)",
14586 (aStrBuf
.toString() == expVal
&&
14587 aStrBuf
.getLength() == expVal
.getLength())
14594 ::rtl::OStringBuffer
aStrBuf( kSInt64Max
);
14595 OString
expVal( kTestStr118
);
14596 sal_Int64 input
= 9223372036854775807;
14598 aStrBuf
.append( input
);
14600 CPPUNIT_ASSERT_MESSAGE
14602 "input Int64 9223372036854775807 and return OStringBuffer(kSInt64Max)+9223372036854775807",
14603 (aStrBuf
.toString() == expVal
&&
14604 aStrBuf
.getLength() == expVal
.getLength())
14611 ::rtl::OStringBuffer
aStrBuf( kSInt64Max
);
14612 OString
expVal( kTestStr119
);
14613 sal_Int64 input
= SAL_MIN_INT64
; // LLA: this is not the same :-( kNonSInt64Max;
14615 aStrBuf
.append( input
);
14617 CPPUNIT_ASSERT_MESSAGE
14619 "input Int64 -9223372036854775808 and return OStringBuffer(kSInt64Max)+(-9223372036854775808)",
14620 (aStrBuf
.toString() == expVal
&&
14621 aStrBuf
.getLength() == expVal
.getLength())
14627 CPPUNIT_TEST_SUITE( append_007_Int64_defaultParam
);
14628 CPPUNIT_TEST( append_001
);
14629 CPPUNIT_TEST( append_002
);
14630 CPPUNIT_TEST( append_003
);
14631 CPPUNIT_TEST( append_004
);
14632 CPPUNIT_TEST( append_005
);
14633 CPPUNIT_TEST( append_006
);
14634 CPPUNIT_TEST( append_007
);
14635 CPPUNIT_TEST( append_008
);
14636 CPPUNIT_TEST( append_009
);
14637 CPPUNIT_TEST( append_010
);
14638 CPPUNIT_TEST( append_011
);
14639 CPPUNIT_TEST( append_012
);
14640 CPPUNIT_TEST( append_013
);
14641 CPPUNIT_TEST( append_014
);
14642 CPPUNIT_TEST( append_015
);
14643 CPPUNIT_TEST( append_016
);
14644 CPPUNIT_TEST( append_017
);
14645 CPPUNIT_TEST( append_018
);
14646 CPPUNIT_TEST( append_019
);
14647 CPPUNIT_TEST( append_020
);
14648 CPPUNIT_TEST( append_021
);
14649 CPPUNIT_TEST( append_022
);
14650 CPPUNIT_TEST( append_023
);
14651 CPPUNIT_TEST( append_024
);
14652 CPPUNIT_TEST( append_025
);
14654 CPPUNIT_TEST( append_026
);
14655 CPPUNIT_TEST( append_027
);
14656 CPPUNIT_TEST( append_028
);
14657 CPPUNIT_TEST( append_029
);
14658 CPPUNIT_TEST( append_030
);
14660 CPPUNIT_TEST_SUITE_END();
14663 // testing the method append( float f )
14665 class checkfloat
: public CppUnit::TestFixture
14668 bool checkIfStrBufContainAtPosTheFloat(rtl::OStringBuffer
const& _sStrBuf
, sal_Int32 _nLen
, float _nFloat
)
14670 OString sFloatValue
;
14671 sFloatValue
= OString::number(_nFloat
);
14673 OString
sBufferString(_sStrBuf
.getStr());
14674 sal_Int32 nPos
= sBufferString
.indexOf(sFloatValue
);
14675 if ( nPos
>= 0 && nPos
== _nLen
)
14683 class append_008_float
: public checkfloat
14685 OString
* arrOUS
[5];
14688 void setUp() SAL_OVERRIDE
14690 arrOUS
[0] = new OString( kTestStr7
);
14691 arrOUS
[1] = new OString( );
14692 arrOUS
[2] = new OString( kTestStr25
);
14693 arrOUS
[3] = new OString( "" );
14694 arrOUS
[4] = new OString( kTestStr28
);
14698 void tearDown() SAL_OVERRIDE
14700 delete arrOUS
[0]; delete arrOUS
[1]; delete arrOUS
[2];
14701 delete arrOUS
[3]; delete arrOUS
[4];
14706 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
14707 float input
= (float)atof("3.0");
14710 // the complex problem is here, that a float value is not really what we write.
14711 // So a 3.0 could also be 3 or 3.0 or 3.0000001 or 2.9999999
14712 // this has to be checked.
14713 sal_Int32 nLen
= aStrBuf
.getLength();
14714 aStrBuf
.append( input
);
14716 CPPUNIT_ASSERT_MESSAGE
14718 "arrOUS[0] append 3.0",
14719 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
14726 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
14727 float input
= (float)atof("3.5");
14729 sal_Int32 nLen
= aStrBuf
.getLength();
14730 aStrBuf
.append( input
);
14732 CPPUNIT_ASSERT_MESSAGE
14734 "arrOUS[0] append 3.5",
14735 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
14742 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
14743 float input
= (float)atof("3.0625");
14745 sal_Int32 nLen
= aStrBuf
.getLength();
14746 aStrBuf
.append( input
);
14748 CPPUNIT_ASSERT_MESSAGE
14750 "arrOUS[0] append 3.0625",
14751 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
14758 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
14759 float input
= (float)atof("3.502525");
14761 sal_Int32 nLen
= aStrBuf
.getLength();
14762 aStrBuf
.append( input
);
14764 CPPUNIT_ASSERT_MESSAGE
14766 "arrOUS[0] append 3.502525",
14767 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
14774 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
14775 float input
= (float)atof("3.141592");
14777 sal_Int32 nLen
= aStrBuf
.getLength();
14778 aStrBuf
.append( input
);
14780 CPPUNIT_ASSERT_MESSAGE
14782 "arrOUS[0] append 3.141592",
14783 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
14790 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
14791 float input
= (float)atof("3.5025255");
14793 sal_Int32 nLen
= aStrBuf
.getLength();
14794 aStrBuf
.append( input
);
14796 CPPUNIT_ASSERT_MESSAGE
14798 "arrOUS[0] append 3.5025255",
14799 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
14806 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
14807 float input
= (float)atof("3.00390625");
14809 sal_Int32 nLen
= aStrBuf
.getLength();
14810 aStrBuf
.append( input
);
14812 CPPUNIT_ASSERT_MESSAGE
14814 "arrOUS[0] append 3.0039062",
14815 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
14822 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
14823 float input
= (float)atof("3.0");
14825 sal_Int32 nLen
= aStrBuf
.getLength();
14826 aStrBuf
.append( input
);
14828 CPPUNIT_ASSERT_MESSAGE
14830 "arrOUS[1] append 3.0",
14831 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
14838 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
14839 float input
= (float)atof("3.5");
14841 sal_Int32 nLen
= aStrBuf
.getLength();
14842 aStrBuf
.append( input
);
14844 CPPUNIT_ASSERT_MESSAGE
14846 "arrOUS[1] append 3.5",
14847 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
14854 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
14855 float input
= (float)atof("3.0625");
14857 sal_Int32 nLen
= aStrBuf
.getLength();
14858 aStrBuf
.append( input
);
14860 CPPUNIT_ASSERT_MESSAGE
14862 "arrOUS[1] append 3.0625",
14863 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
14870 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
14871 float input
= (float)atof("3.502525");
14873 sal_Int32 nLen
= aStrBuf
.getLength();
14874 aStrBuf
.append( input
);
14876 CPPUNIT_ASSERT_MESSAGE
14878 "arrOUS[1] append 3.502525",
14879 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
14886 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
14887 float input
= (float)atof("3.141592");
14889 sal_Int32 nLen
= aStrBuf
.getLength();
14890 aStrBuf
.append( input
);
14892 CPPUNIT_ASSERT_MESSAGE
14894 "arrOUS[1] append 3.141592",
14895 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
14902 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
14903 float input
= (float)atof("3.5025255");
14905 sal_Int32 nLen
= aStrBuf
.getLength();
14906 aStrBuf
.append( input
);
14908 CPPUNIT_ASSERT_MESSAGE
14910 "arrOUS[1] append 3.5025255",
14911 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
14918 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
14919 float input
= (float)atof("3.00390625");
14921 sal_Int32 nLen
= aStrBuf
.getLength();
14922 aStrBuf
.append( input
);
14924 CPPUNIT_ASSERT_MESSAGE
14926 "arrOUS[1] append 3.0039062",
14927 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
14934 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
14935 float input
= (float)atof("3.0");
14937 sal_Int32 nLen
= aStrBuf
.getLength();
14938 aStrBuf
.append( input
);
14940 CPPUNIT_ASSERT_MESSAGE
14942 "arrOUS[2] append 3.0",
14943 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
14950 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
14951 float input
= (float)atof("3.5");
14953 sal_Int32 nLen
= aStrBuf
.getLength();
14954 aStrBuf
.append( input
);
14956 CPPUNIT_ASSERT_MESSAGE
14958 "arrOUS[2] append 3.5",
14959 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
14966 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
14967 float input
= (float)atof("3.0625");
14969 sal_Int32 nLen
= aStrBuf
.getLength();
14970 aStrBuf
.append( input
);
14972 CPPUNIT_ASSERT_MESSAGE
14974 "arrOUS[2] append 3.0625",
14975 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
14982 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
14983 float input
= (float)atof("3.502525");
14985 sal_Int32 nLen
= aStrBuf
.getLength();
14986 aStrBuf
.append( input
);
14988 CPPUNIT_ASSERT_MESSAGE
14990 "arrOUS[2] append 3.502525",
14991 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
14998 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
14999 float input
= (float)atof("3.141592");
15001 sal_Int32 nLen
= aStrBuf
.getLength();
15002 aStrBuf
.append( input
);
15004 CPPUNIT_ASSERT_MESSAGE
15006 "arrOUS[2] append 3.141592",
15007 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15014 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
15015 float input
= (float)atof("3.5025255");
15017 sal_Int32 nLen
= aStrBuf
.getLength();
15018 aStrBuf
.append( input
);
15020 CPPUNIT_ASSERT_MESSAGE
15022 "arrOUS[2] append 3.5025255",
15023 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15030 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
15031 float input
= (float)atof("3.00390625");
15033 sal_Int32 nLen
= aStrBuf
.getLength();
15034 aStrBuf
.append( input
);
15036 CPPUNIT_ASSERT_MESSAGE
15038 "arrOUS[2] append 3.0039062",
15039 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15046 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
15047 float input
= (float)atof("3.0");
15049 sal_Int32 nLen
= aStrBuf
.getLength();
15050 aStrBuf
.append( input
);
15052 CPPUNIT_ASSERT_MESSAGE
15054 "arrOUS[3] append 3.0",
15055 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15062 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
15063 float input
= (float)atof("3.5");
15065 sal_Int32 nLen
= aStrBuf
.getLength();
15066 aStrBuf
.append( input
);
15068 CPPUNIT_ASSERT_MESSAGE
15070 "arrOUS[3] append 3.5",
15071 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15078 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
15079 float input
= (float)atof("3.0625");
15081 sal_Int32 nLen
= aStrBuf
.getLength();
15082 aStrBuf
.append( input
);
15084 CPPUNIT_ASSERT_MESSAGE
15086 "arrOUS[3] append 3.0625",
15087 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15094 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
15095 float input
= (float)atof("3.502525");
15097 sal_Int32 nLen
= aStrBuf
.getLength();
15098 aStrBuf
.append( input
);
15100 CPPUNIT_ASSERT_MESSAGE
15102 "arrOUS[3] append 3.502525",
15103 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15111 ::rtl::OStringBuffer
aStrBuf( kSInt32Max
);
15112 float input
= (float)atof("3.0");
15114 sal_Int32 nLen
= aStrBuf
.getLength();
15115 aStrBuf
.append( input
);
15117 CPPUNIT_ASSERT_MESSAGE
15119 "OStringBuffer( kSInt32Max ) append 3.0",
15120 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15127 ::rtl::OStringBuffer
aStrBuf( kSInt32Max
);
15128 float input
= (float)atof("3.5");
15130 sal_Int32 nLen
= aStrBuf
.getLength();
15131 aStrBuf
.append( input
);
15133 CPPUNIT_ASSERT_MESSAGE
15135 "OStringBuffer( kSInt32Max ) append 3.5",
15136 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15143 ::rtl::OStringBuffer
aStrBuf( kSInt32Max
);
15144 float input
= (float)atof("3.0625");
15146 sal_Int32 nLen
= aStrBuf
.getLength();
15147 aStrBuf
.append( input
);
15149 CPPUNIT_ASSERT_MESSAGE
15151 "OStringBuffer( kSInt32Max ) append 3.0625",
15152 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15159 ::rtl::OStringBuffer
aStrBuf( kSInt32Max
);
15160 float input
= (float)atof("3.502525");
15162 sal_Int32 nLen
= aStrBuf
.getLength();
15163 aStrBuf
.append( input
);
15165 CPPUNIT_ASSERT_MESSAGE
15167 "OStringBuffer( kSInt32Max ) append 3.502525",
15168 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15175 ::rtl::OStringBuffer
aStrBuf( kSInt32Max
);
15176 float input
= (float)atof("3.141592");
15178 sal_Int32 nLen
= aStrBuf
.getLength();
15179 aStrBuf
.append( input
);
15181 CPPUNIT_ASSERT_MESSAGE
15183 "OStringBuffer( kSInt32Max ) append 3.141592",
15184 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15191 ::rtl::OStringBuffer
aStrBuf( kSInt32Max
);
15192 float input
= (float)atof("3.5025255");
15194 sal_Int32 nLen
= aStrBuf
.getLength();
15195 aStrBuf
.append( input
);
15197 CPPUNIT_ASSERT_MESSAGE
15199 "OStringBuffer( kSInt32Max ) append 3.5025255",
15200 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15207 ::rtl::OStringBuffer
aStrBuf( kSInt32Max
);
15208 float input
= (float)atof("3.00390625");
15210 sal_Int32 nLen
= aStrBuf
.getLength();
15211 aStrBuf
.append( input
);
15213 CPPUNIT_ASSERT_MESSAGE
15215 "OStringBuffer( kSInt32Max ) append 3.0039062",
15216 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15222 CPPUNIT_TEST_SUITE( append_008_float
);
15223 CPPUNIT_TEST( append_001
);
15224 CPPUNIT_TEST( append_002
);
15225 CPPUNIT_TEST( append_003
);
15226 CPPUNIT_TEST( append_004
);
15227 CPPUNIT_TEST( append_005
);
15228 CPPUNIT_TEST( append_006
);
15229 CPPUNIT_TEST( append_007
);
15230 CPPUNIT_TEST( append_008
);
15231 CPPUNIT_TEST( append_009
);
15232 CPPUNIT_TEST( append_010
);
15233 CPPUNIT_TEST( append_011
);
15234 CPPUNIT_TEST( append_012
);
15235 CPPUNIT_TEST( append_013
);
15236 CPPUNIT_TEST( append_014
);
15237 CPPUNIT_TEST( append_015
);
15238 CPPUNIT_TEST( append_016
);
15239 CPPUNIT_TEST( append_017
);
15240 CPPUNIT_TEST( append_018
);
15241 CPPUNIT_TEST( append_019
);
15242 CPPUNIT_TEST( append_020
);
15243 CPPUNIT_TEST( append_021
);
15244 CPPUNIT_TEST( append_022
);
15245 CPPUNIT_TEST( append_023
);
15246 CPPUNIT_TEST( append_024
);
15247 CPPUNIT_TEST( append_025
);
15249 CPPUNIT_TEST( append_026
);
15250 CPPUNIT_TEST( append_027
);
15251 CPPUNIT_TEST( append_028
);
15252 CPPUNIT_TEST( append_029
);
15253 CPPUNIT_TEST( append_030
);
15255 CPPUNIT_TEST_SUITE_END();
15258 // testing the method append( float f ) for negative value
15260 class append_008_Float_Negative
: public checkfloat
15262 OString
* arrOUS
[5];
15265 void setUp() SAL_OVERRIDE
15267 arrOUS
[0] = new OString( kTestStr7
);
15268 arrOUS
[1] = new OString( );
15269 arrOUS
[2] = new OString( kTestStr25
);
15270 arrOUS
[3] = new OString( "" );
15271 arrOUS
[4] = new OString( kTestStr28
);
15275 void tearDown() SAL_OVERRIDE
15277 delete arrOUS
[0]; delete arrOUS
[1]; delete arrOUS
[2];
15278 delete arrOUS
[3]; delete arrOUS
[4];
15283 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
15284 float input
= (float)atof("-3.0");
15286 sal_Int32 nLen
= aStrBuf
.getLength();
15287 aStrBuf
.append( input
);
15289 CPPUNIT_ASSERT_MESSAGE
15291 "arrOUS[0] append -3.0",
15292 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15299 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
15300 float input
= (float)atof("-3.5");
15302 sal_Int32 nLen
= aStrBuf
.getLength();
15303 aStrBuf
.append( input
);
15305 CPPUNIT_ASSERT_MESSAGE
15307 "arrOUS[0] append -3.5",
15308 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15315 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
15316 float input
= (float)atof("-3.0625");
15318 sal_Int32 nLen
= aStrBuf
.getLength();
15319 aStrBuf
.append( input
);
15321 CPPUNIT_ASSERT_MESSAGE
15323 "arrOUS[0] append -3.0625",
15324 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15331 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
15332 float input
= (float)atof("-3.502525");
15334 sal_Int32 nLen
= aStrBuf
.getLength();
15335 aStrBuf
.append( input
);
15337 CPPUNIT_ASSERT_MESSAGE
15339 "arrOUS[0] append -3.502525",
15340 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15347 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
15348 float input
= (float)atof("-3.141592");
15350 sal_Int32 nLen
= aStrBuf
.getLength();
15351 aStrBuf
.append( input
);
15353 CPPUNIT_ASSERT_MESSAGE
15355 "arrOUS[0] append -3.141592",
15356 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15363 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
15364 float input
= (float)atof("-3.5025255");
15366 sal_Int32 nLen
= aStrBuf
.getLength();
15367 aStrBuf
.append( input
);
15369 CPPUNIT_ASSERT_MESSAGE
15371 "arrOUS[0] append -3.5025255",
15372 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15379 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
15380 float input
= (float)atof("-3.00390625");
15382 sal_Int32 nLen
= aStrBuf
.getLength();
15383 aStrBuf
.append( input
);
15385 CPPUNIT_ASSERT_MESSAGE
15387 "arrOUS[0] append -3.0039062",
15388 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15395 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
15396 float input
= (float)atof("-3.0");
15398 sal_Int32 nLen
= aStrBuf
.getLength();
15399 aStrBuf
.append( input
);
15401 CPPUNIT_ASSERT_MESSAGE
15403 "arrOUS[1] append -3.0",
15404 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15411 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
15412 float input
= (float)atof("-3.5");
15414 sal_Int32 nLen
= aStrBuf
.getLength();
15415 aStrBuf
.append( input
);
15417 CPPUNIT_ASSERT_MESSAGE
15419 "arrOUS[1] append -3.5",
15420 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15427 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
15428 float input
= (float)atof("-3.0625");
15430 sal_Int32 nLen
= aStrBuf
.getLength();
15431 aStrBuf
.append( input
);
15433 CPPUNIT_ASSERT_MESSAGE
15435 "arrOUS[1] append -3.0625",
15436 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15443 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
15444 float input
= (float)atof("-3.502525");
15446 sal_Int32 nLen
= aStrBuf
.getLength();
15447 aStrBuf
.append( input
);
15449 CPPUNIT_ASSERT_MESSAGE
15451 "arrOUS[1] append -3.502525",
15452 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15459 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
15460 float input
= (float)atof("-3.141592");
15462 sal_Int32 nLen
= aStrBuf
.getLength();
15463 aStrBuf
.append( input
);
15465 CPPUNIT_ASSERT_MESSAGE
15467 "arrOUS[1] append -3.141592",
15468 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15475 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
15476 float input
= (float)atof("-3.5025255");
15478 sal_Int32 nLen
= aStrBuf
.getLength();
15479 aStrBuf
.append( input
);
15481 CPPUNIT_ASSERT_MESSAGE
15483 "arrOUS[1] append -3.5025255",
15484 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15491 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[1] );
15492 float input
= (float)atof("-3.00390625");
15494 sal_Int32 nLen
= aStrBuf
.getLength();
15495 aStrBuf
.append( input
);
15497 CPPUNIT_ASSERT_MESSAGE
15499 "arrOUS[1] append -3.0039062",
15500 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15507 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
15508 float input
= (float)atof("-3.0");
15510 sal_Int32 nLen
= aStrBuf
.getLength();
15511 aStrBuf
.append( input
);
15513 CPPUNIT_ASSERT_MESSAGE
15515 "arrOUS[2] append -3.0",
15516 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15523 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
15524 float input
= (float)atof("-3.5");
15526 sal_Int32 nLen
= aStrBuf
.getLength();
15527 aStrBuf
.append( input
);
15529 CPPUNIT_ASSERT_MESSAGE
15531 "arrOUS[2] append -3.5",
15532 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15539 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
15540 float input
= (float)atof("-3.0625");
15542 sal_Int32 nLen
= aStrBuf
.getLength();
15543 aStrBuf
.append( input
);
15545 CPPUNIT_ASSERT_MESSAGE
15547 "arrOUS[2] append -3.0625",
15548 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15555 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
15556 float input
= (float)atof("-3.502525");
15558 sal_Int32 nLen
= aStrBuf
.getLength();
15559 aStrBuf
.append( input
);
15561 CPPUNIT_ASSERT_MESSAGE
15563 "arrOUS[2] append -3.502525",
15564 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15571 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
15572 float input
= (float)atof("-3.141592");
15574 sal_Int32 nLen
= aStrBuf
.getLength();
15575 aStrBuf
.append( input
);
15577 CPPUNIT_ASSERT_MESSAGE
15579 "arrOUS[2] append -3.141592",
15580 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15587 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
15588 float input
= (float)atof("-3.5025255");
15590 sal_Int32 nLen
= aStrBuf
.getLength();
15591 aStrBuf
.append( input
);
15593 CPPUNIT_ASSERT_MESSAGE
15595 "arrOUS[2] append -3.5025255",
15596 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15603 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[2] );
15604 float input
= (float)atof("-3.00390625");
15606 sal_Int32 nLen
= aStrBuf
.getLength();
15607 aStrBuf
.append( input
);
15609 CPPUNIT_ASSERT_MESSAGE
15611 "arrOUS[2] append -3.0039062",
15612 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15619 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
15620 float input
= (float)atof("-3.0");
15622 sal_Int32 nLen
= aStrBuf
.getLength();
15623 aStrBuf
.append( input
);
15625 CPPUNIT_ASSERT_MESSAGE
15627 "arrOUS[3] append -3.0",
15628 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15635 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
15636 float input
= (float)atof("-3.5");
15638 sal_Int32 nLen
= aStrBuf
.getLength();
15639 aStrBuf
.append( input
);
15641 CPPUNIT_ASSERT_MESSAGE
15643 "arrOUS[3] append -3.5",
15644 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15651 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
15652 float input
= (float)atof("-3.0625");
15654 sal_Int32 nLen
= aStrBuf
.getLength();
15655 aStrBuf
.append( input
);
15657 CPPUNIT_ASSERT_MESSAGE
15659 "arrOUS[3] append -3.0625",
15660 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15667 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[3] );
15668 float input
= (float)atof("-3.502525");
15670 sal_Int32 nLen
= aStrBuf
.getLength();
15671 aStrBuf
.append( input
);
15673 CPPUNIT_ASSERT_MESSAGE
15675 "arrOUS[3] append -3.502525",
15676 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15684 ::rtl::OStringBuffer
aStrBuf( kSInt32Max
);
15685 float input
= (float)atof("-3.0");
15687 sal_Int32 nLen
= aStrBuf
.getLength();
15688 aStrBuf
.append( input
);
15690 CPPUNIT_ASSERT_MESSAGE
15692 "OStringBuffer( kSInt32Max ) append -3.0",
15693 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15700 ::rtl::OStringBuffer
aStrBuf( kSInt32Max
);
15701 float input
= (float)atof("-3.5");
15703 sal_Int32 nLen
= aStrBuf
.getLength();
15704 aStrBuf
.append( input
);
15706 CPPUNIT_ASSERT_MESSAGE
15708 "OStringBuffer( kSInt32Max ) append -3.5",
15709 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15716 ::rtl::OStringBuffer
aStrBuf( kSInt32Max
);
15717 float input
= (float)atof("-3.0625");
15719 sal_Int32 nLen
= aStrBuf
.getLength();
15720 aStrBuf
.append( input
);
15722 CPPUNIT_ASSERT_MESSAGE
15724 "OStringBuffer( kSInt32Max ) append -3.0625",
15725 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15732 ::rtl::OStringBuffer
aStrBuf( kSInt32Max
);
15733 float input
= (float)atof("-3.502525");
15735 sal_Int32 nLen
= aStrBuf
.getLength();
15736 aStrBuf
.append( input
);
15738 CPPUNIT_ASSERT_MESSAGE
15740 "OStringBuffer( kSInt32Max ) append -3.502525",
15741 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15748 ::rtl::OStringBuffer
aStrBuf( kSInt32Max
);
15749 float input
= (float)atof("-3.141592");
15751 sal_Int32 nLen
= aStrBuf
.getLength();
15752 aStrBuf
.append( input
);
15754 CPPUNIT_ASSERT_MESSAGE
15756 "OStringBuffer( kSInt32Max ) append -3.141592",
15757 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15764 ::rtl::OStringBuffer
aStrBuf( kSInt32Max
);
15765 float input
= (float)atof("-3.5025255");
15767 sal_Int32 nLen
= aStrBuf
.getLength();
15768 aStrBuf
.append( input
);
15770 CPPUNIT_ASSERT_MESSAGE
15772 "OStringBuffer( kSInt32Max ) append -3.5025255",
15773 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15780 ::rtl::OStringBuffer
aStrBuf( kSInt32Max
);
15781 float input
= (float)atof("-3.00390625");
15783 sal_Int32 nLen
= aStrBuf
.getLength();
15784 aStrBuf
.append( input
);
15786 CPPUNIT_ASSERT_MESSAGE
15788 "OStringBuffer( kSInt32Max ) append -3.0039062",
15789 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
15795 CPPUNIT_TEST_SUITE( append_008_Float_Negative
);
15796 CPPUNIT_TEST( append_001
);
15797 CPPUNIT_TEST( append_002
);
15798 CPPUNIT_TEST( append_003
);
15799 CPPUNIT_TEST( append_004
);
15800 CPPUNIT_TEST( append_005
);
15801 CPPUNIT_TEST( append_006
);
15802 CPPUNIT_TEST( append_007
);
15803 CPPUNIT_TEST( append_008
);
15804 CPPUNIT_TEST( append_009
);
15805 CPPUNIT_TEST( append_010
);
15806 CPPUNIT_TEST( append_011
);
15807 CPPUNIT_TEST( append_012
);
15808 CPPUNIT_TEST( append_013
);
15809 CPPUNIT_TEST( append_014
);
15810 CPPUNIT_TEST( append_015
);
15811 CPPUNIT_TEST( append_016
);
15812 CPPUNIT_TEST( append_017
);
15813 CPPUNIT_TEST( append_018
);
15814 CPPUNIT_TEST( append_019
);
15815 CPPUNIT_TEST( append_020
);
15816 CPPUNIT_TEST( append_021
);
15817 CPPUNIT_TEST( append_022
);
15818 CPPUNIT_TEST( append_023
);
15819 CPPUNIT_TEST( append_024
);
15820 CPPUNIT_TEST( append_025
);
15822 CPPUNIT_TEST( append_026
);
15823 CPPUNIT_TEST( append_027
);
15824 CPPUNIT_TEST( append_028
);
15825 CPPUNIT_TEST( append_029
);
15826 CPPUNIT_TEST( append_030
);
15828 CPPUNIT_TEST_SUITE_END();
15831 // testing the method append( double d )
15833 class checkdouble
: public CppUnit::TestFixture
15836 bool checkIfStrBufContainAtPosTheDouble(rtl::OStringBuffer
const& _sStrBuf
, sal_Int32 _nLen
, double _nDouble
)
15838 OString sDoubleValue
;
15839 sDoubleValue
= OString::number(_nDouble
);
15841 OString
sBufferString(_sStrBuf
.getStr());
15842 sal_Int32 nPos
= sBufferString
.indexOf(sDoubleValue
);
15843 if ( nPos
>= 0 && nPos
== _nLen
)
15851 class append_009_double
: public checkdouble
15853 OString
* arrOUS
[5];
15856 void setUp() SAL_OVERRIDE
15858 arrOUS
[0] = new OString( kTestStr7
);
15859 arrOUS
[1] = new OString( );
15860 arrOUS
[2] = new OString( kTestStr25
);
15861 arrOUS
[3] = new OString( "" );
15862 arrOUS
[4] = new OString( kTestStr28
);
15866 void tearDown() SAL_OVERRIDE
15868 delete arrOUS
[0]; delete arrOUS
[1]; delete arrOUS
[2];
15869 delete arrOUS
[3]; delete arrOUS
[4];
15874 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
15875 double input
= atof("3.0");
15877 sal_Int32 nLen
= aStrBuf
.getLength();
15878 aStrBuf
.append( input
);
15880 CPPUNIT_ASSERT_MESSAGE
15882 "arrOUS[0] append 3.0",
15883 checkIfStrBufContainAtPosTheDouble(aStrBuf
, nLen
, input
)
15890 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
15891 double input
= atof("3.141592653589793238462643");
15893 sal_Int32 nLen
= aStrBuf
.getLength();
15894 aStrBuf
.append( input
);
15896 CPPUNIT_ASSERT_MESSAGE
15898 "arrOUS[4] append 3.141592653589793238462643",
15899 checkIfStrBufContainAtPosTheDouble(aStrBuf
, nLen
, input
)
15904 CPPUNIT_TEST_SUITE( append_009_double
);
15905 CPPUNIT_TEST( append_001
);
15906 CPPUNIT_TEST( append_035
);
15907 CPPUNIT_TEST_SUITE_END();
15910 // testing the method append( double f ) for negative value
15912 class append_009_Double_Negative
: public checkdouble
15914 OString
* arrOUS
[5];
15917 void setUp() SAL_OVERRIDE
15919 arrOUS
[0] = new OString( kTestStr7
);
15920 arrOUS
[1] = new OString( );
15921 arrOUS
[2] = new OString( kTestStr25
);
15922 arrOUS
[3] = new OString( "" );
15923 arrOUS
[4] = new OString( kTestStr28
);
15927 void tearDown() SAL_OVERRIDE
15929 delete arrOUS
[0]; delete arrOUS
[1]; delete arrOUS
[2];
15930 delete arrOUS
[3]; delete arrOUS
[4];
15935 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[0] );
15936 double input
= atof("-3.0");
15938 sal_Int32 nLen
= aStrBuf
.getLength();
15939 aStrBuf
.append( input
);
15941 CPPUNIT_ASSERT_MESSAGE
15943 "arrOUS[0] append -3.0",
15944 checkIfStrBufContainAtPosTheDouble(aStrBuf
, nLen
, input
)
15951 ::rtl::OStringBuffer
aStrBuf( *arrOUS
[4] );
15952 double input
= atof("-3.141592653589793238462643");
15954 sal_Int32 nLen
= aStrBuf
.getLength();
15955 aStrBuf
.append( input
);
15957 CPPUNIT_ASSERT_MESSAGE
15959 "arrOUS[4] append -3.141592653589793238462643",
15960 checkIfStrBufContainAtPosTheDouble(aStrBuf
, nLen
, input
)
15965 CPPUNIT_TEST_SUITE( append_009_Double_Negative
);
15966 CPPUNIT_TEST( append_001
);
15967 CPPUNIT_TEST( append_035
);
15968 CPPUNIT_TEST_SUITE_END();
15971 class AppendUninitialized
: public CppUnit::TestFixture
{
15975 void testNonEmpty();
15979 CPPUNIT_TEST_SUITE(AppendUninitialized
);
15980 CPPUNIT_TEST(testEmpty
);
15981 CPPUNIT_TEST(testNonEmpty
);
15982 CPPUNIT_TEST(testZero
);
15983 CPPUNIT_TEST_SUITE_END();
15986 void AppendUninitialized::testEmpty() {
15988 CPPUNIT_ASSERT_EQUAL(sal_Int32(0), s
.getLength());
15989 char * p
= s
.appendUninitialized(5);
15990 CPPUNIT_ASSERT_EQUAL(
15991 static_cast<void const *>(s
.getStr()),
15992 static_cast<void const *>(p
));
15993 CPPUNIT_ASSERT_EQUAL(sal_Int32(5), s
.getLength());
15996 void AppendUninitialized::testNonEmpty() {
15997 OStringBuffer
s("ab");
15998 CPPUNIT_ASSERT_EQUAL(sal_Int32(2), s
.getLength());
15999 char * p
= s
.appendUninitialized(5);
16000 CPPUNIT_ASSERT_EQUAL(
16001 static_cast<void const *>(s
.getStr() + 2),
16002 static_cast<void const *>(p
));
16003 CPPUNIT_ASSERT_EQUAL(sal_Int32(7), s
.getLength());
16006 void AppendUninitialized::testZero() {
16008 char * p
= s
.appendUninitialized(0);
16009 CPPUNIT_ASSERT_EQUAL(
16010 static_cast<void const *>(s
.getStr()),
16011 static_cast<void const *>(p
));
16012 CPPUNIT_ASSERT_EQUAL(sal_Int32(0), s
.getLength());
16014 } // namespace rtl_OStringBuffer
16016 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::ctors
);
16017 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::makeStringAndClear
);
16018 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::getLength
);
16019 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::getCapacity
);
16020 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::ensureCapacity
);
16021 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::setLength
);
16022 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::csuc
);
16023 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::getStr
);
16024 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_001
);
16025 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_002
);
16026 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_003
);
16027 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_004
);
16028 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_005
);
16029 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_006_Int32
);
16030 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_006_Int32_Bounderies
);
16031 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_006_Int32_Negative
);
16032 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_006_Int32_WrongRadix
);
16033 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_006_Int32_defaultParam
);
16034 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_007_Int64
);
16035 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_007_Int64_Bounderies
);
16036 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_007_Int64_Negative
);
16037 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_007_Int64_WrongRadix
);
16038 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_007_Int64_defaultParam
);
16039 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_008_float
);
16040 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_008_Float_Negative
);
16041 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_009_double
);
16042 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_009_Double_Negative
);
16043 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::AppendUninitialized
);
16044 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::remove
);
16046 CPPUNIT_PLUGIN_IMPLEMENT();
16048 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */