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>
30 // This file contains cppunit tests for the
31 // OString and OStringBuffer classes
33 // testing constructors
34 namespace rtl_OStringBuffer
36 class ctors
: public CppUnit::TestFixture
42 OStringBuffer aStrBuf
;
43 const char* pStr
= aStrBuf
.getStr();
45 CPPUNIT_ASSERT_MESSAGE
47 "New OStringBuffer containing no characters",
50 CPPUNIT_ASSERT_EQUAL_MESSAGE
52 "New OStringBuffer containing no characters",
55 CPPUNIT_ASSERT_EQUAL_MESSAGE
57 "New OStringBuffer containing no characters",
58 sal_Int32(16), aStrBuf
.getCapacity()
64 OString
aStrtmp( kTestStr1
);
65 OStringBuffer
aStrBuftmp( aStrtmp
);
66 OStringBuffer
aStrBuf( aStrBuftmp
);
67 // sal_Bool res = cmpstr(aStrBuftmp.getStr(),aStrBuf.getStr());
69 sal_Int32 nLenStrBuftmp
= aStrBuftmp
.getLength();
71 OString
sStr(aStrBuftmp
.getStr());
72 bool res
= aStrtmp
== sStr
;
74 CPPUNIT_ASSERT_EQUAL_MESSAGE
76 "New OStringBuffer from another OStringBuffer",
77 nLenStrBuftmp
, aStrBuf
.getLength()
79 CPPUNIT_ASSERT_EQUAL_MESSAGE
81 "New OStringBuffer from another OStringBuffer",
82 aStrBuftmp
.getCapacity(), aStrBuf
.getCapacity()
84 CPPUNIT_ASSERT_MESSAGE
86 "New OStringBuffer from another OStringBuffer",
94 OStringBuffer
aStrBuf1(kTestStr2Len
);
95 OStringBuffer
aStrBuf2(0);
97 const char* pStr1
= aStrBuf1
.getStr();
98 const char* pStr2
= aStrBuf2
.getStr();
100 CPPUNIT_ASSERT_MESSAGE
102 "New OStringBuffer containing no characters and contain assigned capacity",
105 CPPUNIT_ASSERT_EQUAL_MESSAGE
107 "New OStringBuffer containing no characters and contain assigned capacity",
110 CPPUNIT_ASSERT_EQUAL_MESSAGE
112 "New OStringBuffer containing no characters and contain assigned capacity",
113 kTestStr2Len
, aStrBuf1
.getCapacity()
115 CPPUNIT_ASSERT_MESSAGE
117 "New OStringBuffer containing no characters and contain assigned capacity",
120 CPPUNIT_ASSERT_EQUAL_MESSAGE
122 "New OStringBuffer containing no characters and contain assigned capacity",
125 CPPUNIT_ASSERT_EQUAL_MESSAGE
127 "New OStringBuffer containing no characters and contain assigned capacity",
128 sal_Int32(0), aStrBuf2
.getCapacity()
135 OString
aStrtmp( kTestStr1
);
136 OStringBuffer
aStrBuf( aStrtmp
);
137 sal_Int32 leg
= aStrBuf
.getLength();
139 CPPUNIT_ASSERT_EQUAL_MESSAGE
141 "New OStringBuffer from OString",
142 aStrtmp
, OString(aStrBuf
.getStr())
144 CPPUNIT_ASSERT_EQUAL_MESSAGE
146 "New OStringBuffer from OString",
147 aStrtmp
.pData
->length
, leg
149 CPPUNIT_ASSERT_EQUAL_MESSAGE
151 "New OStringBuffer from OString",
152 leg
+16, aStrBuf
.getCapacity()
159 auto dummy
= b1
.makeStringAndClear();
161 OStringBuffer
b2(b1
);
167 //pass in a const char*, get a temp
169 OStringBuffer
aStrBuf(kTestStr1
);
170 sal_Int32 leg
= aStrBuf
.getLength();
172 CPPUNIT_ASSERT_EQUAL_MESSAGE
174 "New OStringBuffer from const char*",
175 rtl_str_getLength(kTestStr1
), leg
177 CPPUNIT_ASSERT_EQUAL_MESSAGE
179 "New OStringBuffer from const char*",
180 leg
+16, aStrBuf
.getCapacity()
184 CPPUNIT_TEST_SUITE(ctors
);
185 CPPUNIT_TEST(ctor_001
);
186 CPPUNIT_TEST(ctor_002
);
187 CPPUNIT_TEST(ctor_003
);
188 CPPUNIT_TEST(ctor_004
);
189 CPPUNIT_TEST(ctor_005
);
190 CPPUNIT_TEST(ctor_006
);
191 CPPUNIT_TEST_SUITE_END();
194 class makeStringAndClear
: public CppUnit::TestFixture
199 void setUp() override
201 arrOUS
[0] = OString( kTestStr1
);
202 arrOUS
[1] = OString( kTestStr14
);
203 arrOUS
[2] = OString( kTestStr25
);
204 arrOUS
[3] = OString( kTestStr27
);
205 arrOUS
[4] = OString( kTestStr29
);
206 arrOUS
[5] = OString( "\0", 1 );
210 void makeStringAndClear_001()
212 OStringBuffer aStrBuf1
;
214 bool lastRes
= aStrBuf1
.makeStringAndClear().isEmpty();
216 CPPUNIT_ASSERT_MESSAGE
218 "two empty strings(def. constructor)",
221 CPPUNIT_ASSERT_EQUAL_MESSAGE
223 "two empty strings(def. constructor)",
224 sal_Int32(0), aStrBuf1
.getCapacity()
226 CPPUNIT_ASSERT_EQUAL_MESSAGE
228 "two empty strings(def. constructor)",
229 '\0', *(aStrBuf1
.getStr())
234 void makeStringAndClear_002()
236 OStringBuffer
aStrBuf2(26);
238 bool lastRes
= aStrBuf2
.makeStringAndClear().isEmpty();
240 CPPUNIT_ASSERT_MESSAGE
242 "two empty strings(with an argu)",
245 CPPUNIT_ASSERT_EQUAL_MESSAGE
247 "two empty strings(with an argu)",
248 sal_Int32(0), aStrBuf2
.getCapacity()
250 CPPUNIT_ASSERT_EQUAL_MESSAGE
252 "two empty strings(with an argu)",
253 '\0', *(aStrBuf2
.getStr())
258 void makeStringAndClear_003()
260 OStringBuffer
aStrBuf3(arrOUS
[0]);
261 OString
aStr3(arrOUS
[0]);
263 bool lastRes
= (aStrBuf3
.makeStringAndClear() == aStr3
);
265 CPPUNIT_ASSERT_MESSAGE
270 CPPUNIT_ASSERT_EQUAL_MESSAGE
273 sal_Int32(0), aStrBuf3
.getCapacity()
275 CPPUNIT_ASSERT_EQUAL_MESSAGE
278 '\0', *(aStrBuf3
.getStr())
283 void makeStringAndClear_004()
285 OStringBuffer
aStrBuf4(arrOUS
[1]);
286 OString
aStr4(arrOUS
[1]);
288 bool lastRes
= (aStrBuf4
.makeStringAndClear() == aStr4
);
290 CPPUNIT_ASSERT_MESSAGE
292 "string with space ",
295 CPPUNIT_ASSERT_EQUAL_MESSAGE
297 "string with space ",
298 sal_Int32(0), aStrBuf4
.getCapacity()
300 CPPUNIT_ASSERT_EQUAL_MESSAGE
302 "string with space ",
303 '\0', *(aStrBuf4
.getStr())
307 void makeStringAndClear_005()
309 OStringBuffer
aStrBuf5(arrOUS
[2]);
310 OString
aStr5(arrOUS
[2]);
312 bool lastRes
= (aStrBuf5
.makeStringAndClear() == aStr5
);
314 CPPUNIT_ASSERT_MESSAGE
319 CPPUNIT_ASSERT_EQUAL_MESSAGE
322 sal_Int32(0), aStrBuf5
.getCapacity()
324 CPPUNIT_ASSERT_EQUAL_MESSAGE
327 '\0', *(aStrBuf5
.getStr())
331 void makeStringAndClear_006()
333 OStringBuffer
aStrBuf6(arrOUS
[3]);
334 OString
aStr6(arrOUS
[3]);
336 bool lastRes
= (aStrBuf6
.makeStringAndClear() == aStr6
);
338 CPPUNIT_ASSERT_MESSAGE
340 "string with a character",
343 CPPUNIT_ASSERT_EQUAL_MESSAGE
345 "string with a character",
346 sal_Int32(0), aStrBuf6
.getCapacity()
348 CPPUNIT_ASSERT_EQUAL_MESSAGE
350 "string with a character",
351 '\0', *(aStrBuf6
.getStr())
355 void makeStringAndClear_007()
357 OStringBuffer
aStrBuf7(arrOUS
[4]);
358 OString
aStr7(arrOUS
[4]);
360 bool lastRes
= (aStrBuf7
.makeStringAndClear() == aStr7
);
362 CPPUNIT_ASSERT_MESSAGE
364 "string with special characters",
367 CPPUNIT_ASSERT_EQUAL_MESSAGE
369 "string with special characters",
370 sal_Int32(0), aStrBuf7
.getCapacity()
372 CPPUNIT_ASSERT_EQUAL_MESSAGE
374 "string with special characters",
375 '\0', *(aStrBuf7
.getStr())
379 void makeStringAndClear_008()
381 OStringBuffer
aStrBuf8(arrOUS
[5]);
382 OString
aStr8(arrOUS
[5]);
384 bool lastRes
= (aStrBuf8
.makeStringAndClear() == aStr8
);
386 CPPUNIT_ASSERT_MESSAGE
388 "string only with (\0)",
391 CPPUNIT_ASSERT_EQUAL_MESSAGE
393 "string only with (\0)",
394 sal_Int32(0), aStrBuf8
.getCapacity()
396 CPPUNIT_ASSERT_EQUAL_MESSAGE
398 "string only with (\0)",
399 '\0', *(aStrBuf8
.getStr())
403 CPPUNIT_TEST_SUITE(makeStringAndClear
);
404 CPPUNIT_TEST(makeStringAndClear_001
);
405 CPPUNIT_TEST(makeStringAndClear_002
);
406 CPPUNIT_TEST(makeStringAndClear_003
);
407 CPPUNIT_TEST(makeStringAndClear_004
);
408 CPPUNIT_TEST(makeStringAndClear_005
);
409 CPPUNIT_TEST(makeStringAndClear_006
);
410 CPPUNIT_TEST(makeStringAndClear_007
);
411 CPPUNIT_TEST(makeStringAndClear_008
);
412 CPPUNIT_TEST_SUITE_END();
415 class remove
: public CppUnit::TestFixture
421 RTL_CONSTASCII_STRINGPARAM("Red Hat, Inc."));
424 CPPUNIT_ASSERT(sb
.toString().equalsL(
425 RTL_CONSTASCII_STRINGPARAM("Hat, Inc.")));
428 CPPUNIT_ASSERT(sb
.toString().equalsL(
429 RTL_CONSTASCII_STRINGPARAM("Hat")));
433 CPPUNIT_ASSERT(sb
.toString().isEmpty());
435 sb
.append(RTL_CONSTASCII_STRINGPARAM("Red Hat, Inc."));
439 CPPUNIT_ASSERT(sb
.toString().equalsL(
440 RTL_CONSTASCII_STRINGPARAM("Red")));
442 sb
.remove(0, sb
.getLength());
444 CPPUNIT_ASSERT(sb
.toString().isEmpty());
447 CPPUNIT_TEST_SUITE(remove
);
448 CPPUNIT_TEST(remove_001
);
449 CPPUNIT_TEST_SUITE_END();
452 class getLength
: public CppUnit::TestFixture
457 void setUp() override
459 arrOUS
[0] = OString( kTestStr1
);
460 arrOUS
[1] = "1"_ostr
;
461 arrOUS
[2] = OString( );
463 arrOUS
[4] = OString( "\0", 1 );
464 arrOUS
[5] = OString( kTestStr2
);
470 OStringBuffer
aStrBuf( arrOUS
[0] );
471 sal_Int32 expVal
= kTestStr1Len
;
473 CPPUNIT_ASSERT_EQUAL_MESSAGE
475 "length of ascii string",
476 expVal
, aStrBuf
.getLength()
483 OStringBuffer
aStrBuf( arrOUS
[1] );
484 sal_Int32 expVal
= 1;
486 CPPUNIT_ASSERT_EQUAL_MESSAGE
488 "length of ascii string of size 1",
489 expVal
, aStrBuf
.getLength()
495 OStringBuffer
aStrBuf( arrOUS
[2] );
496 sal_Int32 expVal
= 0;
498 CPPUNIT_ASSERT_EQUAL_MESSAGE
500 "length of empty string",
501 expVal
, aStrBuf
.getLength()
507 OStringBuffer
aStrBuf( arrOUS
[3] );
508 sal_Int32 expVal
= 0;
510 CPPUNIT_ASSERT_EQUAL_MESSAGE
512 "length of empty string (empty ascii string arg)",
513 expVal
, aStrBuf
.getLength()
519 OStringBuffer
aStrBuf( arrOUS
[4] );
520 sal_Int32 expVal
= 1;
522 CPPUNIT_ASSERT_EQUAL_MESSAGE
524 "length of string with \\0 embedded",
525 expVal
, aStrBuf
.getLength()
531 OStringBuffer
aStrBuf( arrOUS
[5] );
532 sal_Int32 expVal
= kTestStr2Len
;
534 CPPUNIT_ASSERT_EQUAL_MESSAGE
536 "length(>16) of ascii string",
537 expVal
, aStrBuf
.getLength()
543 OStringBuffer aStrBuf
;
544 sal_Int32 expVal
= 0;
546 CPPUNIT_ASSERT_EQUAL_MESSAGE
548 "length of empty string (default constructor)",
549 expVal
, aStrBuf
.getLength()
555 OStringBuffer
aStrBuf( 26 );
556 sal_Int32 expVal
= 0;
558 CPPUNIT_ASSERT_EQUAL_MESSAGE
560 "length of empty string (with capacity)",
561 expVal
, aStrBuf
.getLength()
565 CPPUNIT_TEST_SUITE( getLength
);
566 CPPUNIT_TEST( getLength_001
);
567 CPPUNIT_TEST( getLength_002
);
568 CPPUNIT_TEST( getLength_003
);
569 CPPUNIT_TEST( getLength_004
);
570 CPPUNIT_TEST( getLength_005
);
571 CPPUNIT_TEST( getLength_006
);
572 CPPUNIT_TEST( getLength_007
);
573 CPPUNIT_TEST( getLength_008
);
574 CPPUNIT_TEST_SUITE_END();
577 class getCapacity
: public CppUnit::TestFixture
582 void setUp() override
584 arrOUS
[0] = OString( kTestStr1
);
585 arrOUS
[1] = "1"_ostr
;
586 arrOUS
[2] = OString( );
588 arrOUS
[4] = OString( "\0", 1 );
589 arrOUS
[5] = OString( kTestStr2
);
593 void getCapacity_001()
595 OStringBuffer
aStrBuf( arrOUS
[0] );
596 sal_Int32 expVal
= kTestStr1Len
+16;
598 CPPUNIT_ASSERT_EQUAL_MESSAGE
600 "capacity of ascii string",
601 expVal
, aStrBuf
.getCapacity()
606 void getCapacity_002()
608 OStringBuffer
aStrBuf( arrOUS
[1] );
609 sal_Int32 expVal
= 1+16;
611 CPPUNIT_ASSERT_EQUAL_MESSAGE
613 "capacity of ascii string of size 1",
614 expVal
, aStrBuf
.getCapacity()
618 void getCapacity_003()
620 OStringBuffer
aStrBuf( arrOUS
[2] );
621 sal_Int32 expVal
= 0+16;
623 CPPUNIT_ASSERT_EQUAL_MESSAGE
625 "capacity of empty string",
626 expVal
, aStrBuf
.getCapacity()
630 void getCapacity_004()
632 OStringBuffer
aStrBuf( arrOUS
[3] );
633 sal_Int32 expVal
= 0+16;
635 CPPUNIT_ASSERT_EQUAL_MESSAGE
637 "capacity of empty string (empty ascii string arg)",
638 expVal
, aStrBuf
.getCapacity()
642 void getCapacity_005()
644 OStringBuffer
aStrBuf( arrOUS
[4] );
645 sal_Int32 expVal
= 1+16;
647 CPPUNIT_ASSERT_EQUAL_MESSAGE
649 "capacity of string with \\0 embedded",
650 expVal
, aStrBuf
.getCapacity()
654 void getCapacity_006()
656 OStringBuffer
aStrBuf( arrOUS
[5] );
657 sal_Int32 expVal
= kTestStr2Len
+16;
659 CPPUNIT_ASSERT_EQUAL_MESSAGE
661 "capacity(>16) of ascii string",
662 expVal
, aStrBuf
.getCapacity()
666 void getCapacity_007()
668 OStringBuffer aStrBuf
;
669 sal_Int32 expVal
= 16;
671 CPPUNIT_ASSERT_EQUAL_MESSAGE
673 "capacity of empty string (default constructor)",
674 expVal
, aStrBuf
.getCapacity()
678 void getCapacity_010()
680 OStringBuffer
aStrBuf( 16 );
681 sal_Int32 expVal
= 16;
683 CPPUNIT_ASSERT_EQUAL_MESSAGE
685 "capacity of empty string (with capacity 16)",
686 expVal
, aStrBuf
.getCapacity()
690 void getCapacity_011()
692 OStringBuffer
aStrBuf( 6 );
693 sal_Int32 expVal
= 6;
695 CPPUNIT_ASSERT_EQUAL_MESSAGE
697 "capacity of empty string (with capacity 6)",
698 expVal
, aStrBuf
.getCapacity()
702 void getCapacity_012()
704 OStringBuffer
aStrBuf( 0 );
705 sal_Int32 expVal
= 0;
707 CPPUNIT_ASSERT_EQUAL_MESSAGE
709 "capacity of empty string (with capacity 0)",
710 expVal
, aStrBuf
.getCapacity()
714 CPPUNIT_TEST_SUITE( getCapacity
);
715 CPPUNIT_TEST( getCapacity_001
);
716 CPPUNIT_TEST( getCapacity_002
);
717 CPPUNIT_TEST( getCapacity_003
);
718 CPPUNIT_TEST( getCapacity_004
);
719 CPPUNIT_TEST( getCapacity_005
);
720 CPPUNIT_TEST( getCapacity_006
);
721 CPPUNIT_TEST( getCapacity_007
);
722 CPPUNIT_TEST( getCapacity_010
);
723 CPPUNIT_TEST( getCapacity_011
);
724 CPPUNIT_TEST( getCapacity_012
);
725 CPPUNIT_TEST_SUITE_END();
728 class ensureCapacity
: public CppUnit::TestFixture
730 void ensureCapacity_001()
732 sal_Int32 expVal
= 16;
733 OStringBuffer aStrBuf
;
736 aStrBuf
.ensureCapacity( input
);
738 CPPUNIT_ASSERT_EQUAL_MESSAGE
740 "capacity equal to 16, minimum is 5",
741 expVal
, aStrBuf
.getCapacity()
746 void ensureCapacity_002()
748 sal_Int32 expVal
= 16;
749 OStringBuffer aStrBuf
;
750 sal_Int32 input
= -5;
752 aStrBuf
.ensureCapacity( input
);
754 CPPUNIT_ASSERT_EQUAL_MESSAGE
756 "capacity equal to 16, minimum is -5",
757 expVal
, aStrBuf
.getCapacity()
762 void ensureCapacity_003()
764 sal_Int32 expVal
= 16;
765 OStringBuffer aStrBuf
;
768 aStrBuf
.ensureCapacity( input
);
770 CPPUNIT_ASSERT_EQUAL_MESSAGE
772 "capacity equal to 16, minimum is 0",
773 expVal
, aStrBuf
.getCapacity()
778 void ensureCapacity_004() //the testcase is based on comments
780 sal_Int32 expVal
= 20;
781 OStringBuffer aStrBuf
;
782 sal_Int32 input
= 20;
784 aStrBuf
.ensureCapacity( input
);
786 CPPUNIT_ASSERT_EQUAL_MESSAGE
788 "capacity equal to 16, minimum is 20",
789 expVal
, aStrBuf
.getCapacity()
794 void ensureCapacity_005()
796 sal_Int32 expVal
= 50;
797 OStringBuffer aStrBuf
;
798 sal_Int32 input
= 50;
800 aStrBuf
.ensureCapacity( input
);
802 CPPUNIT_ASSERT_EQUAL_MESSAGE
804 "capacity equal to 16, minimum is 50",
805 expVal
, aStrBuf
.getCapacity()
810 void ensureCapacity_006()
812 sal_Int32 expVal
= 20;
813 OStringBuffer
aStrBuf( 6 );
814 sal_Int32 input
= 20;
816 aStrBuf
.ensureCapacity( input
);
818 CPPUNIT_ASSERT_EQUAL_MESSAGE
820 "capacity equal to 6, minimum is 20",
821 expVal
, aStrBuf
.getCapacity()
826 void ensureCapacity_007()
828 sal_Int32 expVal
= 6;
829 OStringBuffer
aStrBuf( 6 );
832 aStrBuf
.ensureCapacity( input
);
834 CPPUNIT_ASSERT_EQUAL_MESSAGE
836 "capacity equal to 6, minimum is 2",
837 expVal
, aStrBuf
.getCapacity()
842 void ensureCapacity_008()
844 sal_Int32 expVal
= 6;
845 OStringBuffer
aStrBuf( 6 );
846 sal_Int32 input
= -6;
848 aStrBuf
.ensureCapacity( input
);
850 CPPUNIT_ASSERT_EQUAL_MESSAGE
852 "capacity equal to 6, minimum is -6",
853 expVal
, aStrBuf
.getCapacity()
858 void ensureCapacity_009() //the testcase is based on comments
860 sal_Int32 expVal
= 10;
861 OStringBuffer
aStrBuf( 6 );
862 sal_Int32 input
= 10;
864 aStrBuf
.ensureCapacity( input
);
866 CPPUNIT_ASSERT_EQUAL_MESSAGE
868 "capacity equal to 6, minimum is -6",
869 expVal
, aStrBuf
.getCapacity()
874 void ensureCapacity_010()
876 sal_Int32 expVal
= 6;
877 OStringBuffer
aStrBuf( 0 );
880 aStrBuf
.ensureCapacity( input
);
882 CPPUNIT_ASSERT_EQUAL_MESSAGE
884 "capacity equal to 0, minimum is 6",
885 expVal
, aStrBuf
.getCapacity()
890 void ensureCapacity_011() //the testcase is based on comments
892 sal_Int32 expVal
= 2; // capacity is x = (str->length + 1) * 2; minimum < x ? x : minimum
893 OStringBuffer
aStrBuf( 0 );
896 aStrBuf
.ensureCapacity( input
);
898 CPPUNIT_ASSERT_EQUAL_MESSAGE
900 "capacity equal to 0, minimum is 1",
901 expVal
, aStrBuf
.getCapacity()
906 void ensureCapacity_012()
908 sal_Int32 expVal
= 0;
909 OStringBuffer
aStrBuf( 0 );
910 sal_Int32 input
= -1;
912 aStrBuf
.ensureCapacity( input
);
914 CPPUNIT_ASSERT_EQUAL_MESSAGE
916 "capacity equal to 0, minimum is -1",
917 expVal
, aStrBuf
.getCapacity()
922 CPPUNIT_TEST_SUITE( ensureCapacity
);
923 CPPUNIT_TEST( ensureCapacity_001
);
924 CPPUNIT_TEST( ensureCapacity_002
);
925 CPPUNIT_TEST( ensureCapacity_003
);
926 CPPUNIT_TEST( ensureCapacity_004
);
927 CPPUNIT_TEST( ensureCapacity_005
);
928 CPPUNIT_TEST( ensureCapacity_006
);
929 CPPUNIT_TEST( ensureCapacity_007
);
930 CPPUNIT_TEST( ensureCapacity_008
);
931 CPPUNIT_TEST( ensureCapacity_009
);
932 CPPUNIT_TEST( ensureCapacity_010
);
933 CPPUNIT_TEST( ensureCapacity_011
);
934 CPPUNIT_TEST( ensureCapacity_012
);
935 CPPUNIT_TEST_SUITE_END();
938 class setLength
: public CppUnit::TestFixture
943 void setUp() override
945 arrOUS
[0] = OString( kTestStr1
);
946 arrOUS
[1] = "1"_ostr
;
947 arrOUS
[2] = OString( );
949 arrOUS
[4] = OString( "\0", 1 );
950 arrOUS
[5] = OString( kTestStr2
);
956 OStringBuffer
aStrBuf( arrOUS
[0] );
957 sal_Int32 expVal1
= 50;
958 OString
expVal2( kTestStr1
);
959 sal_Int32 expVal3
= 50;
960 sal_Int32 input
= 50;
962 aStrBuf
.setLength( input
);
964 CPPUNIT_ASSERT_EQUAL_MESSAGE
966 "newLength more than the capacity of OStringBuffer(kTestStr1)",
967 expVal2
, OString(aStrBuf
.getStr())
969 CPPUNIT_ASSERT_EQUAL_MESSAGE
971 "newLength more than the capacity of OStringBuffer(kTestStr1)",
972 expVal1
, aStrBuf
.getLength()
974 CPPUNIT_ASSERT_EQUAL_MESSAGE
976 "newLength more than the capacity of OStringBuffer(kTestStr1)",
977 expVal3
, aStrBuf
.getCapacity()
984 OStringBuffer
aStrBuf( arrOUS
[0] );
985 sal_Int32 expVal1
= kTestStr13Len
;
986 OString
expVal2( kTestStr1
);
987 sal_Int32 expVal3
= 32;
988 sal_Int32 input
= kTestStr13Len
;
990 aStrBuf
.setLength( input
);
992 CPPUNIT_ASSERT_EQUAL_MESSAGE
994 "newLength more than the length of OStringBuffer(kTestStr1)",
995 expVal2
, OString(aStrBuf
.getStr())
997 CPPUNIT_ASSERT_EQUAL_MESSAGE
999 "newLength more than the length of OStringBuffer(kTestStr1)",
1000 expVal1
, aStrBuf
.getLength()
1002 CPPUNIT_ASSERT_EQUAL_MESSAGE
1004 "newLength more than the length of OStringBuffer(kTestStr1)",
1005 expVal3
, aStrBuf
.getCapacity()
1010 void setLength_003()
1012 OStringBuffer
aStrBuf( arrOUS
[0] );
1013 sal_Int32 expVal1
= kTestStr1Len
;
1014 OString
expVal2( kTestStr1
);
1015 sal_Int32 expVal3
= 32;
1016 sal_Int32 input
= kTestStr1Len
;
1018 aStrBuf
.setLength( input
);
1020 CPPUNIT_ASSERT_EQUAL_MESSAGE
1022 "newLength equal to the length of OStringBuffer(kTestStr1)",
1023 expVal2
, OString(aStrBuf
.getStr())
1025 CPPUNIT_ASSERT_EQUAL_MESSAGE
1027 "newLength equal to the length of OStringBuffer(kTestStr1)",
1028 expVal1
, aStrBuf
.getLength()
1030 CPPUNIT_ASSERT_EQUAL_MESSAGE
1032 "newLength equal to the length of OStringBuffer(kTestStr1)",
1033 expVal3
, aStrBuf
.getCapacity()
1038 void setLength_004()
1040 OStringBuffer
aStrBuf( arrOUS
[0] );
1041 sal_Int32 expVal1
= kTestStr7Len
;
1042 OString
expVal2( kTestStr7
);
1043 sal_Int32 expVal3
= 32;
1044 sal_Int32 input
= kTestStr7Len
;
1046 aStrBuf
.setLength( input
);
1048 CPPUNIT_ASSERT_EQUAL_MESSAGE
1050 "newLength less than the length of OStringBuffer(kTestStr1)",
1051 expVal2
, OString(aStrBuf
.getStr())
1053 CPPUNIT_ASSERT_EQUAL_MESSAGE
1055 "newLength less than the length of OStringBuffer(kTestStr1)",
1056 expVal1
, aStrBuf
.getLength()
1058 CPPUNIT_ASSERT_EQUAL_MESSAGE
1060 "newLength less than the length of OStringBuffer(kTestStr1)",
1061 expVal3
, aStrBuf
.getCapacity()
1066 void setLength_005()
1068 OStringBuffer
aStrBuf( arrOUS
[0] );
1069 sal_Int32 expVal1
= 0;
1070 sal_Int32 expVal3
= 32;
1071 sal_Int32 input
= 0;
1073 aStrBuf
.setLength( input
);
1075 CPPUNIT_ASSERT_EQUAL_MESSAGE
1077 "newLength equal to 0",
1078 '\0', aStrBuf
.getStr()[0]
1080 CPPUNIT_ASSERT_EQUAL_MESSAGE
1082 "newLength equal to 0",
1083 expVal1
, aStrBuf
.getLength()
1085 CPPUNIT_ASSERT_EQUAL_MESSAGE
1087 "newLength equal to 0",
1088 expVal3
, aStrBuf
.getCapacity()
1093 void setLength_006()
1095 OStringBuffer
aStrBuf( arrOUS
[1] );
1096 sal_Int32 expVal1
= 25;
1097 OString
expVal2( arrOUS
[1] );
1098 sal_Int32 expVal3
= 25;
1099 sal_Int32 input
= 25;
1101 aStrBuf
.setLength( input
);
1103 CPPUNIT_ASSERT_EQUAL_MESSAGE
1105 "newLength more than the capacity of OStringBuffer(1)",
1106 expVal2
, OString(aStrBuf
.getStr())
1108 CPPUNIT_ASSERT_EQUAL_MESSAGE
1110 "newLength more than the capacity of OStringBuffer(1)",
1111 expVal1
, aStrBuf
.getLength()
1113 CPPUNIT_ASSERT_EQUAL_MESSAGE
1115 "newLength more than the capacity of OStringBuffer(1)",
1116 expVal3
, aStrBuf
.getCapacity()
1121 void setLength_007()
1123 OStringBuffer
aStrBuf( arrOUS
[1] );
1124 sal_Int32 expVal1
= kTestStr27Len
;
1125 OString
expVal2( arrOUS
[1] );
1126 sal_Int32 expVal3
= 17;
1127 sal_Int32 input
= kTestStr27Len
;
1129 aStrBuf
.setLength( input
);
1131 CPPUNIT_ASSERT_EQUAL_MESSAGE
1133 "newLength equal to the length of OStringBuffer(1)",
1134 expVal2
, OString(aStrBuf
.getStr())
1136 CPPUNIT_ASSERT_EQUAL_MESSAGE
1138 "newLength equal to the length of OStringBuffer(1)",
1139 expVal1
, aStrBuf
.getLength()
1141 CPPUNIT_ASSERT_EQUAL_MESSAGE
1143 "newLength equal to the length of OStringBuffer(1)",
1144 expVal3
, aStrBuf
.getCapacity()
1149 void setLength_008()
1151 OStringBuffer
aStrBuf( arrOUS
[1] );
1152 sal_Int32 expVal1
= 0;
1153 sal_Int32 expVal3
= 17;
1154 sal_Int32 input
= 0;
1156 aStrBuf
.setLength( input
);
1158 CPPUNIT_ASSERT_EQUAL_MESSAGE
1160 "newLength less than the length of OUStringBuffer(1)",
1161 '\0', aStrBuf
.getStr()[0]
1163 CPPUNIT_ASSERT_EQUAL_MESSAGE
1165 "newLength less than the length of OUStringBuffer(1)",
1166 expVal1
, aStrBuf
.getLength()
1168 CPPUNIT_ASSERT_EQUAL_MESSAGE
1170 "newLength less than the length of OUStringBuffer(1)",
1171 expVal3
, aStrBuf
.getCapacity()
1176 void setLength_009()
1178 OStringBuffer
aStrBuf( arrOUS
[2] );
1179 sal_Int32 expVal1
= 20;
1180 sal_Int32 expVal3
= 20;
1181 sal_Int32 input
= 20;
1183 aStrBuf
.setLength( input
);
1185 CPPUNIT_ASSERT_EQUAL_MESSAGE
1187 "newLength more than the capacity of OStringBuffer()",
1188 '\0', aStrBuf
.getStr()[0]
1190 CPPUNIT_ASSERT_EQUAL_MESSAGE
1192 "newLength more than the capacity of OStringBuffer()",
1193 expVal1
, aStrBuf
.getLength()
1195 CPPUNIT_ASSERT_EQUAL_MESSAGE
1197 "newLength more than the capacity of OStringBuffer()",
1198 expVal3
, aStrBuf
.getCapacity()
1203 void setLength_010()
1205 OStringBuffer
aStrBuf( arrOUS
[2] );
1206 sal_Int32 expVal1
= 3;
1207 sal_Int32 expVal3
= 16;
1208 sal_Int32 input
= 3;
1210 aStrBuf
.setLength( input
);
1212 CPPUNIT_ASSERT_EQUAL_MESSAGE
1214 "newLength more than the length of OStringBuffer()",
1215 '\0', aStrBuf
.getStr()[0]
1217 CPPUNIT_ASSERT_EQUAL_MESSAGE
1219 "newLength more than the length of OStringBuffer()",
1220 expVal1
, aStrBuf
.getLength()
1222 CPPUNIT_ASSERT_EQUAL_MESSAGE
1224 "newLength more than the length of OStringBuffer()",
1225 expVal3
, aStrBuf
.getCapacity()
1230 void setLength_011()
1232 OStringBuffer
aStrBuf( arrOUS
[2] );
1233 sal_Int32 expVal1
= 0;
1234 sal_Int32 expVal3
= 16;
1235 sal_Int32 input
= 0;
1237 aStrBuf
.setLength( input
);
1239 CPPUNIT_ASSERT_EQUAL_MESSAGE
1241 "newLength more than the length of OStringBuffer()",
1242 '\0', aStrBuf
.getStr()[0]
1244 CPPUNIT_ASSERT_EQUAL_MESSAGE
1246 "newLength more than the length of OStringBuffer()",
1247 expVal1
, aStrBuf
.getLength()
1249 CPPUNIT_ASSERT_EQUAL_MESSAGE
1251 "newLength more than the length of OStringBuffer()",
1252 expVal3
, aStrBuf
.getCapacity()
1257 void setLength_012()
1259 OStringBuffer
aStrBuf( arrOUS
[3] );
1260 sal_Int32 expVal1
= 20;
1261 sal_Int32 expVal3
= 20;
1262 sal_Int32 input
= 20;
1264 aStrBuf
.setLength( input
);
1266 CPPUNIT_ASSERT_EQUAL_MESSAGE
1268 "newLength more than the capacity of OStringBuffer("")",
1269 '\0', aStrBuf
.getStr()[0]
1271 CPPUNIT_ASSERT_EQUAL_MESSAGE
1273 "newLength more than the capacity of OStringBuffer("")",
1274 expVal1
, aStrBuf
.getLength()
1276 CPPUNIT_ASSERT_EQUAL_MESSAGE
1278 "newLength more than the capacity of OStringBuffer("")",
1279 expVal3
, aStrBuf
.getCapacity()
1284 void setLength_013()
1286 OStringBuffer
aStrBuf( arrOUS
[3] );
1287 sal_Int32 expVal1
= 5;
1288 sal_Int32 expVal3
= 16;
1289 sal_Int32 input
= 5;
1291 aStrBuf
.setLength( input
);
1293 CPPUNIT_ASSERT_EQUAL_MESSAGE
1295 "newLength more than the length of OStringBuffer("")",
1296 '\0', aStrBuf
.getStr()[0]
1298 CPPUNIT_ASSERT_EQUAL_MESSAGE
1300 "newLength more than the length of OStringBuffer("")",
1301 expVal1
, aStrBuf
.getLength()
1303 CPPUNIT_ASSERT_EQUAL_MESSAGE
1305 "newLength more than the length of OStringBuffer("")",
1306 expVal3
, aStrBuf
.getCapacity()
1311 void setLength_014()
1313 OStringBuffer
aStrBuf( arrOUS
[3] );
1314 sal_Int32 expVal1
= 0;
1315 sal_Int32 expVal3
= 16;
1316 sal_Int32 input
= 0;
1318 aStrBuf
.setLength( input
);
1320 CPPUNIT_ASSERT_EQUAL_MESSAGE
1322 "newLength less than the length of OStringBuffer("")",
1323 '\0', aStrBuf
.getStr()[0]
1325 CPPUNIT_ASSERT_EQUAL_MESSAGE
1327 "newLength less than the length of OStringBuffer("")",
1328 expVal1
, aStrBuf
.getLength()
1330 CPPUNIT_ASSERT_EQUAL_MESSAGE
1332 "newLength less than the length of OStringBuffer("")",
1333 expVal3
, aStrBuf
.getCapacity()
1338 void setLength_015()
1340 OStringBuffer
aStrBuf( arrOUS
[4] );
1341 sal_Int32 expVal1
= 20;
1342 sal_Int32 expVal3
= 20;
1343 sal_Int32 input
= 20;
1345 aStrBuf
.setLength( input
);
1347 CPPUNIT_ASSERT_EQUAL_MESSAGE
1349 "newLength more than the length of OStringBuffer(\0)",
1350 '\0', aStrBuf
.getStr()[0]
1352 CPPUNIT_ASSERT_EQUAL_MESSAGE
1354 "newLength more than the length of OStringBuffer(\0)",
1355 expVal1
, aStrBuf
.getLength()
1357 CPPUNIT_ASSERT_EQUAL_MESSAGE
1359 "newLength more than the length of OStringBuffer(\0)",
1360 expVal3
, aStrBuf
.getCapacity()
1365 void setLength_016()
1367 OStringBuffer
aStrBuf( arrOUS
[4] );
1368 sal_Int32 expVal1
= 5;
1369 sal_Int32 expVal3
= 17;
1370 sal_Int32 input
= 5;
1372 aStrBuf
.setLength( input
);
1374 CPPUNIT_ASSERT_EQUAL_MESSAGE
1376 "newLength more than the length of OStringBuffer(\0)",
1377 '\0', aStrBuf
.getStr()[0]
1379 CPPUNIT_ASSERT_EQUAL_MESSAGE
1381 "newLength more than the length of OStringBuffer(\0)",
1382 expVal1
, aStrBuf
.getLength()
1384 CPPUNIT_ASSERT_EQUAL_MESSAGE
1386 "newLength more than the length of OStringBuffer(\0)",
1387 expVal3
, aStrBuf
.getCapacity()
1392 void setLength_017()
1394 OStringBuffer
aStrBuf( arrOUS
[4] );
1395 sal_Int32 expVal1
= 0;
1396 sal_Int32 expVal3
= 17;
1397 sal_Int32 input
= 0;
1399 aStrBuf
.setLength( input
);
1401 CPPUNIT_ASSERT_EQUAL_MESSAGE
1403 "newLength less than the length of OStringBuffer(\0)",
1404 '\0', aStrBuf
.getStr()[0]
1406 CPPUNIT_ASSERT_EQUAL_MESSAGE
1408 "newLength less than the length of OStringBuffer(\0)",
1409 expVal1
, aStrBuf
.getLength()
1411 CPPUNIT_ASSERT_EQUAL_MESSAGE
1413 "newLength less than the length of OStringBuffer(\0)",
1414 expVal3
, aStrBuf
.getCapacity()
1419 void setLength_018()
1421 OStringBuffer
aStrBuf( arrOUS
[5] );
1422 sal_Int32 expVal1
= 50;
1423 OString
expVal2( kTestStr2
);
1424 sal_Int32 expVal3
= 66;
1425 sal_Int32 input
= 50;
1427 aStrBuf
.setLength( input
);
1429 CPPUNIT_ASSERT_EQUAL_MESSAGE
1431 "newLength more than the capacity of OStringBuffer(kTestStr2)",
1432 expVal2
, OString(aStrBuf
.getStr())
1434 CPPUNIT_ASSERT_EQUAL_MESSAGE
1436 "newLength more than the capacity of OStringBuffer(kTestStr2)",
1437 expVal1
, aStrBuf
.getLength()
1439 CPPUNIT_ASSERT_EQUAL_MESSAGE
1441 "newLength more than the capacity of OStringBuffer(kTestStr2)",
1442 expVal3
, aStrBuf
.getCapacity()
1447 void setLength_019()
1449 OStringBuffer
aStrBuf( arrOUS
[5] );
1450 sal_Int32 expVal1
= 40;
1451 OString
expVal2(kTestStr2
);
1452 sal_Int32 expVal3
= 48;
1453 sal_Int32 input
= 40;
1455 aStrBuf
.setLength( input
);
1457 CPPUNIT_ASSERT_EQUAL_MESSAGE
1459 "newLength more than the length of OStringBuffer(kTestStr2)",
1460 expVal2
, OString(aStrBuf
.getStr())
1462 CPPUNIT_ASSERT_EQUAL_MESSAGE
1464 "newLength more than the length of OStringBuffer(kTestStr2)",
1465 expVal1
, aStrBuf
.getLength()
1467 CPPUNIT_ASSERT_EQUAL_MESSAGE
1469 "newLength more than the length of OStringBuffer(kTestStr2)",
1470 expVal3
, aStrBuf
.getCapacity()
1475 void setLength_020()
1477 OStringBuffer
aStrBuf( arrOUS
[5] );
1478 sal_Int32 expVal1
= kTestStr2Len
;
1479 OString
expVal2(kTestStr2
);
1480 sal_Int32 expVal3
= 48;
1481 sal_Int32 input
= kTestStr2Len
;
1483 aStrBuf
.setLength( input
);
1485 CPPUNIT_ASSERT_EQUAL_MESSAGE
1487 "newLength equal to the length of OUStringBuffer(kTestStr2)",
1488 expVal2
, OString(aStrBuf
.getStr())
1490 CPPUNIT_ASSERT_EQUAL_MESSAGE
1492 "newLength equal to the length of OUStringBuffer(kTestStr2)",
1493 expVal1
, aStrBuf
.getLength()
1495 CPPUNIT_ASSERT_EQUAL_MESSAGE
1497 "newLength equal to the length of OUStringBuffer(kTestStr2)",
1498 expVal3
, aStrBuf
.getCapacity()
1503 void setLength_021()
1505 OStringBuffer
aStrBuf( arrOUS
[5] );
1506 sal_Int32 expVal1
= kTestStr7Len
;
1507 OString
expVal2(kTestStr7
);
1508 sal_Int32 expVal3
= 48;
1509 sal_Int32 input
= kTestStr7Len
;
1511 aStrBuf
.setLength( input
);
1513 CPPUNIT_ASSERT_EQUAL_MESSAGE
1515 "newLength less than the length of OUStringBuffer(TestStr2)",
1516 expVal2
, OString(aStrBuf
.getStr())
1518 CPPUNIT_ASSERT_EQUAL_MESSAGE
1520 "newLength less than the length of OUStringBuffer(TestStr2)",
1521 expVal1
, aStrBuf
.getLength()
1523 CPPUNIT_ASSERT_EQUAL_MESSAGE
1525 "newLength less than the length of OUStringBuffer(TestStr2)",
1526 expVal3
, aStrBuf
.getCapacity()
1531 void setLength_022()
1533 OStringBuffer
aStrBuf( arrOUS
[5] );
1534 sal_Int32 expVal1
= 0;
1535 sal_Int32 expVal3
= 48;
1536 sal_Int32 input
= 0;
1538 aStrBuf
.setLength( input
);
1540 CPPUNIT_ASSERT_EQUAL_MESSAGE
1542 "newLength equal to 0",
1543 '\0', aStrBuf
.getStr()[0]
1545 CPPUNIT_ASSERT_EQUAL_MESSAGE
1547 "newLength equal to 0",
1548 expVal1
, aStrBuf
.getLength()
1550 CPPUNIT_ASSERT_EQUAL_MESSAGE
1552 "newLength equal to 0",
1553 expVal3
, aStrBuf
.getCapacity()
1558 CPPUNIT_TEST_SUITE( setLength
);
1559 CPPUNIT_TEST( setLength_001
);
1560 CPPUNIT_TEST( setLength_002
);
1561 CPPUNIT_TEST( setLength_003
);
1562 CPPUNIT_TEST( setLength_004
);
1563 CPPUNIT_TEST( setLength_005
);
1564 CPPUNIT_TEST( setLength_006
);
1565 CPPUNIT_TEST( setLength_007
);
1566 CPPUNIT_TEST( setLength_008
);
1567 CPPUNIT_TEST( setLength_009
);
1568 CPPUNIT_TEST( setLength_010
);
1569 CPPUNIT_TEST( setLength_011
);
1570 CPPUNIT_TEST( setLength_012
);
1571 CPPUNIT_TEST( setLength_013
);
1572 CPPUNIT_TEST( setLength_014
);
1573 CPPUNIT_TEST( setLength_015
);
1574 CPPUNIT_TEST( setLength_016
);
1575 CPPUNIT_TEST( setLength_017
);
1576 CPPUNIT_TEST( setLength_018
);
1577 CPPUNIT_TEST( setLength_019
);
1578 CPPUNIT_TEST( setLength_020
);
1579 CPPUNIT_TEST( setLength_021
);
1580 CPPUNIT_TEST( setLength_022
);
1581 CPPUNIT_TEST_SUITE_END();
1584 class csuc
: public CppUnit::TestFixture
1588 const char* expVal
= kTestStr1
;
1589 OStringBuffer
aStrBuf( kTestStr1
);
1590 sal_Int32 cmpLen
= kTestStr1Len
;
1592 // LLA: wrong access! const char* pstr = *&aStrBuf;
1593 const char* pstr
= aStrBuf
.getStr();
1594 int nEqual
= strncmp(pstr
, expVal
, cmpLen
);
1596 CPPUNIT_ASSERT_EQUAL_MESSAGE
1598 "test normal string",
1599 /* cmpstr( pstr, expVal, cmpLen ) */
1607 OStringBuffer aStrBuf
;
1609 // LLA: wrong access! const char* pstr = *&aStrBuf;
1610 const char* pstr
= aStrBuf
.getStr();
1611 sal_Int32 nLen
= strlen(pstr
);
1613 CPPUNIT_ASSERT_EQUAL_MESSAGE
1615 "test empty string",
1616 // cmpstr( pstr, &expVal, cmpLen )
1617 static_cast<sal_Int32
>(0), nLen
1622 CPPUNIT_TEST_SUITE( csuc
);
1623 CPPUNIT_TEST( csuc_001
);
1624 CPPUNIT_TEST( csuc_002
);
1625 CPPUNIT_TEST_SUITE_END();
1628 class getStr
: public CppUnit::TestFixture
1632 const char* expVal
= kTestStr1
;
1633 OStringBuffer
aStrBuf( kTestStr1
);
1634 sal_Int32 cmpLen
= kTestStr1Len
;
1636 const char* pstr
= aStrBuf
.getStr();
1637 int nEqual
= strncmp(pstr
, expVal
, cmpLen
);
1639 CPPUNIT_ASSERT_EQUAL_MESSAGE
1641 "test normal string",
1649 OStringBuffer aStrBuf
;
1650 const char* pstr
= aStrBuf
.getStr();
1651 CPPUNIT_ASSERT_MESSAGE
1653 "test empty string",
1656 CPPUNIT_ASSERT_EQUAL_MESSAGE
1658 "test empty string",
1664 CPPUNIT_TEST_SUITE( getStr
);
1665 CPPUNIT_TEST( getStr_001
);
1666 CPPUNIT_TEST( getStr_002
);
1667 CPPUNIT_TEST_SUITE_END();
1670 class append_001
: public CppUnit::TestFixture
1674 OString empty
; // silence loplugin
1677 void setUp() override
1679 arrOUS
[0] = OString( kTestStr7
);
1680 arrOUS
[1] = OString( );
1681 arrOUS
[2] = OString( kTestStr25
);
1682 arrOUS
[3] = ""_ostr
;
1683 arrOUS
[4] = OString( kTestStr28
);
1687 void append_001_001()
1689 OString
expVal( kTestStr1
);
1690 OStringBuffer
aStrBuf( arrOUS
[0] );
1691 OString
input2( kTestStr8
);
1693 aStrBuf
.append( input2
);
1695 CPPUNIT_ASSERT_EQUAL_MESSAGE
1697 "Appends the string(length less than 16) to the string buffer arrOUS[0]",
1698 expVal
, OString(aStrBuf
.getStr())
1700 CPPUNIT_ASSERT_EQUAL_MESSAGE
1702 "Appends the string(length less than 16) to the string buffer arrOUS[0]",
1703 expVal
.getLength(), aStrBuf
.getLength()
1708 void append_001_002()
1710 OString
expVal( kTestStr2
);
1711 OStringBuffer
aStrBuf( arrOUS
[0] );
1712 OString
input2( kTestStr36
);
1714 aStrBuf
.append( input2
);
1716 CPPUNIT_ASSERT_EQUAL_MESSAGE
1718 "Appends the string(length more than 16) to the string buffer arrOUS[0]",
1719 expVal
, OString(aStrBuf
.getStr())
1721 CPPUNIT_ASSERT_EQUAL_MESSAGE
1723 "Appends the string(length more than 16) to the string buffer arrOUS[0]",
1724 expVal
.getLength(), aStrBuf
.getLength()
1729 void append_001_003()
1731 OString
expVal( kTestStr37
);
1732 OStringBuffer
aStrBuf( arrOUS
[0] );
1733 OString
input2( kTestStr23
);
1735 aStrBuf
.append( input2
);
1737 CPPUNIT_ASSERT_EQUAL_MESSAGE
1739 "Appends the string(length equal to 16) to the string buffer arrOUS[0]",
1740 expVal
, OString(aStrBuf
.getStr())
1742 CPPUNIT_ASSERT_EQUAL_MESSAGE
1744 "Appends the string(length equal to 16) to the string buffer arrOUS[0]",
1745 expVal
.getLength(), aStrBuf
.getLength()
1750 void append_001_004()
1752 OString
expVal( kTestStr7
);
1753 OStringBuffer
aStrBuf( arrOUS
[0] );
1755 aStrBuf
.append( empty
);
1757 CPPUNIT_ASSERT_EQUAL_MESSAGE
1759 "Appends the string(length equal to 0) to the string buffer arrOUS[0]",
1760 expVal
, OString(aStrBuf
.getStr())
1762 CPPUNIT_ASSERT_EQUAL_MESSAGE
1764 "Appends the string(length equal to 0) to the string buffer arrOUS[0]",
1765 expVal
.getLength(), aStrBuf
.getLength()
1770 void append_001_005()
1772 OString
expVal( kTestStr7
);
1773 OStringBuffer
aStrBuf( arrOUS
[1] );
1774 OString
input2( kTestStr7
);
1776 aStrBuf
.append( input2
);
1778 CPPUNIT_ASSERT_EQUAL_MESSAGE
1780 "Appends the string(length less than 16) to the string buffer arrOUS[1]",
1781 expVal
, OString(aStrBuf
.getStr())
1783 CPPUNIT_ASSERT_EQUAL_MESSAGE
1785 "Appends the string(length less than 16) to the string buffer arrOUS[1]",
1786 expVal
.getLength(), aStrBuf
.getLength()
1791 void append_001_006()
1793 OString
expVal( kTestStr2
);
1794 OStringBuffer
aStrBuf( arrOUS
[1] );
1795 OString
input2( kTestStr2
);
1797 aStrBuf
.append( input2
);
1799 CPPUNIT_ASSERT_EQUAL_MESSAGE
1801 "Appends the string(length more than 16) to the string buffer arrOUS[1]",
1802 expVal
, OString(aStrBuf
.getStr())
1804 CPPUNIT_ASSERT_EQUAL_MESSAGE
1806 "Appends the string(length more than 16) to the string buffer arrOUS[1]",
1807 expVal
.getLength(), aStrBuf
.getLength()
1812 void append_001_007()
1814 OString
expVal( kTestStr1
);
1815 OStringBuffer
aStrBuf( arrOUS
[1] );
1816 OString
input2( kTestStr1
);
1818 aStrBuf
.append( input2
);
1820 CPPUNIT_ASSERT_EQUAL_MESSAGE
1822 "Appends the string(length equal to 16) to the string buffer arrOUS[1]",
1823 expVal
, OString(aStrBuf
.getStr())
1825 CPPUNIT_ASSERT_EQUAL_MESSAGE
1827 "Appends the string(length equal to 16) to the string buffer arrOUS[1]",
1828 expVal
.getLength(), aStrBuf
.getLength()
1833 void append_001_008()
1836 OStringBuffer
aStrBuf( arrOUS
[1] );
1838 aStrBuf
.append( empty
);
1840 CPPUNIT_ASSERT_EQUAL_MESSAGE
1842 "Appends the string(length equal to 0) to the string buffer arrOUS[1]",
1843 expVal
, OString(aStrBuf
.getStr())
1845 CPPUNIT_ASSERT_EQUAL_MESSAGE
1847 "Appends the string(length equal to 0) to the string buffer arrOUS[1]",
1848 expVal
.getLength(), aStrBuf
.getLength()
1853 void append_001_009()
1855 OString
expVal( kTestStr7
);
1856 OStringBuffer
aStrBuf( arrOUS
[2] );
1857 OString
input2( kTestStr7
);
1859 aStrBuf
.append( input2
);
1861 CPPUNIT_ASSERT_EQUAL_MESSAGE
1863 "Appends the string(length less than 16) to the string buffer arrOUS[2]",
1864 expVal
, OString(aStrBuf
.getStr())
1866 CPPUNIT_ASSERT_EQUAL_MESSAGE
1868 "Appends the string(length less than 16) to the string buffer arrOUS[2]",
1869 expVal
.getLength(), aStrBuf
.getLength()
1874 void append_001_010()
1876 OString
expVal( kTestStr2
);
1877 OStringBuffer
aStrBuf( arrOUS
[2] );
1878 OString
input2( kTestStr2
);
1880 aStrBuf
.append( input2
);
1882 CPPUNIT_ASSERT_EQUAL_MESSAGE
1884 "Appends the string(length more than 16) to the string buffer arrOUS[2]",
1885 expVal
, OString(aStrBuf
.getStr())
1887 CPPUNIT_ASSERT_EQUAL_MESSAGE
1889 "Appends the string(length more than 16) to the string buffer arrOUS[2]",
1890 expVal
.getLength(), aStrBuf
.getLength()
1895 void append_001_011()
1897 OString
expVal( kTestStr1
);
1898 OStringBuffer
aStrBuf( arrOUS
[2] );
1899 OString
input2( kTestStr1
);
1901 aStrBuf
.append( input2
);
1903 CPPUNIT_ASSERT_EQUAL_MESSAGE
1905 "Appends the string(length equal to 16) to the string buffer arrOUS[2]",
1906 expVal
, OString(aStrBuf
.getStr())
1908 CPPUNIT_ASSERT_EQUAL_MESSAGE
1910 "Appends the string(length equal to 16) to the string buffer arrOUS[2]",
1911 expVal
.getLength(), aStrBuf
.getLength()
1916 void append_001_012()
1919 OStringBuffer
aStrBuf( arrOUS
[2] );
1921 aStrBuf
.append( empty
);
1923 CPPUNIT_ASSERT_EQUAL_MESSAGE
1925 "Appends the string(length equal to 0) to the string buffer arrOUS[2]",
1926 expVal
, OString(aStrBuf
.getStr())
1928 CPPUNIT_ASSERT_EQUAL_MESSAGE
1930 "Appends the string(length equal to 0) to the string buffer arrOUS[2]",
1931 expVal
.getLength(), aStrBuf
.getLength()
1936 void append_001_013()
1938 OString
expVal( kTestStr7
);
1939 OStringBuffer
aStrBuf( arrOUS
[3] );
1940 OString
input2( kTestStr7
);
1942 aStrBuf
.append( input2
);
1944 CPPUNIT_ASSERT_EQUAL_MESSAGE
1946 "Appends the string(length less than 16) to the string buffer arrOUS[3]",
1947 expVal
, OString(aStrBuf
.getStr())
1949 CPPUNIT_ASSERT_EQUAL_MESSAGE
1951 "Appends the string(length less than 16) to the string buffer arrOUS[3]",
1952 expVal
.getLength(), aStrBuf
.getLength()
1957 void append_001_014()
1959 OString
expVal( kTestStr2
);
1960 OStringBuffer
aStrBuf( arrOUS
[3] );
1961 OString
input2( kTestStr2
);
1963 aStrBuf
.append( input2
);
1965 CPPUNIT_ASSERT_EQUAL_MESSAGE
1967 "Appends the string(length more than 16) to the string buffer arrOUS[3]",
1968 expVal
, OString(aStrBuf
.getStr())
1970 CPPUNIT_ASSERT_EQUAL_MESSAGE
1972 "Appends the string(length more than 16) to the string buffer arrOUS[3]",
1973 expVal
.getLength(), aStrBuf
.getLength()
1978 void append_001_015()
1980 OString
expVal( kTestStr1
);
1981 OStringBuffer
aStrBuf( arrOUS
[3] );
1982 OString
input2( kTestStr1
);
1984 aStrBuf
.append( input2
);
1986 CPPUNIT_ASSERT_EQUAL_MESSAGE
1988 "Appends the string(length equal to 16) to the string buffer arrOUS[3]",
1989 expVal
, OString(aStrBuf
.getStr())
1991 CPPUNIT_ASSERT_EQUAL_MESSAGE
1993 "Appends the string(length equal to 16) to the string buffer arrOUS[3]",
1994 expVal
.getLength(), aStrBuf
.getLength()
1999 void append_001_016()
2002 OStringBuffer
aStrBuf( arrOUS
[3] );
2004 aStrBuf
.append( empty
);
2006 CPPUNIT_ASSERT_EQUAL_MESSAGE
2008 "Appends the string(length equal to 0) to the string buffer arrOUS[3]",
2009 expVal
, OString(aStrBuf
.getStr())
2011 CPPUNIT_ASSERT_EQUAL_MESSAGE
2013 "Appends the string(length equal to 0) to the string buffer arrOUS[3]",
2014 expVal
.getLength(), aStrBuf
.getLength()
2019 void append_001_017()
2021 OString
expVal( kTestStr29
);
2022 OStringBuffer
aStrBuf( arrOUS
[4] );
2023 OString
input2( kTestStr38
);
2025 aStrBuf
.append( input2
);
2027 CPPUNIT_ASSERT_EQUAL_MESSAGE
2029 "Appends the string(length less than 16) to the string buffer arrOUS[4]",
2030 expVal
, OString(aStrBuf
.getStr())
2032 CPPUNIT_ASSERT_EQUAL_MESSAGE
2034 "Appends the string(length less than 16) to the string buffer arrOUS[4]",
2035 expVal
.getLength(), aStrBuf
.getLength()
2040 void append_001_018()
2042 OString
expVal( kTestStr39
);
2043 OStringBuffer
aStrBuf( arrOUS
[4] );
2044 OString
input2( kTestStr17
);
2046 aStrBuf
.append( input2
);
2048 CPPUNIT_ASSERT_EQUAL_MESSAGE
2050 "Appends the string(length more than 16) to the string buffer arrOUS[4]",
2051 expVal
, OString(aStrBuf
.getStr())
2053 CPPUNIT_ASSERT_EQUAL_MESSAGE
2055 "Appends the string(length more than 16) to the string buffer arrOUS[4]",
2056 expVal
.getLength(), aStrBuf
.getLength()
2061 void append_001_019()
2063 OString
expVal( kTestStr40
);
2064 OStringBuffer
aStrBuf( arrOUS
[4] );
2065 OString
input2( kTestStr31
);
2067 aStrBuf
.append( input2
);
2069 CPPUNIT_ASSERT_EQUAL_MESSAGE
2071 "Appends the string(length equal to 16) to the string buffer arrOUS[4]",
2072 expVal
, OString(aStrBuf
.getStr())
2074 CPPUNIT_ASSERT_EQUAL_MESSAGE
2076 "Appends the string(length equal to 16) to the string buffer arrOUS[4]",
2077 expVal
.getLength(), aStrBuf
.getLength()
2082 void append_001_020()
2084 OString
expVal( kTestStr28
);
2085 OStringBuffer
aStrBuf( arrOUS
[4] );
2087 aStrBuf
.append( empty
);
2089 CPPUNIT_ASSERT_EQUAL_MESSAGE
2091 "Appends the string(length equal to 0) to the string buffer arrOUS[4]",
2092 expVal
, OString(aStrBuf
.getStr())
2094 CPPUNIT_ASSERT_EQUAL_MESSAGE
2096 "Appends the string(length equal to 0) to the string buffer arrOUS[4]",
2097 expVal
.getLength(), aStrBuf
.getLength()
2104 OStringBuffer
aStrBuf("hello world");
2106 aStrBuf
.append('\0');
2107 aStrBuf
.append('\1');
2108 aStrBuf
.append('\2');
2110 aStrBuf
.append("hello world");
2112 CPPUNIT_ASSERT_EQUAL_MESSAGE
2114 "should be able to append nulls",
2115 sal_Int32(2 * RTL_CONSTASCII_LENGTH("hello world") + 3), aStrBuf
.getLength()
2117 CPPUNIT_ASSERT_EQUAL_MESSAGE
2119 "should be able to append nulls",
2120 '\0', aStrBuf
[RTL_CONSTASCII_LENGTH("hello world")]
2122 CPPUNIT_ASSERT_EQUAL_MESSAGE
2124 "should be able to append nulls",
2125 1, aStrBuf
[RTL_CONSTASCII_LENGTH("hello world")]+1
2127 CPPUNIT_ASSERT_EQUAL_MESSAGE
2129 "should be able to append nulls",
2130 2, aStrBuf
[RTL_CONSTASCII_LENGTH("hello world")]+2
2135 CPPUNIT_TEST_SUITE( append_001
);
2136 CPPUNIT_TEST( append_001_001
);
2137 CPPUNIT_TEST( append_001_002
);
2138 CPPUNIT_TEST( append_001_003
);
2139 CPPUNIT_TEST( append_001_004
);
2140 CPPUNIT_TEST( append_001_005
);
2141 CPPUNIT_TEST( append_001_006
);
2142 CPPUNIT_TEST( append_001_007
);
2143 CPPUNIT_TEST( append_001_008
);
2144 CPPUNIT_TEST( append_001_009
);
2145 CPPUNIT_TEST( append_001_010
);
2146 CPPUNIT_TEST( append_001_011
);
2147 CPPUNIT_TEST( append_001_012
);
2148 CPPUNIT_TEST( append_001_013
);
2149 CPPUNIT_TEST( append_001_014
);
2150 CPPUNIT_TEST( append_001_015
);
2151 CPPUNIT_TEST( append_001_016
);
2152 CPPUNIT_TEST( append_001_017
);
2153 CPPUNIT_TEST( append_001_018
);
2154 CPPUNIT_TEST( append_001_019
);
2155 CPPUNIT_TEST( append_001_020
);
2156 CPPUNIT_TEST( append_null
);
2157 CPPUNIT_TEST_SUITE_END();
2160 class append_002
: public CppUnit::TestFixture
2165 void setUp() override
2167 arrOUS
[0] = OString( kTestStr7
);
2168 arrOUS
[1] = OString( );
2169 arrOUS
[2] = OString( kTestStr25
);
2170 arrOUS
[3] = ""_ostr
;
2171 arrOUS
[4] = OString( kTestStr28
);
2175 void append_002_001()
2177 OString
expVal( kTestStr1
);
2178 OStringBuffer
aStrBuf( arrOUS
[0] );
2179 const char* input
= kTestStr8
;
2181 aStrBuf
.append( input
);
2183 CPPUNIT_ASSERT_EQUAL_MESSAGE
2185 "Appends the string(length less than 16) to the string buffer arrOUS[0]",
2186 expVal
, OString(aStrBuf
.getStr())
2188 CPPUNIT_ASSERT_EQUAL_MESSAGE
2190 "Appends the string(length less than 16) to the string buffer arrOUS[0]",
2191 expVal
.getLength(), aStrBuf
.getLength()
2196 void append_002_002()
2198 OString
expVal( kTestStr2
);
2199 OStringBuffer
aStrBuf( arrOUS
[0] );
2200 const char* input
= kTestStr36
;
2202 aStrBuf
.append( input
);
2204 CPPUNIT_ASSERT_EQUAL_MESSAGE
2206 "Appends the string(length more than 16) to the string buffer arrOUS[0]",
2207 expVal
, OString(aStrBuf
.getStr())
2209 CPPUNIT_ASSERT_EQUAL_MESSAGE
2211 "Appends the string(length more than 16) to the string buffer arrOUS[0]",
2212 expVal
.getLength(), aStrBuf
.getLength()
2217 void append_002_003()
2219 OString
expVal( kTestStr37
);
2220 OStringBuffer
aStrBuf( arrOUS
[0] );
2221 const char* input
= kTestStr23
;
2223 aStrBuf
.append( input
);
2225 CPPUNIT_ASSERT_EQUAL_MESSAGE
2227 "Appends the string(length equal to 16) to the string buffer arrOUS[0]",
2228 expVal
, OString(aStrBuf
.getStr())
2230 CPPUNIT_ASSERT_EQUAL_MESSAGE
2232 "Appends the string(length equal to 16) to the string buffer arrOUS[0]",
2233 expVal
.getLength(), aStrBuf
.getLength()
2238 void append_002_004()
2240 OString
expVal( kTestStr7
);
2241 OStringBuffer
aStrBuf( arrOUS
[0] );
2242 const char* input
= kTestStr25
;
2244 aStrBuf
.append( input
);
2246 CPPUNIT_ASSERT_EQUAL_MESSAGE
2248 "Appends the string(length equal to 0) to the string buffer arrOUS[0]",
2249 expVal
, OString(aStrBuf
.getStr())
2251 CPPUNIT_ASSERT_EQUAL_MESSAGE
2253 "Appends the string(length equal to 0) to the string buffer arrOUS[0]",
2254 expVal
.getLength(), aStrBuf
.getLength()
2259 void append_002_005()
2261 OString
expVal( kTestStr7
);
2262 OStringBuffer
aStrBuf( arrOUS
[1] );
2263 const char* input
= kTestStr7
;
2265 aStrBuf
.append( input
);
2267 CPPUNIT_ASSERT_EQUAL_MESSAGE
2269 "Appends the string(length less than 16) to the string buffer arrOUS[1]",
2270 expVal
, OString(aStrBuf
.getStr())
2272 CPPUNIT_ASSERT_EQUAL_MESSAGE
2274 "Appends the string(length less than 16) to the string buffer arrOUS[1]",
2275 expVal
.getLength(), aStrBuf
.getLength()
2280 void append_002_006()
2282 OString
expVal( kTestStr2
);
2283 OStringBuffer
aStrBuf( arrOUS
[1] );
2284 const char* input
= kTestStr2
;
2286 aStrBuf
.append( input
);
2288 CPPUNIT_ASSERT_EQUAL_MESSAGE
2290 "Appends the string(length more than 16) to the string buffer arrOUS[1]",
2291 expVal
, OString(aStrBuf
.getStr())
2293 CPPUNIT_ASSERT_EQUAL_MESSAGE
2295 "Appends the string(length more than 16) to the string buffer arrOUS[1]",
2296 expVal
.getLength(), aStrBuf
.getLength()
2301 void append_002_007()
2303 OString
expVal( kTestStr1
);
2304 OStringBuffer
aStrBuf( arrOUS
[1] );
2305 const char* input
= kTestStr1
;
2307 aStrBuf
.append( input
);
2309 CPPUNIT_ASSERT_EQUAL_MESSAGE
2311 "Appends the string(length equal to 16) to the string buffer arrOUS[1]",
2312 expVal
, OString(aStrBuf
.getStr())
2314 CPPUNIT_ASSERT_EQUAL_MESSAGE
2316 "Appends the string(length equal to 16) to the string buffer arrOUS[1]",
2317 expVal
.getLength(), aStrBuf
.getLength()
2322 void append_002_008()
2325 OStringBuffer
aStrBuf( arrOUS
[1] );
2326 const char* input
= kTestStr25
;
2328 aStrBuf
.append( input
);
2330 CPPUNIT_ASSERT_EQUAL_MESSAGE
2332 "Appends the string(length equal to 0) to the string buffer arrOUS[1]",
2333 expVal
, OString(aStrBuf
.getStr())
2335 CPPUNIT_ASSERT_EQUAL_MESSAGE
2337 "Appends the string(length equal to 0) to the string buffer arrOUS[1]",
2338 expVal
.getLength(), aStrBuf
.getLength()
2343 void append_002_009()
2345 OString
expVal( kTestStr7
);
2346 OStringBuffer
aStrBuf( arrOUS
[2] );
2347 const char* input
= kTestStr7
;
2349 aStrBuf
.append( input
);
2351 CPPUNIT_ASSERT_EQUAL_MESSAGE
2353 "Appends the string(length less than 16) to the string buffer arrOUS[2]",
2354 expVal
, OString(aStrBuf
.getStr())
2356 CPPUNIT_ASSERT_EQUAL_MESSAGE
2358 "Appends the string(length less than 16) to the string buffer arrOUS[2]",
2359 expVal
.getLength(), aStrBuf
.getLength()
2364 void append_002_010()
2366 OString
expVal( kTestStr2
);
2367 OStringBuffer
aStrBuf( arrOUS
[2] );
2368 const char* input
= kTestStr2
;
2370 aStrBuf
.append( input
);
2372 CPPUNIT_ASSERT_EQUAL_MESSAGE
2374 "Appends the string(length more than 16) to the string buffer arrOUS[2]",
2375 expVal
, OString(aStrBuf
.getStr())
2377 CPPUNIT_ASSERT_EQUAL_MESSAGE
2379 "Appends the string(length more than 16) to the string buffer arrOUS[2]",
2380 expVal
.getLength(), aStrBuf
.getLength()
2385 void append_002_011()
2387 OString
expVal( kTestStr1
);
2388 OStringBuffer
aStrBuf( arrOUS
[2] );
2389 const char* input
= kTestStr1
;
2391 aStrBuf
.append( input
);
2393 CPPUNIT_ASSERT_EQUAL_MESSAGE
2395 "Appends the string(length equal to 16) to the string buffer arrOUS[2]",
2396 expVal
, OString(aStrBuf
.getStr())
2398 CPPUNIT_ASSERT_EQUAL_MESSAGE
2400 "Appends the string(length equal to 16) to the string buffer arrOUS[2]",
2401 expVal
.getLength(), aStrBuf
.getLength()
2406 void append_002_012()
2409 OStringBuffer
aStrBuf( arrOUS
[2] );
2410 const char* input
= kTestStr25
;
2412 aStrBuf
.append( input
);
2414 CPPUNIT_ASSERT_EQUAL_MESSAGE
2416 "Appends the string(length equal to 0) to the string buffer arrOUS[2]",
2417 expVal
, OString(aStrBuf
.getStr())
2419 CPPUNIT_ASSERT_EQUAL_MESSAGE
2421 "Appends the string(length equal to 0) to the string buffer arrOUS[2]",
2422 expVal
.getLength(), aStrBuf
.getLength()
2427 void append_002_013()
2429 OString
expVal( kTestStr7
);
2430 OStringBuffer
aStrBuf( arrOUS
[3] );
2431 const char* input
= kTestStr7
;
2433 aStrBuf
.append( input
);
2435 CPPUNIT_ASSERT_EQUAL_MESSAGE
2437 "Appends the string(length less than 16) to the string buffer arrOUS[3]",
2438 expVal
, OString(aStrBuf
.getStr())
2440 CPPUNIT_ASSERT_EQUAL_MESSAGE
2442 "Appends the string(length less than 16) to the string buffer arrOUS[3]",
2443 expVal
.getLength(), aStrBuf
.getLength()
2448 void append_002_014()
2450 OString
expVal( kTestStr2
);
2451 OStringBuffer
aStrBuf( arrOUS
[3] );
2452 const char* input
= kTestStr2
;
2454 aStrBuf
.append( input
);
2456 CPPUNIT_ASSERT_EQUAL_MESSAGE
2458 "Appends the string(length more than 16) to the string buffer arrOUS[3]",
2459 expVal
, OString(aStrBuf
.getStr())
2461 CPPUNIT_ASSERT_EQUAL_MESSAGE
2463 "Appends the string(length more than 16) to the string buffer arrOUS[3]",
2464 expVal
.getLength(), aStrBuf
.getLength()
2469 void append_002_015()
2471 OString
expVal( kTestStr1
);
2472 OStringBuffer
aStrBuf( arrOUS
[3] );
2473 const char* input
= kTestStr1
;
2475 aStrBuf
.append( input
);
2477 CPPUNIT_ASSERT_EQUAL_MESSAGE
2479 "Appends the string(length equal to 16) to the string buffer arrOUS[3]",
2480 expVal
, OString(aStrBuf
.getStr())
2482 CPPUNIT_ASSERT_EQUAL_MESSAGE
2484 "Appends the string(length equal to 16) to the string buffer arrOUS[3]",
2485 expVal
.getLength(), aStrBuf
.getLength()
2490 void append_002_016()
2493 OStringBuffer
aStrBuf( arrOUS
[3] );
2494 const char* input
= kTestStr25
;
2496 aStrBuf
.append( input
);
2498 CPPUNIT_ASSERT_EQUAL_MESSAGE
2500 "Appends the string(length equal to 0) to the string buffer arrOUS[3]",
2501 expVal
, OString(aStrBuf
.getStr())
2503 CPPUNIT_ASSERT_EQUAL_MESSAGE
2505 "Appends the string(length equal to 0) to the string buffer arrOUS[3]",
2506 expVal
.getLength(), aStrBuf
.getLength()
2511 void append_002_017()
2513 OString
expVal( kTestStr29
);
2514 OStringBuffer
aStrBuf( arrOUS
[4] );
2515 const char* input
= kTestStr38
;
2517 aStrBuf
.append( input
);
2519 CPPUNIT_ASSERT_EQUAL_MESSAGE
2521 "Appends the string(length less than 16) to the string buffer arrOUS[4]",
2522 expVal
, OString(aStrBuf
.getStr())
2524 CPPUNIT_ASSERT_EQUAL_MESSAGE
2526 "Appends the string(length less than 16) to the string buffer arrOUS[4]",
2527 expVal
.getLength(), aStrBuf
.getLength()
2532 void append_002_018()
2534 OString
expVal( kTestStr39
);
2535 OStringBuffer
aStrBuf( arrOUS
[4] );
2536 const char* input
= kTestStr17
;
2538 aStrBuf
.append( input
);
2540 CPPUNIT_ASSERT_EQUAL_MESSAGE
2542 "Appends the string(length more than 16) to the string buffer arrOUS[4]",
2543 expVal
, OString(aStrBuf
.getStr())
2545 CPPUNIT_ASSERT_EQUAL_MESSAGE
2547 "Appends the string(length more than 16) to the string buffer arrOUS[4]",
2548 expVal
.getLength(), aStrBuf
.getLength()
2553 void append_002_019()
2555 OString
expVal( kTestStr40
);
2556 OStringBuffer
aStrBuf( arrOUS
[4] );
2557 const char* input
= kTestStr31
;
2559 aStrBuf
.append( input
);
2561 CPPUNIT_ASSERT_EQUAL_MESSAGE
2563 "Appends the string(length equal to 16) to the string buffer arrOUS[4]",
2564 expVal
, OString(aStrBuf
.getStr())
2566 CPPUNIT_ASSERT_EQUAL_MESSAGE
2568 "Appends the string(length equal to 16) to the string buffer arrOUS[4]",
2569 expVal
.getLength(), aStrBuf
.getLength()
2574 void append_002_020()
2576 OString
expVal( kTestStr28
);
2577 OStringBuffer
aStrBuf( arrOUS
[4] );
2578 const char* input
= kTestStr25
;
2580 aStrBuf
.append( input
);
2582 CPPUNIT_ASSERT_EQUAL_MESSAGE
2584 "Appends the string(length equal to 0) to the string buffer arrOUS[4]",
2585 expVal
, OString(aStrBuf
.getStr())
2587 CPPUNIT_ASSERT_EQUAL_MESSAGE
2589 "Appends the string(length equal to 0) to the string buffer arrOUS[4]",
2590 expVal
.getLength(), aStrBuf
.getLength()
2596 void append_002_021()
2599 OStringBuffer
aStrBuf( kSInt32Max
);
2600 const char* input
= kTestStr25
;
2602 aStrBuf
.append( input
);
2604 CPPUNIT_ASSERT_MESSAGE
2606 "Appends the string(length equal to 0) to the string buffer(with INT_MAX)",
2607 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
2613 CPPUNIT_TEST_SUITE( append_002
);
2614 CPPUNIT_TEST( append_002_001
);
2615 CPPUNIT_TEST( append_002_002
);
2616 CPPUNIT_TEST( append_002_003
);
2617 CPPUNIT_TEST( append_002_004
);
2618 CPPUNIT_TEST( append_002_005
);
2619 CPPUNIT_TEST( append_002_006
);
2620 CPPUNIT_TEST( append_002_007
);
2621 CPPUNIT_TEST( append_002_008
);
2622 CPPUNIT_TEST( append_002_009
);
2623 CPPUNIT_TEST( append_002_010
);
2624 CPPUNIT_TEST( append_002_011
);
2625 CPPUNIT_TEST( append_002_012
);
2626 CPPUNIT_TEST( append_002_013
);
2627 CPPUNIT_TEST( append_002_014
);
2628 CPPUNIT_TEST( append_002_015
);
2629 CPPUNIT_TEST( append_002_016
);
2630 CPPUNIT_TEST( append_002_017
);
2631 CPPUNIT_TEST( append_002_018
);
2632 CPPUNIT_TEST( append_002_019
);
2633 CPPUNIT_TEST( append_002_020
);
2635 CPPUNIT_TEST( append_002_021
);
2637 CPPUNIT_TEST_SUITE_END();
2640 class append_003
: public CppUnit::TestFixture
2645 void setUp() override
2647 arrOUS
[0] = OString( kTestStr7
);
2648 arrOUS
[1] = OString( );
2649 arrOUS
[2] = OString( kTestStr25
);
2650 arrOUS
[3] = ""_ostr
;
2651 arrOUS
[4] = OString( kTestStr28
);
2655 void append_003_001()
2657 OString
expVal( kTestStr1
);
2658 OStringBuffer
aStrBuf( arrOUS
[0] );
2659 const char* input1
= kTestStr36
;
2660 sal_Int32 input2
= 12;
2662 aStrBuf
.append( input1
, input2
);
2664 CPPUNIT_ASSERT_EQUAL_MESSAGE
2666 "Appends the string(length less than 16) to the string buffer arrOUS[0]",
2667 expVal
, OString(aStrBuf
.getStr())
2669 CPPUNIT_ASSERT_EQUAL_MESSAGE
2671 "Appends the string(length less than 16) to the string buffer arrOUS[0]",
2672 expVal
.getLength(), aStrBuf
.getLength()
2677 void append_003_002()
2679 OString
expVal( kTestStr2
);
2680 OStringBuffer
aStrBuf( arrOUS
[0] );
2681 const char* input1
= kTestStr36
;
2682 sal_Int32 input2
= 28;
2684 aStrBuf
.append( input1
, input2
);
2686 CPPUNIT_ASSERT_EQUAL_MESSAGE
2688 "Appends the string(length more than 16) to the string buffer arrOUS[0]",
2689 expVal
, OString(aStrBuf
.getStr())
2691 CPPUNIT_ASSERT_EQUAL_MESSAGE
2693 "Appends the string(length more than 16) to the string buffer arrOUS[0]",
2694 expVal
.getLength(), aStrBuf
.getLength()
2699 void append_003_003()
2701 OString
expVal( kTestStr37
);
2702 OStringBuffer
aStrBuf( arrOUS
[0] );
2703 const char* input1
= kTestStr23
;
2704 sal_Int32 input2
= 16;
2706 aStrBuf
.append( input1
, input2
);
2708 CPPUNIT_ASSERT_EQUAL_MESSAGE
2710 "Appends the string(length equal to 16) to the string buffer arrOUS[0]",
2711 expVal
, OString(aStrBuf
.getStr())
2713 CPPUNIT_ASSERT_EQUAL_MESSAGE
2715 "Appends the string(length equal to 16) to the string buffer arrOUS[0]",
2716 expVal
.getLength(), aStrBuf
.getLength()
2721 void append_003_004()
2723 OString
expVal( kTestStr7
);
2724 OStringBuffer
aStrBuf( arrOUS
[0] );
2725 const char* input1
= kTestStr2
;
2726 sal_Int32 input2
= 0;
2728 aStrBuf
.append( input1
, input2
);
2730 CPPUNIT_ASSERT_EQUAL_MESSAGE
2732 "Appends the string(length equal to 0) to the string buffer arrOUS[0]",
2733 expVal
, OString(aStrBuf
.getStr())
2735 CPPUNIT_ASSERT_EQUAL_MESSAGE
2737 "Appends the string(length equal to 0) to the string buffer arrOUS[0]",
2738 expVal
.getLength(), aStrBuf
.getLength()
2743 void append_003_006()
2745 OString
expVal( kTestStr7
);
2746 OStringBuffer
aStrBuf( arrOUS
[1] );
2747 const char* input1
= kTestStr2
;
2748 sal_Int32 input2
= 4;
2750 aStrBuf
.append( input1
, input2
);
2752 CPPUNIT_ASSERT_EQUAL_MESSAGE
2754 "Appends the string(length less than 16) to the string buffer arrOUS[1]",
2755 expVal
, OString(aStrBuf
.getStr())
2757 CPPUNIT_ASSERT_EQUAL_MESSAGE
2759 "Appends the string(length less than 16) to the string buffer arrOUS[1]",
2760 expVal
.getLength(), aStrBuf
.getLength()
2765 void append_003_007()
2767 OString
expVal( kTestStr2
);
2768 OStringBuffer
aStrBuf( arrOUS
[1] );
2769 const char* input1
= kTestStr2
;
2770 sal_Int32 input2
= 32;
2772 aStrBuf
.append( input1
, input2
);
2774 CPPUNIT_ASSERT_EQUAL_MESSAGE
2776 "Appends the string(length more than 16) to the string buffer arrOUS[1]",
2777 expVal
, OString(aStrBuf
.getStr())
2779 CPPUNIT_ASSERT_EQUAL_MESSAGE
2781 "Appends the string(length more than 16) to the string buffer arrOUS[1]",
2782 expVal
.getLength(), aStrBuf
.getLength()
2787 void append_003_008()
2789 OString
expVal( kTestStr1
);
2790 OStringBuffer
aStrBuf( arrOUS
[1] );
2791 const char* input1
= kTestStr2
;
2792 sal_Int32 input2
= 16;
2794 aStrBuf
.append( input1
, input2
);
2796 CPPUNIT_ASSERT_EQUAL_MESSAGE
2798 "Appends the string(length equal to 16) to the string buffer arrOUS[1]",
2799 expVal
, OString(aStrBuf
.getStr())
2801 CPPUNIT_ASSERT_EQUAL_MESSAGE
2803 "Appends the string(length equal to 16) to the string buffer arrOUS[1]",
2804 expVal
.getLength(), aStrBuf
.getLength()
2809 void append_003_009()
2812 OStringBuffer
aStrBuf( arrOUS
[1] );
2813 const char* input1
= kTestStr2
;
2814 sal_Int32 input2
= 0;
2816 aStrBuf
.append( input1
, input2
);
2818 CPPUNIT_ASSERT_EQUAL_MESSAGE
2820 "Appends the string(length equal to 0) to the string buffer arrOUS[1]",
2821 expVal
, OString(aStrBuf
.getStr())
2823 CPPUNIT_ASSERT_EQUAL_MESSAGE
2825 "Appends the string(length equal to 0) to the string buffer arrOUS[1]",
2826 expVal
.getLength(), aStrBuf
.getLength()
2831 void append_003_011()
2833 OString
expVal( kTestStr7
);
2834 OStringBuffer
aStrBuf( arrOUS
[2] );
2835 const char* input1
= kTestStr2
;
2836 sal_Int32 input2
= 4;
2838 aStrBuf
.append( input1
, input2
);
2840 CPPUNIT_ASSERT_EQUAL_MESSAGE
2842 "Appends the string(length less than 16) to the string buffer arrOUS[2]",
2843 expVal
, OString(aStrBuf
.getStr())
2845 CPPUNIT_ASSERT_EQUAL_MESSAGE
2847 "Appends the string(length less than 16) to the string buffer arrOUS[2]",
2848 expVal
.getLength(), aStrBuf
.getLength()
2853 void append_003_012()
2855 OString
expVal( kTestStr2
);
2856 OStringBuffer
aStrBuf( arrOUS
[2] );
2857 const char* input1
= kTestStr2
;
2858 sal_Int32 input2
= 32;
2860 aStrBuf
.append( input1
, input2
);
2862 CPPUNIT_ASSERT_EQUAL_MESSAGE
2864 "Appends the string(length more than 16) to the string buffer arrOUS[2]",
2865 expVal
, OString(aStrBuf
.getStr())
2867 CPPUNIT_ASSERT_EQUAL_MESSAGE
2869 "Appends the string(length more than 16) to the string buffer arrOUS[2]",
2870 expVal
.getLength(), aStrBuf
.getLength()
2875 void append_003_013()
2877 OString
expVal( kTestStr1
);
2878 OStringBuffer
aStrBuf( arrOUS
[2] );
2879 const char* input1
= kTestStr2
;
2880 sal_Int32 input2
= 16;
2882 aStrBuf
.append( input1
, input2
);
2884 CPPUNIT_ASSERT_EQUAL_MESSAGE
2886 "Appends the string(length equal to 16) to the string buffer arrOUS[2]",
2887 expVal
, OString(aStrBuf
.getStr())
2889 CPPUNIT_ASSERT_EQUAL_MESSAGE
2891 "Appends the string(length equal to 16) to the string buffer arrOUS[2]",
2892 expVal
.getLength(), aStrBuf
.getLength()
2897 void append_003_014()
2900 OStringBuffer
aStrBuf( arrOUS
[2] );
2901 const char* input1
= kTestStr2
;
2902 sal_Int32 input2
= 0;
2904 aStrBuf
.append( input1
, input2
);
2906 CPPUNIT_ASSERT_EQUAL_MESSAGE
2908 "Appends the string(length equal to 0) to the string buffer arrOUS[2]",
2909 expVal
, OString(aStrBuf
.getStr())
2911 CPPUNIT_ASSERT_EQUAL_MESSAGE
2913 "Appends the string(length equal to 0) to the string buffer arrOUS[2]",
2914 expVal
.getLength(), aStrBuf
.getLength()
2919 void append_003_016()
2921 OString
expVal( kTestStr7
);
2922 OStringBuffer
aStrBuf( arrOUS
[3] );
2923 const char* input1
= kTestStr2
;
2924 sal_Int32 input2
= 4;
2926 aStrBuf
.append( input1
, input2
);
2928 CPPUNIT_ASSERT_EQUAL_MESSAGE
2930 "Appends the string(length less than 16) to the string buffer arrOUS[3]",
2931 expVal
, OString(aStrBuf
.getStr())
2933 CPPUNIT_ASSERT_EQUAL_MESSAGE
2935 "Appends the string(length less than 16) to the string buffer arrOUS[3]",
2936 expVal
.getLength(), aStrBuf
.getLength()
2941 void append_003_017()
2943 OString
expVal( kTestStr2
);
2944 OStringBuffer
aStrBuf( arrOUS
[3] );
2945 const char* input1
= kTestStr2
;
2946 sal_Int32 input2
= 32;
2948 aStrBuf
.append( input1
, input2
);
2950 CPPUNIT_ASSERT_EQUAL_MESSAGE
2952 "Appends the string(length more than 16) to the string buffer arrOUS[3]",
2953 expVal
, OString(aStrBuf
.getStr())
2955 CPPUNIT_ASSERT_EQUAL_MESSAGE
2957 "Appends the string(length more than 16) to the string buffer arrOUS[3]",
2958 expVal
.getLength(), aStrBuf
.getLength()
2963 void append_003_018()
2965 OString
expVal( kTestStr1
);
2966 OStringBuffer
aStrBuf( arrOUS
[3] );
2967 const char* input1
= kTestStr2
;
2968 sal_Int32 input2
= 16;
2970 aStrBuf
.append( input1
, input2
);
2972 CPPUNIT_ASSERT_EQUAL_MESSAGE
2974 "Appends the string(length equal to 16) to the string buffer arrOUS[3]",
2975 expVal
, OString(aStrBuf
.getStr())
2977 CPPUNIT_ASSERT_EQUAL_MESSAGE
2979 "Appends the string(length equal to 16) to the string buffer arrOUS[3]",
2980 expVal
.getLength(), aStrBuf
.getLength()
2985 void append_003_019()
2988 OStringBuffer
aStrBuf( arrOUS
[3] );
2989 const char* input1
= kTestStr2
;
2990 sal_Int32 input2
= 0;
2992 aStrBuf
.append( input1
, input2
);
2994 CPPUNIT_ASSERT_EQUAL_MESSAGE
2996 "Appends the string(length equal to 0) to the string buffer arrOUS[3]",
2997 expVal
, OString(aStrBuf
.getStr())
2999 CPPUNIT_ASSERT_EQUAL_MESSAGE
3001 "Appends the string(length equal to 0) to the string buffer arrOUS[3]",
3002 expVal
.getLength(), aStrBuf
.getLength()
3007 void append_003_021()
3009 OString
expVal( kTestStr29
);
3010 OStringBuffer
aStrBuf( arrOUS
[4] );
3011 const char* input1
= kTestStr38
;
3012 sal_Int32 input2
= 7;
3014 aStrBuf
.append( input1
, input2
);
3016 CPPUNIT_ASSERT_EQUAL_MESSAGE
3018 "Appends the string(length less than 16) to the string buffer arrOUS[4]",
3019 expVal
, OString(aStrBuf
.getStr())
3021 CPPUNIT_ASSERT_EQUAL_MESSAGE
3023 "Appends the string(length less than 16) to the string buffer arrOUS[4]",
3024 expVal
.getLength(), aStrBuf
.getLength()
3029 void append_003_022()
3031 OString
expVal( kTestStr39
);
3032 OStringBuffer
aStrBuf( arrOUS
[4] );
3033 const char* input1
= kTestStr17
;
3034 sal_Int32 input2
= 22;
3036 aStrBuf
.append( input1
, input2
);
3038 CPPUNIT_ASSERT_EQUAL_MESSAGE
3040 "Appends the string(length more than 16) to the string buffer arrOUS[4]",
3041 expVal
, OString(aStrBuf
.getStr())
3043 CPPUNIT_ASSERT_EQUAL_MESSAGE
3045 "Appends the string(length more than 16) to the string buffer arrOUS[4]",
3046 expVal
.getLength(), aStrBuf
.getLength()
3051 void append_003_023()
3053 OString
expVal( kTestStr40
);
3054 OStringBuffer
aStrBuf( arrOUS
[4] );
3055 const char* input1
= kTestStr31
;
3056 sal_Int32 input2
= 16;
3058 aStrBuf
.append( input1
, input2
);
3060 CPPUNIT_ASSERT_EQUAL_MESSAGE
3062 "Appends the string(length equal to 16) to the string buffer arrOUS[4]",
3063 expVal
, OString(aStrBuf
.getStr())
3065 CPPUNIT_ASSERT_EQUAL_MESSAGE
3067 "Appends the string(length equal to 16) to the string buffer arrOUS[4]",
3068 expVal
.getLength(), aStrBuf
.getLength()
3073 void append_003_024()
3075 OString
expVal( kTestStr28
);
3076 OStringBuffer
aStrBuf( arrOUS
[4] );
3077 const char* input1
= kTestStr2
;
3078 sal_Int32 input2
= 0;
3080 aStrBuf
.append( input1
, input2
);
3082 CPPUNIT_ASSERT_EQUAL_MESSAGE
3084 "Appends the string(length equal to 0) to the string buffer arrOUS[4]",
3085 expVal
, OString(aStrBuf
.getStr())
3087 CPPUNIT_ASSERT_EQUAL_MESSAGE
3089 "Appends the string(length equal to 0) to the string buffer arrOUS[4]",
3090 expVal
.getLength(), aStrBuf
.getLength()
3095 CPPUNIT_TEST_SUITE( append_003
);
3096 CPPUNIT_TEST( append_003_001
);
3097 CPPUNIT_TEST( append_003_002
);
3098 CPPUNIT_TEST( append_003_003
);
3099 CPPUNIT_TEST( append_003_004
);
3100 CPPUNIT_TEST( append_003_006
);
3101 CPPUNIT_TEST( append_003_007
);
3102 CPPUNIT_TEST( append_003_008
);
3103 CPPUNIT_TEST( append_003_009
);
3104 CPPUNIT_TEST( append_003_011
);
3105 CPPUNIT_TEST( append_003_012
);
3106 CPPUNIT_TEST( append_003_013
);
3107 CPPUNIT_TEST( append_003_014
);
3108 CPPUNIT_TEST( append_003_016
);
3109 CPPUNIT_TEST( append_003_017
);
3110 CPPUNIT_TEST( append_003_018
);
3111 CPPUNIT_TEST( append_003_019
);
3112 CPPUNIT_TEST( append_003_021
);
3113 CPPUNIT_TEST( append_003_022
);
3114 CPPUNIT_TEST( append_003_023
);
3115 CPPUNIT_TEST( append_003_024
);
3116 CPPUNIT_TEST_SUITE_END();
3119 class append_004
: public CppUnit::TestFixture
3124 void setUp() override
3126 arrOUS
[0] = OString( kTestStr7
);
3127 arrOUS
[1] = OString( );
3128 arrOUS
[2] = OString( kTestStr25
);
3129 arrOUS
[3] = ""_ostr
;
3130 arrOUS
[4] = OString( kTestStr28
);
3134 void append_004_001()
3136 OString
expVal( kTestStr45
);
3137 OStringBuffer
aStrBuf( arrOUS
[0] );
3140 aStrBuf
.append( input
);
3142 CPPUNIT_ASSERT_EQUAL_MESSAGE
3144 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[0]",
3145 expVal
, OString(aStrBuf
.getStr())
3147 CPPUNIT_ASSERT_EQUAL_MESSAGE
3149 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[0]",
3150 expVal
.getLength(), aStrBuf
.getLength()
3155 void append_004_002()
3157 OString
expVal( kTestStr46
);
3158 OStringBuffer
aStrBuf( arrOUS
[0] );
3161 aStrBuf
.append( input
);
3163 CPPUNIT_ASSERT_EQUAL_MESSAGE
3165 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[0]",
3166 expVal
, OString(aStrBuf
.getStr())
3168 CPPUNIT_ASSERT_EQUAL_MESSAGE
3170 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[0]",
3171 expVal
.getLength(), aStrBuf
.getLength()
3176 void append_004_003()
3178 OString
expVal( kTestStr47
);
3179 OStringBuffer
aStrBuf( arrOUS
[1] );
3182 aStrBuf
.append( input
);
3184 CPPUNIT_ASSERT_EQUAL_MESSAGE
3186 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[1]",
3187 expVal
, OString(aStrBuf
.getStr())
3189 CPPUNIT_ASSERT_EQUAL_MESSAGE
3191 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[1]",
3192 expVal
.getLength(), aStrBuf
.getLength()
3197 void append_004_004()
3199 OString
expVal( kTestStr48
);
3200 OStringBuffer
aStrBuf( arrOUS
[1] );
3203 aStrBuf
.append( input
);
3205 CPPUNIT_ASSERT_EQUAL_MESSAGE
3207 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[1]",
3208 expVal
, OString(aStrBuf
.getStr())
3210 CPPUNIT_ASSERT_EQUAL_MESSAGE
3212 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[1]",
3213 expVal
.getLength(), aStrBuf
.getLength()
3218 void append_004_005()
3220 OString
expVal( kTestStr47
);
3221 OStringBuffer
aStrBuf( arrOUS
[2] );
3224 aStrBuf
.append( input
);
3226 CPPUNIT_ASSERT_EQUAL_MESSAGE
3228 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[2]",
3229 expVal
, OString(aStrBuf
.getStr())
3231 CPPUNIT_ASSERT_EQUAL_MESSAGE
3233 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[2]",
3234 expVal
.getLength(), aStrBuf
.getLength()
3239 void append_004_006()
3241 OString
expVal( kTestStr48
);
3242 OStringBuffer
aStrBuf( arrOUS
[2] );
3245 aStrBuf
.append( input
);
3247 CPPUNIT_ASSERT_EQUAL_MESSAGE
3249 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[2]",
3250 expVal
, OString(aStrBuf
.getStr())
3252 CPPUNIT_ASSERT_EQUAL_MESSAGE
3254 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[2]",
3255 expVal
.getLength(), aStrBuf
.getLength()
3260 void append_004_007()
3262 OString
expVal( kTestStr47
);
3263 OStringBuffer
aStrBuf( arrOUS
[3] );
3266 aStrBuf
.append( input
);
3268 CPPUNIT_ASSERT_EQUAL_MESSAGE
3270 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[3]",
3271 expVal
, OString(aStrBuf
.getStr())
3273 CPPUNIT_ASSERT_EQUAL_MESSAGE
3275 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[3]",
3276 expVal
.getLength(), aStrBuf
.getLength()
3281 void append_004_008()
3283 OString
expVal( kTestStr48
);
3284 OStringBuffer
aStrBuf( arrOUS
[3] );
3287 aStrBuf
.append( input
);
3289 CPPUNIT_ASSERT_EQUAL_MESSAGE
3291 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[3]",
3292 expVal
, OString(aStrBuf
.getStr())
3294 CPPUNIT_ASSERT_EQUAL_MESSAGE
3296 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[3]",
3297 expVal
.getLength(), aStrBuf
.getLength()
3302 void append_004_009()
3304 OString
expVal( kTestStr49
);
3305 OStringBuffer
aStrBuf( arrOUS
[4] );
3308 aStrBuf
.append( input
);
3310 CPPUNIT_ASSERT_EQUAL_MESSAGE
3312 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[4]",
3313 expVal
, OString(aStrBuf
.getStr())
3315 CPPUNIT_ASSERT_EQUAL_MESSAGE
3317 "Appends the sal_Bool(sal_True) to the string buffer arrOUS[4]",
3318 expVal
.getLength(), aStrBuf
.getLength()
3323 void append_004_010()
3325 OString
expVal( kTestStr50
);
3326 OStringBuffer
aStrBuf( arrOUS
[4] );
3329 aStrBuf
.append( input
);
3331 CPPUNIT_ASSERT_EQUAL_MESSAGE
3333 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[4]",
3334 expVal
, OString(aStrBuf
.getStr())
3336 CPPUNIT_ASSERT_EQUAL_MESSAGE
3338 "Appends the sal_Bool(sal_False) to the string buffer arrOUS[4]",
3339 expVal
.getLength(), aStrBuf
.getLength()
3345 void append_004_011()
3347 OString
expVal( kTestStr47
);
3348 OStringBuffer
aStrBuf( kSInt32Max
);
3349 sal_Bool input
= sal_True
;
3351 aStrBuf
.append( input
);
3353 CPPUNIT_ASSERT_MESSAGE
3355 "Appends the sal_Bool(sal_True) to the string buffer(with INT_MAX)",
3356 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
3361 void append_004_012()
3363 OString
expVal( kTestStr48
);
3364 OStringBuffer
aStrBuf( kSInt32Max
);
3365 sal_Bool input
= sal_False
;
3367 aStrBuf
.append( input
);
3369 CPPUNIT_ASSERT_MESSAGE
3371 "Appends the sal_Bool(sal_False) to the string buffer(with INT_MAX)",
3372 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
3378 CPPUNIT_TEST_SUITE( append_004
);
3379 CPPUNIT_TEST( append_004_001
);
3380 CPPUNIT_TEST( append_004_002
);
3381 CPPUNIT_TEST( append_004_003
);
3382 CPPUNIT_TEST( append_004_004
);
3383 CPPUNIT_TEST( append_004_005
);
3384 CPPUNIT_TEST( append_004_006
);
3385 CPPUNIT_TEST( append_004_007
);
3386 CPPUNIT_TEST( append_004_008
);
3387 CPPUNIT_TEST( append_004_009
);
3388 CPPUNIT_TEST( append_004_010
);
3390 CPPUNIT_TEST( append_004_011
);
3391 CPPUNIT_TEST( append_004_012
);
3393 CPPUNIT_TEST_SUITE_END();
3396 // testing the method append(char c)
3398 class append_005
: public CppUnit::TestFixture
3403 void setUp() override
3405 arrOUS
[0] = OString( kTestStr7
);
3406 arrOUS
[1] = OString( );
3407 arrOUS
[2] = OString( kTestStr25
);
3408 arrOUS
[3] = ""_ostr
;
3409 arrOUS
[4] = OString( kTestStr28
);
3415 OString
expVal( kTestStr51
);
3416 OStringBuffer
aStrBuf( arrOUS
[0] );
3419 aStrBuf
.append( input
);
3421 CPPUNIT_ASSERT_EQUAL_MESSAGE
3423 "Appends the char(M) to the string buffer arrOUS[0]",
3424 expVal
, OString(aStrBuf
.getStr())
3426 CPPUNIT_ASSERT_EQUAL_MESSAGE
3428 "Appends the char(M) to the string buffer arrOUS[0]",
3429 expVal
.getLength(), aStrBuf
.getLength()
3436 OString
expVal( kTestStr143
);
3437 OStringBuffer
aStrBuf( arrOUS
[0] );
3438 char input
= static_cast<char>(SAL_MAX_UINT8
);
3440 aStrBuf
.append( input
);
3442 CPPUNIT_ASSERT_EQUAL_MESSAGE
3444 "Appends the sal_Unicode(kSInt8Max) to the string buffer arrOUS[0]",
3445 expVal
, OString(aStrBuf
.getStr())
3447 CPPUNIT_ASSERT_EQUAL_MESSAGE
3449 "Appends the sal_Unicode(kSInt8Max) to the string buffer arrOUS[0]",
3450 expVal
.getLength(), aStrBuf
.getLength()
3457 OString
expVal( kTestStr27
);
3458 OStringBuffer
aStrBuf( arrOUS
[1] );
3461 aStrBuf
.append( input
);
3463 CPPUNIT_ASSERT_EQUAL_MESSAGE
3465 "Appends the char(s) to the string buffer arrOUS[1]",
3466 expVal
, OString(aStrBuf
.getStr())
3468 CPPUNIT_ASSERT_EQUAL_MESSAGE
3470 "Appends the char(s) to the string buffer arrOUS[1]",
3471 expVal
.getLength(), aStrBuf
.getLength()
3478 OString
expVal( kTestStr144
);
3479 OStringBuffer
aStrBuf( arrOUS
[1] );
3480 char input
= static_cast<char>(SAL_MAX_UINT8
);
3482 aStrBuf
.append( input
);
3484 CPPUNIT_ASSERT_EQUAL_MESSAGE
3486 "Appends the char(kSInt8Max) to the string buffer arrOUS[1]",
3487 expVal
, OString(aStrBuf
.getStr())
3489 CPPUNIT_ASSERT_EQUAL_MESSAGE
3491 "Appends the char(kSInt8Max) to the string buffer arrOUS[1]",
3492 expVal
.getLength(), aStrBuf
.getLength()
3497 void append_005_005()
3499 OString
expVal( kTestStr27
);
3500 OStringBuffer
aStrBuf( arrOUS
[2] );
3503 aStrBuf
.append( input
);
3505 CPPUNIT_ASSERT_EQUAL_MESSAGE
3507 "Appends the char(s) to the string buffer arrOUS[2]",
3508 expVal
, OString(aStrBuf
.getStr())
3510 CPPUNIT_ASSERT_EQUAL_MESSAGE
3512 "Appends the char(s) to the string buffer arrOUS[2]",
3513 expVal
.getLength(), aStrBuf
.getLength()
3520 OString
expVal( kTestStr144
);
3521 OStringBuffer
aStrBuf( arrOUS
[2] );
3522 char input
= static_cast<char>(SAL_MAX_UINT8
);
3524 aStrBuf
.append( input
);
3526 CPPUNIT_ASSERT_EQUAL_MESSAGE
3528 "Appends the char(kSInt8Max) to the string buffer arrOUS[2]",
3529 expVal
, OString(aStrBuf
.getStr())
3531 CPPUNIT_ASSERT_EQUAL_MESSAGE
3533 "Appends the char(kSInt8Max) to the string buffer arrOUS[2]",
3534 expVal
.getLength(), aStrBuf
.getLength()
3541 OString
expVal( kTestStr27
);
3542 OStringBuffer
aStrBuf( arrOUS
[3] );
3545 aStrBuf
.append( input
);
3547 CPPUNIT_ASSERT_EQUAL_MESSAGE
3549 "Appends the char(s) to the string buffer arrOUS[3]",
3550 expVal
, OString(aStrBuf
.getStr())
3552 CPPUNIT_ASSERT_EQUAL_MESSAGE
3554 "Appends the char(s) to the string buffer arrOUS[3]",
3555 expVal
.getLength(), aStrBuf
.getLength()
3562 OString
expVal( kTestStr144
);
3563 OStringBuffer
aStrBuf( arrOUS
[3] );
3564 char input
= static_cast<char>(SAL_MAX_UINT8
);
3566 aStrBuf
.append( input
);
3568 CPPUNIT_ASSERT_EQUAL_MESSAGE
3570 "Appends the char(kSInt8Max) to the string buffer arrOUS[3]",
3571 expVal
, OString(aStrBuf
.getStr())
3573 CPPUNIT_ASSERT_EQUAL_MESSAGE
3575 "Appends the char(kSInt8Max) to the string buffer arrOUS[3]",
3576 expVal
.getLength(), aStrBuf
.getLength()
3583 OString
expVal( kTestStr56
);
3584 OStringBuffer
aStrBuf( arrOUS
[4] );
3587 aStrBuf
.append( input
);
3589 CPPUNIT_ASSERT_EQUAL_MESSAGE
3591 "Appends the char(s) to the string buffer arrOUS[4]",
3592 expVal
, OString(aStrBuf
.getStr())
3594 CPPUNIT_ASSERT_EQUAL_MESSAGE
3596 "Appends the char(s) to the string buffer arrOUS[4]",
3597 expVal
.getLength(), aStrBuf
.getLength()
3604 OString
expVal( kTestStr145
);
3605 OStringBuffer
aStrBuf( arrOUS
[4] );
3606 char input
= static_cast<char>(SAL_MAX_UINT8
);
3608 aStrBuf
.append( input
);
3610 CPPUNIT_ASSERT_EQUAL_MESSAGE
3612 "Appends the char(kSInt8Max) to the string buffer arrOUS[4]",
3613 expVal
, OString(aStrBuf
.getStr())
3615 CPPUNIT_ASSERT_EQUAL_MESSAGE
3617 "Appends the char(kSInt8Max) to the string buffer arrOUS[4]",
3618 expVal
.getLength(), aStrBuf
.getLength()
3626 OString
expVal( kTestStr27
);
3627 OStringBuffer
aStrBuf( kSInt32Max
);
3630 aStrBuf
.append( input
);
3632 CPPUNIT_ASSERT_MESSAGE
3634 "Appends the char(s) to the string buffer(with INT_MAX)",
3635 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
3642 OString
expVal( kTestStr144
);
3643 OStringBuffer
aStrBuf( kSInt32Max
);
3644 char input
= static_cast<char>(SAL_MAX_UINT8
);
3646 aStrBuf
.append( input
);
3648 CPPUNIT_ASSERT_MESSAGE
3650 "Appends the char(kSInt8Max) to the string buffer with INT_MAX)",
3651 ( aStrBuf
.getStr()== expVal
) &&( aStrBuf
.getLength() == expVal
.getLength() )
3657 CPPUNIT_TEST_SUITE( append_005
);
3658 CPPUNIT_TEST( append_001
);
3659 CPPUNIT_TEST( append_002
);
3660 CPPUNIT_TEST( append_003
);
3661 CPPUNIT_TEST( append_004
);
3662 CPPUNIT_TEST( append_005_005
);
3663 CPPUNIT_TEST( append_006
);
3664 CPPUNIT_TEST( append_007
);
3665 CPPUNIT_TEST( append_008
);
3666 CPPUNIT_TEST( append_009
);
3667 CPPUNIT_TEST( append_010
);
3669 CPPUNIT_TEST( append_011
);
3670 CPPUNIT_TEST( append_012
);
3672 CPPUNIT_TEST_SUITE_END();
3675 class append_006_Int32
: public CppUnit::TestFixture
3680 void setUp() override
3682 arrOUS
[0] = OString( kTestStr7
);
3683 arrOUS
[1] = OString( );
3684 arrOUS
[2] = OString( kTestStr25
);
3685 arrOUS
[3] = ""_ostr
;
3686 arrOUS
[4] = OString( kTestStr28
);
3692 OStringBuffer
aStrBuf( arrOUS
[0] );
3693 OString
expVal( aStrBuf
.getStr() );
3694 sal_Int32 input
= 0;
3695 sal_Int16 radix
= 2;
3698 aStrBuf
.append( input
, radix
);
3700 CPPUNIT_ASSERT_EQUAL_MESSAGE
3702 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
3703 expVal
, OString(aStrBuf
.getStr())
3705 CPPUNIT_ASSERT_EQUAL_MESSAGE
3707 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
3708 expVal
.getLength(), aStrBuf
.getLength()
3715 OStringBuffer
aStrBuf( arrOUS
[0] );
3716 OString
expVal( aStrBuf
.getStr() );
3717 sal_Int32 input
= 4;
3718 sal_Int16 radix
= 2;
3720 expVal
+= "100"_ostr
;
3721 aStrBuf
.append( input
, radix
);
3723 CPPUNIT_ASSERT_EQUAL_MESSAGE
3725 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
3726 expVal
, OString(aStrBuf
.getStr())
3728 CPPUNIT_ASSERT_EQUAL_MESSAGE
3730 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
3731 expVal
.getLength(), aStrBuf
.getLength()
3738 OStringBuffer
aStrBuf( arrOUS
[0] );
3739 OString
expVal( aStrBuf
.getStr() );
3740 sal_Int32 input
= 8;
3741 sal_Int16 radix
= 2;
3743 expVal
+= "1000"_ostr
;
3744 aStrBuf
.append( input
, radix
);
3746 CPPUNIT_ASSERT_EQUAL_MESSAGE
3748 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
3749 expVal
, OString(aStrBuf
.getStr())
3751 CPPUNIT_ASSERT_EQUAL_MESSAGE
3753 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
3754 expVal
.getLength(), aStrBuf
.getLength()
3761 OStringBuffer
aStrBuf( arrOUS
[0] );
3762 OString
expVal( aStrBuf
.getStr() );
3763 sal_Int32 input
= 15;
3764 sal_Int16 radix
= 2;
3766 expVal
+= "1111"_ostr
;
3767 aStrBuf
.append( input
, radix
);
3769 CPPUNIT_ASSERT_EQUAL_MESSAGE
3771 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
3772 expVal
, OString(aStrBuf
.getStr())
3774 CPPUNIT_ASSERT_EQUAL_MESSAGE
3776 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[0]",
3777 expVal
.getLength(), aStrBuf
.getLength()
3784 OStringBuffer
aStrBuf( arrOUS
[0] );
3785 OString
expVal( aStrBuf
.getStr() );
3786 sal_Int32 input
= 0;
3787 sal_Int16 radix
= 8;
3790 aStrBuf
.append( input
, radix
);
3792 CPPUNIT_ASSERT_EQUAL_MESSAGE
3794 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
3795 expVal
, OString(aStrBuf
.getStr())
3797 CPPUNIT_ASSERT_EQUAL_MESSAGE
3799 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
3800 expVal
.getLength(), aStrBuf
.getLength()
3807 OStringBuffer
aStrBuf( arrOUS
[0] );
3808 OString
expVal( aStrBuf
.getStr() );
3809 sal_Int32 input
= 4;
3810 sal_Int16 radix
= 8;
3813 aStrBuf
.append( input
, radix
);
3815 CPPUNIT_ASSERT_EQUAL_MESSAGE
3817 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
3818 expVal
, OString(aStrBuf
.getStr())
3820 CPPUNIT_ASSERT_EQUAL_MESSAGE
3822 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
3823 expVal
.getLength(), aStrBuf
.getLength()
3830 OStringBuffer
aStrBuf( arrOUS
[0] );
3831 OString
expVal( aStrBuf
.getStr() );
3832 sal_Int32 input
= 8;
3833 sal_Int16 radix
= 8;
3835 expVal
+= "10"_ostr
;
3836 aStrBuf
.append( input
, radix
);
3838 CPPUNIT_ASSERT_EQUAL_MESSAGE
3840 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
3841 expVal
, OString(aStrBuf
.getStr())
3843 CPPUNIT_ASSERT_EQUAL_MESSAGE
3845 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
3846 expVal
.getLength(), aStrBuf
.getLength()
3853 OStringBuffer
aStrBuf( arrOUS
[0] );
3854 OString
expVal( aStrBuf
.getStr() );
3855 sal_Int32 input
= 15;
3856 sal_Int16 radix
= 8;
3858 expVal
+= "17"_ostr
;
3859 aStrBuf
.append( input
, radix
);
3861 CPPUNIT_ASSERT_EQUAL_MESSAGE
3863 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
3864 expVal
, OString(aStrBuf
.getStr())
3866 CPPUNIT_ASSERT_EQUAL_MESSAGE
3868 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[0]",
3869 expVal
.getLength(), aStrBuf
.getLength()
3876 OStringBuffer
aStrBuf( arrOUS
[0] );
3877 OString
expVal( aStrBuf
.getStr() );
3878 sal_Int32 input
= 0;
3879 sal_Int16 radix
= 10;
3882 aStrBuf
.append( input
, radix
);
3884 CPPUNIT_ASSERT_EQUAL_MESSAGE
3886 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
3887 expVal
, OString(aStrBuf
.getStr())
3889 CPPUNIT_ASSERT_EQUAL_MESSAGE
3891 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
3892 expVal
.getLength(), aStrBuf
.getLength()
3899 OStringBuffer
aStrBuf( arrOUS
[0] );
3900 OString
expVal( aStrBuf
.getStr() );
3901 sal_Int32 input
= 4;
3902 sal_Int16 radix
= 10;
3905 aStrBuf
.append( input
, radix
);
3907 CPPUNIT_ASSERT_EQUAL_MESSAGE
3909 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
3910 expVal
, OString(aStrBuf
.getStr())
3912 CPPUNIT_ASSERT_EQUAL_MESSAGE
3914 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
3915 expVal
.getLength(), aStrBuf
.getLength()
3922 OStringBuffer
aStrBuf( arrOUS
[0] );
3923 OString
expVal( aStrBuf
.getStr() );
3924 sal_Int32 input
= 8;
3925 sal_Int16 radix
= 10;
3928 aStrBuf
.append( input
, radix
);
3930 CPPUNIT_ASSERT_EQUAL_MESSAGE
3932 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
3933 expVal
, OString(aStrBuf
.getStr())
3935 CPPUNIT_ASSERT_EQUAL_MESSAGE
3937 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
3938 expVal
.getLength(), aStrBuf
.getLength()
3945 OStringBuffer
aStrBuf( arrOUS
[0] );
3946 OString
expVal( aStrBuf
.getStr() );
3947 sal_Int32 input
= 15;
3948 sal_Int16 radix
= 10;
3950 expVal
+= "15"_ostr
;
3951 aStrBuf
.append( input
, radix
);
3953 CPPUNIT_ASSERT_EQUAL_MESSAGE
3955 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
3956 expVal
, OString(aStrBuf
.getStr())
3958 CPPUNIT_ASSERT_EQUAL_MESSAGE
3960 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[0]",
3961 expVal
.getLength(), aStrBuf
.getLength()
3968 OStringBuffer
aStrBuf( arrOUS
[0] );
3969 OString
expVal( aStrBuf
.getStr() );
3970 sal_Int32 input
= 0;
3971 sal_Int16 radix
= 16;
3974 aStrBuf
.append( input
, radix
);
3976 CPPUNIT_ASSERT_EQUAL_MESSAGE
3978 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
3979 expVal
, OString(aStrBuf
.getStr())
3981 CPPUNIT_ASSERT_EQUAL_MESSAGE
3983 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
3984 expVal
.getLength(), aStrBuf
.getLength()
3991 OStringBuffer
aStrBuf( arrOUS
[0] );
3992 OString
expVal( aStrBuf
.getStr() );
3993 sal_Int32 input
= 4;
3994 sal_Int16 radix
= 16;
3997 aStrBuf
.append( input
, radix
);
3999 CPPUNIT_ASSERT_EQUAL_MESSAGE
4001 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
4002 expVal
, OString(aStrBuf
.getStr())
4004 CPPUNIT_ASSERT_EQUAL_MESSAGE
4006 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
4007 expVal
.getLength(), aStrBuf
.getLength()
4014 OStringBuffer
aStrBuf( arrOUS
[0] );
4015 OString
expVal( aStrBuf
.getStr() );
4016 sal_Int32 input
= 8;
4017 sal_Int16 radix
= 16;
4020 aStrBuf
.append( input
, radix
);
4022 CPPUNIT_ASSERT_EQUAL_MESSAGE
4024 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
4025 expVal
, OString(aStrBuf
.getStr())
4027 CPPUNIT_ASSERT_EQUAL_MESSAGE
4029 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
4030 expVal
.getLength(), aStrBuf
.getLength()
4037 OStringBuffer
aStrBuf( arrOUS
[0] );
4038 OString
expVal( aStrBuf
.getStr() );
4039 sal_Int32 input
= 15;
4040 sal_Int16 radix
= 16;
4043 aStrBuf
.append( input
, radix
);
4045 CPPUNIT_ASSERT_EQUAL_MESSAGE
4047 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
4048 expVal
, OString(aStrBuf
.getStr())
4050 CPPUNIT_ASSERT_EQUAL_MESSAGE
4052 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
4053 expVal
.getLength(), aStrBuf
.getLength()
4060 OStringBuffer
aStrBuf( arrOUS
[0] );
4061 OString
expVal( aStrBuf
.getStr() );
4062 sal_Int32 input
= 0;
4063 sal_Int16 radix
= 36;
4066 aStrBuf
.append( input
, radix
);
4068 CPPUNIT_ASSERT_EQUAL_MESSAGE
4070 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
4071 expVal
, OString(aStrBuf
.getStr())
4073 CPPUNIT_ASSERT_EQUAL_MESSAGE
4075 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
4076 expVal
.getLength(), aStrBuf
.getLength()
4083 OStringBuffer
aStrBuf( arrOUS
[0] );
4084 OString
expVal( aStrBuf
.getStr() );
4085 sal_Int32 input
= 4;
4086 sal_Int16 radix
= 36;
4089 aStrBuf
.append( input
, radix
);
4091 CPPUNIT_ASSERT_EQUAL_MESSAGE
4093 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
4094 expVal
, OString(aStrBuf
.getStr())
4096 CPPUNIT_ASSERT_EQUAL_MESSAGE
4098 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
4099 expVal
.getLength(), aStrBuf
.getLength()
4106 OStringBuffer
aStrBuf( arrOUS
[0] );
4107 OString
expVal( aStrBuf
.getStr() );
4108 sal_Int32 input
= 8;
4109 sal_Int16 radix
= 36;
4112 aStrBuf
.append( input
, radix
);
4114 CPPUNIT_ASSERT_EQUAL_MESSAGE
4116 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
4117 expVal
, OString(aStrBuf
.getStr())
4119 CPPUNIT_ASSERT_EQUAL_MESSAGE
4121 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
4122 expVal
.getLength(), aStrBuf
.getLength()
4129 OStringBuffer
aStrBuf( arrOUS
[0] );
4130 OString
expVal( aStrBuf
.getStr() );
4131 sal_Int32 input
= 35;
4132 sal_Int16 radix
= 36;
4135 aStrBuf
.append( input
, radix
);
4137 CPPUNIT_ASSERT_EQUAL_MESSAGE
4139 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
4140 expVal
, OString(aStrBuf
.getStr())
4142 CPPUNIT_ASSERT_EQUAL_MESSAGE
4144 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[0]",
4145 expVal
.getLength(), aStrBuf
.getLength()
4152 OStringBuffer
aStrBuf( arrOUS
[1] );
4153 OString
expVal( aStrBuf
.getStr() );
4154 sal_Int32 input
= 0;
4155 sal_Int16 radix
= 2;
4158 aStrBuf
.append( input
, radix
);
4160 CPPUNIT_ASSERT_EQUAL_MESSAGE
4162 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
4163 expVal
, OString(aStrBuf
.getStr())
4165 CPPUNIT_ASSERT_EQUAL_MESSAGE
4167 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
4168 expVal
.getLength(), aStrBuf
.getLength()
4175 OStringBuffer
aStrBuf( arrOUS
[1] );
4176 OString
expVal( aStrBuf
.getStr() );
4177 sal_Int32 input
= 4;
4178 sal_Int16 radix
= 2;
4180 expVal
+= "100"_ostr
;
4181 aStrBuf
.append( input
, radix
);
4183 CPPUNIT_ASSERT_EQUAL_MESSAGE
4185 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
4186 expVal
, OString(aStrBuf
.getStr())
4188 CPPUNIT_ASSERT_EQUAL_MESSAGE
4190 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
4191 expVal
.getLength(), aStrBuf
.getLength()
4198 OStringBuffer
aStrBuf( arrOUS
[1] );
4199 OString
expVal( aStrBuf
.getStr() );
4200 sal_Int32 input
= 8;
4201 sal_Int16 radix
= 2;
4203 expVal
+= "1000"_ostr
;
4204 aStrBuf
.append( input
, radix
);
4206 CPPUNIT_ASSERT_EQUAL_MESSAGE
4208 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
4209 expVal
, OString(aStrBuf
.getStr())
4211 CPPUNIT_ASSERT_EQUAL_MESSAGE
4213 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
4214 expVal
.getLength(), aStrBuf
.getLength()
4221 OStringBuffer
aStrBuf( arrOUS
[1] );
4222 OString
expVal( aStrBuf
.getStr() );
4223 sal_Int32 input
= 15;
4224 sal_Int16 radix
= 2;
4226 expVal
+= "1111"_ostr
;
4227 aStrBuf
.append( input
, radix
);
4229 CPPUNIT_ASSERT_EQUAL_MESSAGE
4231 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
4232 expVal
, OString(aStrBuf
.getStr())
4234 CPPUNIT_ASSERT_EQUAL_MESSAGE
4236 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[1]",
4237 expVal
.getLength(), aStrBuf
.getLength()
4244 OStringBuffer
aStrBuf( arrOUS
[1] );
4245 OString
expVal( aStrBuf
.getStr() );
4246 sal_Int32 input
= 0;
4247 sal_Int16 radix
= 8;
4250 aStrBuf
.append( input
, radix
);
4252 CPPUNIT_ASSERT_EQUAL_MESSAGE
4254 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
4255 expVal
, OString(aStrBuf
.getStr())
4257 CPPUNIT_ASSERT_EQUAL_MESSAGE
4259 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
4260 expVal
.getLength(), aStrBuf
.getLength()
4267 OStringBuffer
aStrBuf( arrOUS
[1] );
4268 OString
expVal( aStrBuf
.getStr() );
4269 sal_Int32 input
= 4;
4270 sal_Int16 radix
= 8;
4273 aStrBuf
.append( input
, radix
);
4275 CPPUNIT_ASSERT_EQUAL_MESSAGE
4277 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
4278 expVal
, OString(aStrBuf
.getStr())
4280 CPPUNIT_ASSERT_EQUAL_MESSAGE
4282 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
4283 expVal
.getLength(), aStrBuf
.getLength()
4290 OStringBuffer
aStrBuf( arrOUS
[1] );
4291 OString
expVal( aStrBuf
.getStr() );
4292 sal_Int32 input
= 8;
4293 sal_Int16 radix
= 8;
4295 expVal
+= "10"_ostr
;
4296 aStrBuf
.append( input
, radix
);
4298 CPPUNIT_ASSERT_EQUAL_MESSAGE
4300 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
4301 expVal
, OString(aStrBuf
.getStr())
4303 CPPUNIT_ASSERT_EQUAL_MESSAGE
4305 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
4306 expVal
.getLength(), aStrBuf
.getLength()
4313 OStringBuffer
aStrBuf( arrOUS
[1] );
4314 OString
expVal( aStrBuf
.getStr() );
4315 sal_Int32 input
= 15;
4316 sal_Int16 radix
= 8;
4318 expVal
+= "17"_ostr
;
4319 aStrBuf
.append( input
, radix
);
4321 CPPUNIT_ASSERT_EQUAL_MESSAGE
4323 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
4324 expVal
, OString(aStrBuf
.getStr())
4326 CPPUNIT_ASSERT_EQUAL_MESSAGE
4328 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[1]",
4329 expVal
.getLength(), aStrBuf
.getLength()
4336 OStringBuffer
aStrBuf( arrOUS
[1] );
4337 OString
expVal( aStrBuf
.getStr() );
4338 sal_Int32 input
= 0;
4339 sal_Int16 radix
= 10;
4342 aStrBuf
.append( input
, radix
);
4344 CPPUNIT_ASSERT_EQUAL_MESSAGE
4346 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
4347 expVal
, OString(aStrBuf
.getStr())
4349 CPPUNIT_ASSERT_EQUAL_MESSAGE
4351 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
4352 expVal
.getLength(), aStrBuf
.getLength()
4359 OStringBuffer
aStrBuf( arrOUS
[1] );
4360 OString
expVal( aStrBuf
.getStr() );
4361 sal_Int32 input
= 4;
4362 sal_Int16 radix
= 10;
4365 aStrBuf
.append( input
, radix
);
4367 CPPUNIT_ASSERT_EQUAL_MESSAGE
4369 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
4370 expVal
, OString(aStrBuf
.getStr())
4372 CPPUNIT_ASSERT_EQUAL_MESSAGE
4374 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
4375 expVal
.getLength(), aStrBuf
.getLength()
4382 OStringBuffer
aStrBuf( arrOUS
[1] );
4383 OString
expVal( aStrBuf
.getStr() );
4384 sal_Int32 input
= 8;
4385 sal_Int16 radix
= 10;
4388 aStrBuf
.append( input
, radix
);
4390 CPPUNIT_ASSERT_EQUAL_MESSAGE
4392 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
4393 expVal
, OString(aStrBuf
.getStr())
4395 CPPUNIT_ASSERT_EQUAL_MESSAGE
4397 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
4398 expVal
.getLength(), aStrBuf
.getLength()
4405 OStringBuffer
aStrBuf( arrOUS
[1] );
4406 OString
expVal( aStrBuf
.getStr() );
4407 sal_Int32 input
= 15;
4408 sal_Int16 radix
= 10;
4410 expVal
+= "15"_ostr
;
4411 aStrBuf
.append( input
, radix
);
4413 CPPUNIT_ASSERT_EQUAL_MESSAGE
4415 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
4416 expVal
, OString(aStrBuf
.getStr())
4418 CPPUNIT_ASSERT_EQUAL_MESSAGE
4420 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[1]",
4421 expVal
.getLength(), aStrBuf
.getLength()
4428 OStringBuffer
aStrBuf( arrOUS
[1] );
4429 OString
expVal( aStrBuf
.getStr() );
4430 sal_Int32 input
= 0;
4431 sal_Int16 radix
= 16;
4434 aStrBuf
.append( input
, radix
);
4436 CPPUNIT_ASSERT_EQUAL_MESSAGE
4438 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
4439 expVal
, OString(aStrBuf
.getStr())
4441 CPPUNIT_ASSERT_EQUAL_MESSAGE
4443 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
4444 expVal
.getLength(), aStrBuf
.getLength()
4451 OStringBuffer
aStrBuf( arrOUS
[1] );
4452 OString
expVal( aStrBuf
.getStr() );
4453 sal_Int32 input
= 4;
4454 sal_Int16 radix
= 16;
4457 aStrBuf
.append( input
, radix
);
4459 CPPUNIT_ASSERT_EQUAL_MESSAGE
4461 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
4462 expVal
, OString(aStrBuf
.getStr())
4464 CPPUNIT_ASSERT_EQUAL_MESSAGE
4466 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
4467 expVal
.getLength(), aStrBuf
.getLength()
4474 OStringBuffer
aStrBuf( arrOUS
[1] );
4475 OString
expVal( aStrBuf
.getStr() );
4476 sal_Int32 input
= 8;
4477 sal_Int16 radix
= 16;
4480 aStrBuf
.append( input
, radix
);
4482 CPPUNIT_ASSERT_EQUAL_MESSAGE
4484 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
4485 expVal
, OString(aStrBuf
.getStr())
4487 CPPUNIT_ASSERT_EQUAL_MESSAGE
4489 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
4490 expVal
.getLength(), aStrBuf
.getLength()
4497 OStringBuffer
aStrBuf( arrOUS
[1] );
4498 OString
expVal( aStrBuf
.getStr() );
4499 sal_Int32 input
= 15;
4500 sal_Int16 radix
= 16;
4503 aStrBuf
.append( input
, radix
);
4505 CPPUNIT_ASSERT_EQUAL_MESSAGE
4507 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
4508 expVal
, OString(aStrBuf
.getStr())
4510 CPPUNIT_ASSERT_EQUAL_MESSAGE
4512 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
4513 expVal
.getLength(), aStrBuf
.getLength()
4520 OStringBuffer
aStrBuf( arrOUS
[1] );
4521 OString
expVal( aStrBuf
.getStr() );
4522 sal_Int32 input
= 0;
4523 sal_Int16 radix
= 36;
4526 aStrBuf
.append( input
, radix
);
4528 CPPUNIT_ASSERT_EQUAL_MESSAGE
4530 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
4531 expVal
, OString(aStrBuf
.getStr())
4533 CPPUNIT_ASSERT_EQUAL_MESSAGE
4535 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
4536 expVal
.getLength(), aStrBuf
.getLength()
4543 OStringBuffer
aStrBuf( arrOUS
[1] );
4544 OString
expVal( aStrBuf
.getStr() );
4545 sal_Int32 input
= 4;
4546 sal_Int16 radix
= 36;
4549 aStrBuf
.append( input
, radix
);
4551 CPPUNIT_ASSERT_EQUAL_MESSAGE
4553 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
4554 expVal
, OString(aStrBuf
.getStr())
4556 CPPUNIT_ASSERT_EQUAL_MESSAGE
4558 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
4559 expVal
.getLength(), aStrBuf
.getLength()
4566 OStringBuffer
aStrBuf( arrOUS
[1] );
4567 OString
expVal( aStrBuf
.getStr() );
4568 sal_Int32 input
= 8;
4569 sal_Int16 radix
= 36;
4572 aStrBuf
.append( input
, radix
);
4574 CPPUNIT_ASSERT_EQUAL_MESSAGE
4576 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
4577 expVal
, OString(aStrBuf
.getStr())
4579 CPPUNIT_ASSERT_EQUAL_MESSAGE
4581 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
4582 expVal
.getLength(), aStrBuf
.getLength()
4589 OStringBuffer
aStrBuf( arrOUS
[1] );
4590 OString
expVal( aStrBuf
.getStr() );
4591 sal_Int32 input
= 35;
4592 sal_Int16 radix
= 36;
4595 aStrBuf
.append( input
, radix
);
4597 CPPUNIT_ASSERT_EQUAL_MESSAGE
4599 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
4600 expVal
, OString(aStrBuf
.getStr())
4602 CPPUNIT_ASSERT_EQUAL_MESSAGE
4604 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[1]",
4605 expVal
.getLength(), aStrBuf
.getLength()
4612 OStringBuffer
aStrBuf( arrOUS
[2] );
4613 OString
expVal( aStrBuf
.getStr() );
4614 sal_Int32 input
= 0;
4615 sal_Int16 radix
= 2;
4618 aStrBuf
.append( input
, radix
);
4620 CPPUNIT_ASSERT_EQUAL_MESSAGE
4622 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
4623 expVal
, OString(aStrBuf
.getStr())
4625 CPPUNIT_ASSERT_EQUAL_MESSAGE
4627 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
4628 expVal
.getLength(), aStrBuf
.getLength()
4635 OStringBuffer
aStrBuf( arrOUS
[2] );
4636 OString
expVal( aStrBuf
.getStr() );
4637 sal_Int32 input
= 4;
4638 sal_Int16 radix
= 2;
4640 expVal
+= "100"_ostr
;
4641 aStrBuf
.append( input
, radix
);
4643 CPPUNIT_ASSERT_EQUAL_MESSAGE
4645 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
4646 expVal
, OString(aStrBuf
.getStr())
4648 CPPUNIT_ASSERT_EQUAL_MESSAGE
4650 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
4651 expVal
.getLength(), aStrBuf
.getLength()
4658 OStringBuffer
aStrBuf( arrOUS
[2] );
4659 OString
expVal( aStrBuf
.getStr() );
4660 sal_Int32 input
= 8;
4661 sal_Int16 radix
= 2;
4663 expVal
+= "1000"_ostr
;
4664 aStrBuf
.append( input
, radix
);
4666 CPPUNIT_ASSERT_EQUAL_MESSAGE
4668 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
4669 expVal
, OString(aStrBuf
.getStr())
4671 CPPUNIT_ASSERT_EQUAL_MESSAGE
4673 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
4674 expVal
.getLength(), aStrBuf
.getLength()
4681 OStringBuffer
aStrBuf( arrOUS
[2] );
4682 OString
expVal( aStrBuf
.getStr() );
4683 sal_Int32 input
= 15;
4684 sal_Int16 radix
= 2;
4686 expVal
+= "1111"_ostr
;
4687 aStrBuf
.append( input
, radix
);
4689 CPPUNIT_ASSERT_EQUAL_MESSAGE
4691 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
4692 expVal
, OString(aStrBuf
.getStr())
4694 CPPUNIT_ASSERT_EQUAL_MESSAGE
4696 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[2]",
4697 expVal
.getLength(), aStrBuf
.getLength()
4704 OStringBuffer
aStrBuf( arrOUS
[2] );
4705 OString
expVal( aStrBuf
.getStr() );
4706 sal_Int32 input
= 0;
4707 sal_Int16 radix
= 8;
4710 aStrBuf
.append( input
, radix
);
4712 CPPUNIT_ASSERT_EQUAL_MESSAGE
4714 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
4715 expVal
, OString(aStrBuf
.getStr())
4717 CPPUNIT_ASSERT_EQUAL_MESSAGE
4719 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
4720 expVal
.getLength(), aStrBuf
.getLength()
4727 OStringBuffer
aStrBuf( arrOUS
[2] );
4728 OString
expVal( aStrBuf
.getStr() );
4729 sal_Int32 input
= 4;
4730 sal_Int16 radix
= 8;
4733 aStrBuf
.append( input
, radix
);
4735 CPPUNIT_ASSERT_EQUAL_MESSAGE
4737 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
4738 expVal
, OString(aStrBuf
.getStr())
4740 CPPUNIT_ASSERT_EQUAL_MESSAGE
4742 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
4743 expVal
.getLength(), aStrBuf
.getLength()
4750 OStringBuffer
aStrBuf( arrOUS
[2] );
4751 OString
expVal( aStrBuf
.getStr() );
4752 sal_Int32 input
= 8;
4753 sal_Int16 radix
= 8;
4755 expVal
+= "10"_ostr
;
4756 aStrBuf
.append( input
, radix
);
4758 CPPUNIT_ASSERT_EQUAL_MESSAGE
4760 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
4761 expVal
, OString(aStrBuf
.getStr())
4763 CPPUNIT_ASSERT_EQUAL_MESSAGE
4765 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
4766 expVal
.getLength(), aStrBuf
.getLength()
4773 OStringBuffer
aStrBuf( arrOUS
[2] );
4774 OString
expVal( aStrBuf
.getStr() );
4775 sal_Int32 input
= 15;
4776 sal_Int16 radix
= 8;
4778 expVal
+= "17"_ostr
;
4779 aStrBuf
.append( input
, radix
);
4781 CPPUNIT_ASSERT_EQUAL_MESSAGE
4783 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
4784 expVal
, OString(aStrBuf
.getStr())
4786 CPPUNIT_ASSERT_EQUAL_MESSAGE
4788 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[2]",
4789 expVal
.getLength(), aStrBuf
.getLength()
4796 OStringBuffer
aStrBuf( arrOUS
[2] );
4797 OString
expVal( aStrBuf
.getStr() );
4798 sal_Int32 input
= 0;
4799 sal_Int16 radix
= 10;
4802 aStrBuf
.append( input
, radix
);
4804 CPPUNIT_ASSERT_EQUAL_MESSAGE
4806 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
4807 expVal
, OString(aStrBuf
.getStr())
4809 CPPUNIT_ASSERT_EQUAL_MESSAGE
4811 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
4812 expVal
.getLength(), aStrBuf
.getLength()
4819 OStringBuffer
aStrBuf( arrOUS
[2] );
4820 OString
expVal( aStrBuf
.getStr() );
4821 sal_Int32 input
= 4;
4822 sal_Int16 radix
= 10;
4825 aStrBuf
.append( input
, radix
);
4827 CPPUNIT_ASSERT_EQUAL_MESSAGE
4829 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
4830 expVal
, OString(aStrBuf
.getStr())
4832 CPPUNIT_ASSERT_EQUAL_MESSAGE
4834 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
4835 expVal
.getLength(), aStrBuf
.getLength()
4842 OStringBuffer
aStrBuf( arrOUS
[2] );
4843 OString
expVal( aStrBuf
.getStr() );
4844 sal_Int32 input
= 8;
4845 sal_Int16 radix
= 10;
4848 aStrBuf
.append( input
, radix
);
4850 CPPUNIT_ASSERT_EQUAL_MESSAGE
4852 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
4853 expVal
, OString(aStrBuf
.getStr())
4855 CPPUNIT_ASSERT_EQUAL_MESSAGE
4857 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
4858 expVal
.getLength(), aStrBuf
.getLength()
4865 OStringBuffer
aStrBuf( arrOUS
[2] );
4866 OString
expVal( aStrBuf
.getStr() );
4867 sal_Int32 input
= 15;
4868 sal_Int16 radix
= 10;
4870 expVal
+= "15"_ostr
;
4871 aStrBuf
.append( input
, radix
);
4873 CPPUNIT_ASSERT_EQUAL_MESSAGE
4875 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
4876 expVal
, OString(aStrBuf
.getStr())
4878 CPPUNIT_ASSERT_EQUAL_MESSAGE
4880 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[2]",
4881 expVal
.getLength(), aStrBuf
.getLength()
4888 OStringBuffer
aStrBuf( arrOUS
[2] );
4889 OString
expVal( aStrBuf
.getStr() );
4890 sal_Int32 input
= 0;
4891 sal_Int16 radix
= 16;
4894 aStrBuf
.append( input
, radix
);
4896 CPPUNIT_ASSERT_EQUAL_MESSAGE
4898 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
4899 expVal
, OString(aStrBuf
.getStr())
4901 CPPUNIT_ASSERT_EQUAL_MESSAGE
4903 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
4904 expVal
.getLength(), aStrBuf
.getLength()
4911 OStringBuffer
aStrBuf( arrOUS
[2] );
4912 OString
expVal( aStrBuf
.getStr() );
4913 sal_Int32 input
= 4;
4914 sal_Int16 radix
= 16;
4917 aStrBuf
.append( input
, radix
);
4919 CPPUNIT_ASSERT_EQUAL_MESSAGE
4921 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
4922 expVal
, OString(aStrBuf
.getStr())
4924 CPPUNIT_ASSERT_EQUAL_MESSAGE
4926 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
4927 expVal
.getLength(), aStrBuf
.getLength()
4934 OStringBuffer
aStrBuf( arrOUS
[2] );
4935 OString
expVal( aStrBuf
.getStr() );
4936 sal_Int32 input
= 8;
4937 sal_Int16 radix
= 16;
4940 aStrBuf
.append( input
, radix
);
4942 CPPUNIT_ASSERT_EQUAL_MESSAGE
4944 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
4945 expVal
, OString(aStrBuf
.getStr())
4947 CPPUNIT_ASSERT_EQUAL_MESSAGE
4949 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
4950 expVal
.getLength(), aStrBuf
.getLength()
4957 OStringBuffer
aStrBuf( arrOUS
[2] );
4958 OString
expVal( aStrBuf
.getStr() );
4959 sal_Int32 input
= 15;
4960 sal_Int16 radix
= 16;
4963 aStrBuf
.append( input
, radix
);
4965 CPPUNIT_ASSERT_EQUAL_MESSAGE
4967 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
4968 expVal
, OString(aStrBuf
.getStr())
4970 CPPUNIT_ASSERT_EQUAL_MESSAGE
4972 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
4973 expVal
.getLength(), aStrBuf
.getLength()
4980 OStringBuffer
aStrBuf( arrOUS
[2] );
4981 OString
expVal( aStrBuf
.getStr() );
4982 sal_Int32 input
= 0;
4983 sal_Int16 radix
= 36;
4986 aStrBuf
.append( input
, radix
);
4988 CPPUNIT_ASSERT_EQUAL_MESSAGE
4990 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
4991 expVal
, OString(aStrBuf
.getStr())
4993 CPPUNIT_ASSERT_EQUAL_MESSAGE
4995 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
4996 expVal
.getLength(), aStrBuf
.getLength()
5003 OStringBuffer
aStrBuf( arrOUS
[2] );
5004 OString
expVal( aStrBuf
.getStr() );
5005 sal_Int32 input
= 4;
5006 sal_Int16 radix
= 36;
5009 aStrBuf
.append( input
, radix
);
5011 CPPUNIT_ASSERT_EQUAL_MESSAGE
5013 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
5014 expVal
, OString(aStrBuf
.getStr())
5016 CPPUNIT_ASSERT_EQUAL_MESSAGE
5018 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
5019 expVal
.getLength(), aStrBuf
.getLength()
5026 OStringBuffer
aStrBuf( arrOUS
[2] );
5027 OString
expVal( aStrBuf
.getStr() );
5028 sal_Int32 input
= 8;
5029 sal_Int16 radix
= 36;
5032 aStrBuf
.append( input
, radix
);
5034 CPPUNIT_ASSERT_EQUAL_MESSAGE
5036 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
5037 expVal
, OString(aStrBuf
.getStr())
5039 CPPUNIT_ASSERT_EQUAL_MESSAGE
5041 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
5042 expVal
.getLength(), aStrBuf
.getLength()
5049 OStringBuffer
aStrBuf( arrOUS
[2] );
5050 OString
expVal( aStrBuf
.getStr() );
5051 sal_Int32 input
= 35;
5052 sal_Int16 radix
= 36;
5055 aStrBuf
.append( input
, radix
);
5057 CPPUNIT_ASSERT_EQUAL_MESSAGE
5059 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
5060 expVal
, OString(aStrBuf
.getStr())
5062 CPPUNIT_ASSERT_EQUAL_MESSAGE
5064 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[2]",
5065 expVal
.getLength(), aStrBuf
.getLength()
5072 OStringBuffer
aStrBuf( arrOUS
[3] );
5073 OString
expVal( aStrBuf
.getStr() );
5074 sal_Int32 input
= 0;
5075 sal_Int16 radix
= 2;
5078 aStrBuf
.append( input
, radix
);
5080 CPPUNIT_ASSERT_EQUAL_MESSAGE
5082 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
5083 expVal
, OString(aStrBuf
.getStr())
5085 CPPUNIT_ASSERT_EQUAL_MESSAGE
5087 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
5088 expVal
.getLength(), aStrBuf
.getLength()
5095 OStringBuffer
aStrBuf( arrOUS
[3] );
5096 OString
expVal( aStrBuf
.getStr() );
5097 sal_Int32 input
= 4;
5098 sal_Int16 radix
= 2;
5100 expVal
+= "100"_ostr
;
5101 aStrBuf
.append( input
, radix
);
5103 CPPUNIT_ASSERT_EQUAL_MESSAGE
5105 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
5106 expVal
, OString(aStrBuf
.getStr())
5108 CPPUNIT_ASSERT_EQUAL_MESSAGE
5110 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
5111 expVal
.getLength(), aStrBuf
.getLength()
5118 OStringBuffer
aStrBuf( arrOUS
[3] );
5119 OString
expVal( aStrBuf
.getStr() );
5120 sal_Int32 input
= 8;
5121 sal_Int16 radix
= 2;
5123 expVal
+= "1000"_ostr
;
5124 aStrBuf
.append( input
, radix
);
5126 CPPUNIT_ASSERT_EQUAL_MESSAGE
5128 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
5129 expVal
, OString(aStrBuf
.getStr())
5131 CPPUNIT_ASSERT_EQUAL_MESSAGE
5133 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
5134 expVal
.getLength(), aStrBuf
.getLength()
5141 OStringBuffer
aStrBuf( arrOUS
[3] );
5142 OString
expVal( aStrBuf
.getStr() );
5143 sal_Int32 input
= 15;
5144 sal_Int16 radix
= 2;
5146 expVal
+= "1111"_ostr
;
5147 aStrBuf
.append( input
, radix
);
5149 CPPUNIT_ASSERT_EQUAL_MESSAGE
5151 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
5152 expVal
, OString(aStrBuf
.getStr())
5154 CPPUNIT_ASSERT_EQUAL_MESSAGE
5156 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[3]",
5157 expVal
.getLength(), aStrBuf
.getLength()
5164 OStringBuffer
aStrBuf( arrOUS
[3] );
5165 OString
expVal( aStrBuf
.getStr() );
5166 sal_Int32 input
= 0;
5167 sal_Int16 radix
= 8;
5170 aStrBuf
.append( input
, radix
);
5172 CPPUNIT_ASSERT_EQUAL_MESSAGE
5174 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
5175 expVal
, OString(aStrBuf
.getStr())
5177 CPPUNIT_ASSERT_EQUAL_MESSAGE
5179 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
5180 expVal
.getLength(), aStrBuf
.getLength()
5187 OStringBuffer
aStrBuf( arrOUS
[3] );
5188 OString
expVal( aStrBuf
.getStr() );
5189 sal_Int32 input
= 4;
5190 sal_Int16 radix
= 8;
5193 aStrBuf
.append( input
, radix
);
5195 CPPUNIT_ASSERT_EQUAL_MESSAGE
5197 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
5198 expVal
, OString(aStrBuf
.getStr())
5200 CPPUNIT_ASSERT_EQUAL_MESSAGE
5202 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
5203 expVal
.getLength(), aStrBuf
.getLength()
5210 OStringBuffer
aStrBuf( arrOUS
[3] );
5211 OString
expVal( aStrBuf
.getStr() );
5212 sal_Int32 input
= 8;
5213 sal_Int16 radix
= 8;
5215 expVal
+= "10"_ostr
;
5216 aStrBuf
.append( input
, radix
);
5218 CPPUNIT_ASSERT_EQUAL_MESSAGE
5220 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
5221 expVal
, OString(aStrBuf
.getStr())
5223 CPPUNIT_ASSERT_EQUAL_MESSAGE
5225 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
5226 expVal
.getLength(), aStrBuf
.getLength()
5233 OStringBuffer
aStrBuf( arrOUS
[3] );
5234 OString
expVal( aStrBuf
.getStr() );
5235 sal_Int32 input
= 15;
5236 sal_Int16 radix
= 8;
5238 expVal
+= "17"_ostr
;
5239 aStrBuf
.append( input
, radix
);
5241 CPPUNIT_ASSERT_EQUAL_MESSAGE
5243 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
5244 expVal
, OString(aStrBuf
.getStr())
5246 CPPUNIT_ASSERT_EQUAL_MESSAGE
5248 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[3]",
5249 expVal
.getLength(), aStrBuf
.getLength()
5256 OStringBuffer
aStrBuf( arrOUS
[3] );
5257 OString
expVal( aStrBuf
.getStr() );
5258 sal_Int32 input
= 0;
5259 sal_Int16 radix
= 10;
5262 aStrBuf
.append( input
, radix
);
5264 CPPUNIT_ASSERT_EQUAL_MESSAGE
5266 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
5267 expVal
, OString(aStrBuf
.getStr())
5269 CPPUNIT_ASSERT_EQUAL_MESSAGE
5271 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
5272 expVal
.getLength(), aStrBuf
.getLength()
5279 OStringBuffer
aStrBuf( arrOUS
[3] );
5280 OString
expVal( aStrBuf
.getStr() );
5281 sal_Int32 input
= 4;
5282 sal_Int16 radix
= 10;
5285 aStrBuf
.append( input
, radix
);
5287 CPPUNIT_ASSERT_EQUAL_MESSAGE
5289 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
5290 expVal
, OString(aStrBuf
.getStr())
5292 CPPUNIT_ASSERT_EQUAL_MESSAGE
5294 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
5295 expVal
.getLength(), aStrBuf
.getLength()
5302 OStringBuffer
aStrBuf( arrOUS
[3] );
5303 OString
expVal( aStrBuf
.getStr() );
5304 sal_Int32 input
= 8;
5305 sal_Int16 radix
= 10;
5308 aStrBuf
.append( input
, radix
);
5310 CPPUNIT_ASSERT_EQUAL_MESSAGE
5312 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
5313 expVal
, OString(aStrBuf
.getStr())
5315 CPPUNIT_ASSERT_EQUAL_MESSAGE
5317 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
5318 expVal
.getLength(), aStrBuf
.getLength()
5325 OStringBuffer
aStrBuf( arrOUS
[3] );
5326 OString
expVal( aStrBuf
.getStr() );
5327 sal_Int32 input
= 15;
5328 sal_Int16 radix
= 10;
5330 expVal
+= "15"_ostr
;
5331 aStrBuf
.append( input
, radix
);
5333 CPPUNIT_ASSERT_EQUAL_MESSAGE
5335 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
5336 expVal
, OString(aStrBuf
.getStr())
5338 CPPUNIT_ASSERT_EQUAL_MESSAGE
5340 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[3]",
5341 expVal
.getLength(), aStrBuf
.getLength()
5348 OStringBuffer
aStrBuf( arrOUS
[3] );
5349 OString
expVal( aStrBuf
.getStr() );
5350 sal_Int32 input
= 0;
5351 sal_Int16 radix
= 16;
5354 aStrBuf
.append( input
, radix
);
5356 CPPUNIT_ASSERT_EQUAL_MESSAGE
5358 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
5359 expVal
, OString(aStrBuf
.getStr())
5361 CPPUNIT_ASSERT_EQUAL_MESSAGE
5363 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
5364 expVal
.getLength(), aStrBuf
.getLength()
5371 OStringBuffer
aStrBuf( arrOUS
[3] );
5372 OString
expVal( aStrBuf
.getStr() );
5373 sal_Int32 input
= 4;
5374 sal_Int16 radix
= 16;
5377 aStrBuf
.append( input
, radix
);
5379 CPPUNIT_ASSERT_EQUAL_MESSAGE
5381 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
5382 expVal
, OString(aStrBuf
.getStr())
5384 CPPUNIT_ASSERT_EQUAL_MESSAGE
5386 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
5387 expVal
.getLength(), aStrBuf
.getLength()
5394 OStringBuffer
aStrBuf( arrOUS
[3] );
5395 OString
expVal( aStrBuf
.getStr() );
5396 sal_Int32 input
= 8;
5397 sal_Int16 radix
= 16;
5400 aStrBuf
.append( input
, radix
);
5402 CPPUNIT_ASSERT_EQUAL_MESSAGE
5404 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
5405 expVal
, OString(aStrBuf
.getStr())
5407 CPPUNIT_ASSERT_EQUAL_MESSAGE
5409 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
5410 expVal
.getLength(), aStrBuf
.getLength()
5417 OStringBuffer
aStrBuf( arrOUS
[3] );
5418 OString
expVal( aStrBuf
.getStr() );
5419 sal_Int32 input
= 15;
5420 sal_Int16 radix
= 16;
5423 aStrBuf
.append( input
, radix
);
5425 CPPUNIT_ASSERT_EQUAL_MESSAGE
5427 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
5428 expVal
, OString(aStrBuf
.getStr())
5430 CPPUNIT_ASSERT_EQUAL_MESSAGE
5432 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
5433 expVal
.getLength(), aStrBuf
.getLength()
5440 OStringBuffer
aStrBuf( arrOUS
[3] );
5441 OString
expVal( aStrBuf
.getStr() );
5442 sal_Int32 input
= 0;
5443 sal_Int16 radix
= 36;
5446 aStrBuf
.append( input
, radix
);
5448 CPPUNIT_ASSERT_EQUAL_MESSAGE
5450 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
5451 expVal
, OString(aStrBuf
.getStr())
5453 CPPUNIT_ASSERT_EQUAL_MESSAGE
5455 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
5456 expVal
.getLength(), aStrBuf
.getLength()
5463 OStringBuffer
aStrBuf( arrOUS
[3] );
5464 OString
expVal( aStrBuf
.getStr() );
5465 sal_Int32 input
= 4;
5466 sal_Int16 radix
= 36;
5469 aStrBuf
.append( input
, radix
);
5471 CPPUNIT_ASSERT_EQUAL_MESSAGE
5473 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
5474 expVal
, OString(aStrBuf
.getStr())
5476 CPPUNIT_ASSERT_EQUAL_MESSAGE
5478 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
5479 expVal
.getLength(), aStrBuf
.getLength()
5486 OStringBuffer
aStrBuf( arrOUS
[3] );
5487 OString
expVal( aStrBuf
.getStr() );
5488 sal_Int32 input
= 8;
5489 sal_Int16 radix
= 36;
5492 aStrBuf
.append( input
, radix
);
5494 CPPUNIT_ASSERT_EQUAL_MESSAGE
5496 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
5497 expVal
, OString(aStrBuf
.getStr())
5499 CPPUNIT_ASSERT_EQUAL_MESSAGE
5501 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
5502 expVal
.getLength(), aStrBuf
.getLength()
5509 OStringBuffer
aStrBuf( arrOUS
[3] );
5510 OString
expVal( aStrBuf
.getStr() );
5511 sal_Int32 input
= 35;
5512 sal_Int16 radix
= 36;
5515 aStrBuf
.append( input
, radix
);
5517 CPPUNIT_ASSERT_EQUAL_MESSAGE
5519 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
5520 expVal
, OString(aStrBuf
.getStr())
5522 CPPUNIT_ASSERT_EQUAL_MESSAGE
5524 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[3]",
5525 expVal
.getLength(), aStrBuf
.getLength()
5532 OStringBuffer
aStrBuf( arrOUS
[4] );
5533 OString
expVal( aStrBuf
.getStr() );
5534 sal_Int32 input
= 0;
5535 sal_Int16 radix
= 2;
5538 aStrBuf
.append( input
, radix
);
5540 CPPUNIT_ASSERT_EQUAL_MESSAGE
5542 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
5543 expVal
, OString(aStrBuf
.getStr())
5545 CPPUNIT_ASSERT_EQUAL_MESSAGE
5547 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
5548 expVal
.getLength(), aStrBuf
.getLength()
5555 OStringBuffer
aStrBuf( arrOUS
[4] );
5556 OString
expVal( aStrBuf
.getStr() );
5557 sal_Int32 input
= 4;
5558 sal_Int16 radix
= 2;
5560 expVal
+= "100"_ostr
;
5561 aStrBuf
.append( input
, radix
);
5563 CPPUNIT_ASSERT_EQUAL_MESSAGE
5565 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
5566 expVal
, OString(aStrBuf
.getStr())
5568 CPPUNIT_ASSERT_EQUAL_MESSAGE
5570 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
5571 expVal
.getLength(), aStrBuf
.getLength()
5578 OStringBuffer
aStrBuf( arrOUS
[4] );
5579 OString
expVal( aStrBuf
.getStr() );
5580 sal_Int32 input
= 8;
5581 sal_Int16 radix
= 2;
5583 expVal
+= "1000"_ostr
;
5584 aStrBuf
.append( input
, radix
);
5586 CPPUNIT_ASSERT_EQUAL_MESSAGE
5588 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
5589 expVal
, OString(aStrBuf
.getStr())
5591 CPPUNIT_ASSERT_EQUAL_MESSAGE
5593 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
5594 expVal
.getLength(), aStrBuf
.getLength()
5601 OStringBuffer
aStrBuf( arrOUS
[4] );
5602 OString
expVal( aStrBuf
.getStr() );
5603 sal_Int32 input
= 15;
5604 sal_Int16 radix
= 2;
5606 expVal
+= "1111"_ostr
;
5607 aStrBuf
.append( input
, radix
);
5609 CPPUNIT_ASSERT_EQUAL_MESSAGE
5611 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
5612 expVal
, OString(aStrBuf
.getStr())
5614 CPPUNIT_ASSERT_EQUAL_MESSAGE
5616 "append(sal_Int32, radix 2)_006_kRadixBinary for arrOUS[4]",
5617 expVal
.getLength(), aStrBuf
.getLength()
5624 OStringBuffer
aStrBuf( arrOUS
[4] );
5625 OString
expVal( aStrBuf
.getStr() );
5626 sal_Int32 input
= 0;
5627 sal_Int16 radix
= 8;
5630 aStrBuf
.append( input
, radix
);
5632 CPPUNIT_ASSERT_EQUAL_MESSAGE
5634 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
5635 expVal
, OString(aStrBuf
.getStr())
5637 CPPUNIT_ASSERT_EQUAL_MESSAGE
5639 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
5640 expVal
.getLength(), aStrBuf
.getLength()
5647 OStringBuffer
aStrBuf( arrOUS
[4] );
5648 OString
expVal( aStrBuf
.getStr() );
5649 sal_Int32 input
= 4;
5650 sal_Int16 radix
= 8;
5653 aStrBuf
.append( input
, radix
);
5655 CPPUNIT_ASSERT_EQUAL_MESSAGE
5657 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
5658 expVal
, OString(aStrBuf
.getStr())
5660 CPPUNIT_ASSERT_EQUAL_MESSAGE
5662 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
5663 expVal
.getLength(), aStrBuf
.getLength()
5670 OStringBuffer
aStrBuf( arrOUS
[4] );
5671 OString
expVal( aStrBuf
.getStr() );
5672 sal_Int32 input
= 8;
5673 sal_Int16 radix
= 8;
5675 expVal
+= "10"_ostr
;
5676 aStrBuf
.append( input
, radix
);
5678 CPPUNIT_ASSERT_EQUAL_MESSAGE
5680 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
5681 expVal
, OString(aStrBuf
.getStr())
5683 CPPUNIT_ASSERT_EQUAL_MESSAGE
5685 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
5686 expVal
.getLength(), aStrBuf
.getLength()
5693 OStringBuffer
aStrBuf( arrOUS
[4] );
5694 OString
expVal( aStrBuf
.getStr() );
5695 sal_Int32 input
= 15;
5696 sal_Int16 radix
= 8;
5698 expVal
+= "17"_ostr
;
5699 aStrBuf
.append( input
, radix
);
5701 CPPUNIT_ASSERT_EQUAL_MESSAGE
5703 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
5704 expVal
, OString(aStrBuf
.getStr())
5706 CPPUNIT_ASSERT_EQUAL_MESSAGE
5708 "append(sal_Int32, radix 8)_006_kRadixOctol for arrOUS[4]",
5709 expVal
.getLength(), aStrBuf
.getLength()
5716 OStringBuffer
aStrBuf( arrOUS
[4] );
5717 OString
expVal( aStrBuf
.getStr() );
5718 sal_Int32 input
= 0;
5719 sal_Int16 radix
= 10;
5722 aStrBuf
.append( input
, radix
);
5724 CPPUNIT_ASSERT_EQUAL_MESSAGE
5726 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
5727 expVal
, OString(aStrBuf
.getStr())
5729 CPPUNIT_ASSERT_EQUAL_MESSAGE
5731 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
5732 expVal
.getLength(), aStrBuf
.getLength()
5739 OStringBuffer
aStrBuf( arrOUS
[4] );
5740 OString
expVal( aStrBuf
.getStr() );
5741 sal_Int32 input
= 4;
5742 sal_Int16 radix
= 10;
5745 aStrBuf
.append( input
, radix
);
5747 CPPUNIT_ASSERT_EQUAL_MESSAGE
5749 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
5750 expVal
, OString(aStrBuf
.getStr())
5752 CPPUNIT_ASSERT_EQUAL_MESSAGE
5754 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
5755 expVal
.getLength(), aStrBuf
.getLength()
5762 OStringBuffer
aStrBuf( arrOUS
[4] );
5763 OString
expVal( aStrBuf
.getStr() );
5764 sal_Int32 input
= 8;
5765 sal_Int16 radix
= 10;
5768 aStrBuf
.append( input
, radix
);
5770 CPPUNIT_ASSERT_EQUAL_MESSAGE
5772 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
5773 expVal
, OString(aStrBuf
.getStr())
5775 CPPUNIT_ASSERT_EQUAL_MESSAGE
5777 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
5778 expVal
.getLength(), aStrBuf
.getLength()
5785 OStringBuffer
aStrBuf( arrOUS
[4] );
5786 OString
expVal( aStrBuf
.getStr() );
5787 sal_Int32 input
= 15;
5788 sal_Int16 radix
= 10;
5790 expVal
+= "15"_ostr
;
5791 aStrBuf
.append( input
, radix
);
5793 CPPUNIT_ASSERT_EQUAL_MESSAGE
5795 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
5796 expVal
, OString(aStrBuf
.getStr())
5798 CPPUNIT_ASSERT_EQUAL_MESSAGE
5800 "append(sal_Int32, radix 10)_006_kRadixDecimal for arrOUS[4]",
5801 expVal
.getLength(), aStrBuf
.getLength()
5808 OStringBuffer
aStrBuf( arrOUS
[4] );
5809 OString
expVal( aStrBuf
.getStr() );
5810 sal_Int32 input
= 0;
5811 sal_Int16 radix
= 16;
5814 aStrBuf
.append( input
, radix
);
5816 CPPUNIT_ASSERT_EQUAL_MESSAGE
5818 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
5819 expVal
, OString(aStrBuf
.getStr())
5821 CPPUNIT_ASSERT_EQUAL_MESSAGE
5823 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
5824 expVal
.getLength(), aStrBuf
.getLength()
5831 OStringBuffer
aStrBuf( arrOUS
[4] );
5832 OString
expVal( aStrBuf
.getStr() );
5833 sal_Int32 input
= 4;
5834 sal_Int16 radix
= 16;
5837 aStrBuf
.append( input
, radix
);
5839 CPPUNIT_ASSERT_EQUAL_MESSAGE
5841 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
5842 expVal
, OString(aStrBuf
.getStr())
5844 CPPUNIT_ASSERT_EQUAL_MESSAGE
5846 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
5847 expVal
.getLength(), aStrBuf
.getLength()
5854 OStringBuffer
aStrBuf( arrOUS
[4] );
5855 OString
expVal( aStrBuf
.getStr() );
5856 sal_Int32 input
= 8;
5857 sal_Int16 radix
= 16;
5860 aStrBuf
.append( input
, radix
);
5862 CPPUNIT_ASSERT_EQUAL_MESSAGE
5864 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
5865 expVal
, OString(aStrBuf
.getStr())
5867 CPPUNIT_ASSERT_EQUAL_MESSAGE
5869 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
5870 expVal
.getLength(), aStrBuf
.getLength()
5877 OStringBuffer
aStrBuf( arrOUS
[4] );
5878 OString
expVal( aStrBuf
.getStr() );
5879 sal_Int32 input
= 15;
5880 sal_Int16 radix
= 16;
5883 aStrBuf
.append( input
, radix
);
5885 CPPUNIT_ASSERT_EQUAL_MESSAGE
5887 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
5888 expVal
, OString(aStrBuf
.getStr())
5890 CPPUNIT_ASSERT_EQUAL_MESSAGE
5892 "append(sal_Int32, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
5893 expVal
.getLength(), aStrBuf
.getLength()
5900 OStringBuffer
aStrBuf( arrOUS
[4] );
5901 OString
expVal( aStrBuf
.getStr() );
5902 sal_Int32 input
= 0;
5903 sal_Int16 radix
= 36;
5906 aStrBuf
.append( input
, radix
);
5908 CPPUNIT_ASSERT_EQUAL_MESSAGE
5910 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
5911 expVal
, OString(aStrBuf
.getStr())
5913 CPPUNIT_ASSERT_EQUAL_MESSAGE
5915 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
5916 expVal
.getLength(), aStrBuf
.getLength()
5923 OStringBuffer
aStrBuf( arrOUS
[4] );
5924 OString
expVal( aStrBuf
.getStr() );
5925 sal_Int32 input
= 4;
5926 sal_Int16 radix
= 36;
5929 aStrBuf
.append( input
, radix
);
5931 CPPUNIT_ASSERT_EQUAL_MESSAGE
5933 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
5934 expVal
, OString(aStrBuf
.getStr())
5936 CPPUNIT_ASSERT_EQUAL_MESSAGE
5938 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
5939 expVal
.getLength(), aStrBuf
.getLength()
5946 OStringBuffer
aStrBuf( arrOUS
[4] );
5947 OString
expVal( aStrBuf
.getStr() );
5948 sal_Int32 input
= 8;
5949 sal_Int16 radix
= 36;
5952 aStrBuf
.append( input
, radix
);
5954 CPPUNIT_ASSERT_EQUAL_MESSAGE
5956 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
5957 expVal
, OString(aStrBuf
.getStr())
5959 CPPUNIT_ASSERT_EQUAL_MESSAGE
5961 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
5962 expVal
.getLength(), aStrBuf
.getLength()
5969 OStringBuffer
aStrBuf( arrOUS
[4] );
5970 OString
expVal( aStrBuf
.getStr() );
5971 sal_Int32 input
= 35;
5972 sal_Int16 radix
= 36;
5975 aStrBuf
.append( input
, radix
);
5977 CPPUNIT_ASSERT_EQUAL_MESSAGE
5979 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
5980 expVal
, OString(aStrBuf
.getStr())
5982 CPPUNIT_ASSERT_EQUAL_MESSAGE
5984 "append(sal_Int32, radix 36)_006_kRadixBase36 for arrOUS[4]",
5985 expVal
.getLength(), aStrBuf
.getLength()
5990 CPPUNIT_TEST_SUITE( append_006_Int32
);
5991 CPPUNIT_TEST( append_001
); CPPUNIT_TEST( append_002
);
5992 CPPUNIT_TEST( append_003
); CPPUNIT_TEST( append_004
);
5993 CPPUNIT_TEST( append_005
); CPPUNIT_TEST( append_006
);
5994 CPPUNIT_TEST( append_007
); CPPUNIT_TEST( append_008
);
5995 CPPUNIT_TEST( append_009
); CPPUNIT_TEST( append_010
);
5996 CPPUNIT_TEST( append_011
); CPPUNIT_TEST( append_012
);
5997 CPPUNIT_TEST( append_013
); CPPUNIT_TEST( append_014
);
5998 CPPUNIT_TEST( append_015
); CPPUNIT_TEST( append_016
);
5999 CPPUNIT_TEST( append_017
); CPPUNIT_TEST( append_018
);
6000 CPPUNIT_TEST( append_019
); CPPUNIT_TEST( append_020
);
6001 CPPUNIT_TEST( append_021
); CPPUNIT_TEST( append_022
);
6002 CPPUNIT_TEST( append_023
); CPPUNIT_TEST( append_024
);
6003 CPPUNIT_TEST( append_025
); CPPUNIT_TEST( append_026
);
6004 CPPUNIT_TEST( append_027
); CPPUNIT_TEST( append_028
);
6005 CPPUNIT_TEST( append_029
); CPPUNIT_TEST( append_030
);
6006 CPPUNIT_TEST( append_031
); CPPUNIT_TEST( append_032
);
6007 CPPUNIT_TEST( append_033
); CPPUNIT_TEST( append_034
);
6008 CPPUNIT_TEST( append_035
); CPPUNIT_TEST( append_036
);
6009 CPPUNIT_TEST( append_037
); CPPUNIT_TEST( append_038
);
6010 CPPUNIT_TEST( append_039
); CPPUNIT_TEST( append_040
);
6011 CPPUNIT_TEST( append_041
); CPPUNIT_TEST( append_042
);
6012 CPPUNIT_TEST( append_043
); CPPUNIT_TEST( append_044
);
6013 CPPUNIT_TEST( append_045
); CPPUNIT_TEST( append_046
);
6014 CPPUNIT_TEST( append_047
); CPPUNIT_TEST( append_048
);
6015 CPPUNIT_TEST( append_049
); CPPUNIT_TEST( append_050
);
6016 CPPUNIT_TEST( append_051
); CPPUNIT_TEST( append_052
);
6017 CPPUNIT_TEST( append_053
); CPPUNIT_TEST( append_054
);
6018 CPPUNIT_TEST( append_055
); CPPUNIT_TEST( append_056
);
6019 CPPUNIT_TEST( append_057
); CPPUNIT_TEST( append_058
);
6020 CPPUNIT_TEST( append_059
); CPPUNIT_TEST( append_060
);
6021 CPPUNIT_TEST( append_061
); CPPUNIT_TEST( append_062
);
6022 CPPUNIT_TEST( append_063
); CPPUNIT_TEST( append_064
);
6023 CPPUNIT_TEST( append_065
); CPPUNIT_TEST( append_066
);
6024 CPPUNIT_TEST( append_067
); CPPUNIT_TEST( append_068
);
6025 CPPUNIT_TEST( append_069
); CPPUNIT_TEST( append_070
);
6026 CPPUNIT_TEST( append_071
); CPPUNIT_TEST( append_072
);
6027 CPPUNIT_TEST( append_073
); CPPUNIT_TEST( append_074
);
6028 CPPUNIT_TEST( append_075
); CPPUNIT_TEST( append_076
);
6029 CPPUNIT_TEST( append_077
); CPPUNIT_TEST( append_078
);
6030 CPPUNIT_TEST( append_079
); CPPUNIT_TEST( append_080
);
6031 CPPUNIT_TEST( append_081
); CPPUNIT_TEST( append_082
);
6032 CPPUNIT_TEST( append_083
); CPPUNIT_TEST( append_084
);
6033 CPPUNIT_TEST( append_085
); CPPUNIT_TEST( append_086
);
6034 CPPUNIT_TEST( append_087
); CPPUNIT_TEST( append_088
);
6035 CPPUNIT_TEST( append_089
); CPPUNIT_TEST( append_090
);
6036 CPPUNIT_TEST( append_091
); CPPUNIT_TEST( append_092
);
6037 CPPUNIT_TEST( append_093
); CPPUNIT_TEST( append_094
);
6038 CPPUNIT_TEST( append_095
); CPPUNIT_TEST( append_096
);
6039 CPPUNIT_TEST( append_097
); CPPUNIT_TEST( append_098
);
6040 CPPUNIT_TEST( append_099
); CPPUNIT_TEST( append_100
);
6041 CPPUNIT_TEST_SUITE_END();
6044 // testing the method append( sal_Int32 i, sal_Int16 radix=2 )
6045 // where i = large constants
6046 // testing the method append( sal_Int32 i, sal_Int16 radix=8 )
6047 // where i = large constants
6048 // testing the method append( sal_Int32 i, sal_Int16 radix=10 )
6049 // where i = large constants
6050 // testing the method append( sal_Int32 i, sal_Int16 radix=16 )
6051 // where i = large constants
6052 // testing the method append( sal_Int32 i, sal_Int16 radix=36 )
6053 // where i = large constants
6055 class append_006_Int32_Bounderies
: public CppUnit::TestFixture
6060 void setUp() override
6062 arrOUS
[0] = OString( kTestStr7
);
6063 arrOUS
[1] = OString( );
6064 arrOUS
[2] = OString( kTestStr25
);
6065 arrOUS
[3] = ""_ostr
;
6066 arrOUS
[4] = OString( kTestStr28
);
6071 OStringBuffer
aStrBuf( arrOUS
[0] );
6072 OString
expVal( aStrBuf
.getStr() );
6073 sal_Int32 input
= kSInt8Max
;
6074 sal_Int16 radix
= 2;
6076 expVal
+= "1111111"_ostr
;
6077 aStrBuf
.append( input
, radix
);
6079 CPPUNIT_ASSERT_EQUAL_MESSAGE
6081 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
6082 expVal
, OString(aStrBuf
.getStr())
6084 CPPUNIT_ASSERT_EQUAL_MESSAGE
6086 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
6087 expVal
.getLength(), aStrBuf
.getLength()
6094 OStringBuffer
aStrBuf( arrOUS
[0] );
6095 OString
expVal( aStrBuf
.getStr() );
6096 sal_Int32 input
= kSInt32Max
;
6097 sal_Int16 radix
= 2;
6099 expVal
+= "1111111111111111111111111111111"_ostr
;
6100 aStrBuf
.append( input
, radix
);
6102 CPPUNIT_ASSERT_EQUAL_MESSAGE
6104 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
6105 expVal
, OString(aStrBuf
.getStr())
6107 CPPUNIT_ASSERT_EQUAL_MESSAGE
6109 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
6110 expVal
.getLength(), aStrBuf
.getLength()
6117 OStringBuffer
aStrBuf( arrOUS
[0] );
6118 OString
expVal( aStrBuf
.getStr() );
6119 sal_Int32 input
= kSInt8Max
;
6120 sal_Int16 radix
= 8;
6122 expVal
+= "177"_ostr
;
6123 aStrBuf
.append( input
, radix
);
6125 CPPUNIT_ASSERT_EQUAL_MESSAGE
6127 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
6128 expVal
, OString(aStrBuf
.getStr())
6130 CPPUNIT_ASSERT_EQUAL_MESSAGE
6132 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
6133 expVal
.getLength(), aStrBuf
.getLength()
6140 OStringBuffer
aStrBuf( arrOUS
[0] );
6141 OString
expVal( aStrBuf
.getStr() );
6142 sal_Int32 input
= kSInt32Max
;
6143 sal_Int16 radix
= 8;
6145 expVal
+= "17777777777"_ostr
;
6146 aStrBuf
.append( input
, radix
);
6148 CPPUNIT_ASSERT_EQUAL_MESSAGE
6150 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
6151 expVal
, OString(aStrBuf
.getStr())
6153 CPPUNIT_ASSERT_EQUAL_MESSAGE
6155 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
6156 expVal
.getLength(), aStrBuf
.getLength()
6163 OStringBuffer
aStrBuf( arrOUS
[0] );
6164 OString
expVal( aStrBuf
.getStr() );
6165 sal_Int32 input
= kSInt8Max
;
6166 sal_Int16 radix
= 10;
6168 expVal
+= "127"_ostr
;
6169 aStrBuf
.append( input
, radix
);
6171 CPPUNIT_ASSERT_EQUAL_MESSAGE
6173 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
6174 expVal
, OString(aStrBuf
.getStr())
6176 CPPUNIT_ASSERT_EQUAL_MESSAGE
6178 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
6179 expVal
.getLength(), aStrBuf
.getLength()
6186 OStringBuffer
aStrBuf( arrOUS
[0] );
6187 OString
expVal( aStrBuf
.getStr() );
6188 sal_Int32 input
= kSInt32Max
;
6189 sal_Int16 radix
= 10;
6191 expVal
+= "2147483647"_ostr
;
6192 aStrBuf
.append( input
, radix
);
6194 CPPUNIT_ASSERT_EQUAL_MESSAGE
6196 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
6197 expVal
, OString(aStrBuf
.getStr())
6199 CPPUNIT_ASSERT_EQUAL_MESSAGE
6201 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
6202 expVal
.getLength(), aStrBuf
.getLength()
6209 OStringBuffer
aStrBuf( arrOUS
[0] );
6210 OString
expVal( aStrBuf
.getStr() );
6211 sal_Int32 input
= kSInt8Max
;
6212 sal_Int16 radix
= 16;
6214 expVal
+= "7f"_ostr
;
6215 aStrBuf
.append( input
, radix
);
6217 CPPUNIT_ASSERT_EQUAL_MESSAGE
6219 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
6220 expVal
, OString(aStrBuf
.getStr())
6222 CPPUNIT_ASSERT_EQUAL_MESSAGE
6224 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
6225 expVal
.getLength(), aStrBuf
.getLength()
6232 OStringBuffer
aStrBuf( arrOUS
[0] );
6233 OString
expVal( aStrBuf
.getStr() );
6234 sal_Int32 input
= kSInt32Max
;
6235 sal_Int16 radix
= 16;
6237 expVal
+= "7fffffff"_ostr
;
6238 aStrBuf
.append( input
, radix
);
6240 CPPUNIT_ASSERT_EQUAL_MESSAGE
6242 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
6243 expVal
, OString(aStrBuf
.getStr())
6245 CPPUNIT_ASSERT_EQUAL_MESSAGE
6247 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
6248 expVal
.getLength(), aStrBuf
.getLength()
6255 OStringBuffer
aStrBuf( arrOUS
[0] );
6256 OString
expVal( aStrBuf
.getStr() );
6257 sal_Int32 input
= kSInt8Max
;
6258 sal_Int16 radix
= 36;
6260 expVal
+= "3j"_ostr
;
6261 aStrBuf
.append( input
, radix
);
6263 CPPUNIT_ASSERT_EQUAL_MESSAGE
6265 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
6266 expVal
, OString(aStrBuf
.getStr())
6268 CPPUNIT_ASSERT_EQUAL_MESSAGE
6270 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
6271 expVal
.getLength(), aStrBuf
.getLength()
6278 OStringBuffer
aStrBuf( arrOUS
[0] );
6279 OString
expVal( aStrBuf
.getStr() );
6280 sal_Int32 input
= kSInt32Max
;
6281 sal_Int16 radix
= 36;
6283 expVal
+= "zik0zj"_ostr
;
6284 aStrBuf
.append( input
, radix
);
6286 CPPUNIT_ASSERT_EQUAL_MESSAGE
6288 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
6289 expVal
, OString(aStrBuf
.getStr())
6291 CPPUNIT_ASSERT_EQUAL_MESSAGE
6293 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
6294 expVal
.getLength(), aStrBuf
.getLength()
6301 OStringBuffer
aStrBuf( arrOUS
[1] );
6302 OString
expVal( aStrBuf
.getStr() );
6303 sal_Int32 input
= kSInt8Max
;
6304 sal_Int16 radix
= 2;
6306 expVal
+= "1111111"_ostr
;
6307 aStrBuf
.append( input
, radix
);
6309 CPPUNIT_ASSERT_EQUAL_MESSAGE
6311 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
6312 expVal
, OString(aStrBuf
.getStr())
6314 CPPUNIT_ASSERT_EQUAL_MESSAGE
6316 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
6317 expVal
.getLength(), aStrBuf
.getLength()
6324 OStringBuffer
aStrBuf( arrOUS
[1] );
6325 OString
expVal( aStrBuf
.getStr() );
6326 sal_Int32 input
= kSInt32Max
;
6327 sal_Int16 radix
= 2;
6329 expVal
+= "1111111111111111111111111111111"_ostr
;
6330 aStrBuf
.append( input
, radix
);
6332 CPPUNIT_ASSERT_EQUAL_MESSAGE
6334 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
6335 expVal
, OString(aStrBuf
.getStr())
6337 CPPUNIT_ASSERT_EQUAL_MESSAGE
6339 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
6340 expVal
.getLength(), aStrBuf
.getLength()
6347 OStringBuffer
aStrBuf( arrOUS
[1] );
6348 OString
expVal( aStrBuf
.getStr() );
6349 sal_Int32 input
= kSInt8Max
;
6350 sal_Int16 radix
= 8;
6352 expVal
+= "177"_ostr
;
6353 aStrBuf
.append( input
, radix
);
6355 CPPUNIT_ASSERT_EQUAL_MESSAGE
6357 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
6358 expVal
, OString(aStrBuf
.getStr())
6360 CPPUNIT_ASSERT_EQUAL_MESSAGE
6362 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
6363 expVal
.getLength(), aStrBuf
.getLength()
6370 OStringBuffer
aStrBuf( arrOUS
[1] );
6371 OString
expVal( aStrBuf
.getStr() );
6372 sal_Int32 input
= kSInt32Max
;
6373 sal_Int16 radix
= 8;
6375 expVal
+= "17777777777"_ostr
;
6376 aStrBuf
.append( input
, radix
);
6378 CPPUNIT_ASSERT_EQUAL_MESSAGE
6380 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
6381 expVal
, OString(aStrBuf
.getStr())
6383 CPPUNIT_ASSERT_EQUAL_MESSAGE
6385 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
6386 expVal
.getLength(), aStrBuf
.getLength()
6393 OStringBuffer
aStrBuf( arrOUS
[1] );
6394 OString
expVal( aStrBuf
.getStr() );
6395 sal_Int32 input
= kSInt8Max
;
6396 sal_Int16 radix
= 10;
6398 expVal
+= "127"_ostr
;
6399 aStrBuf
.append( input
, radix
);
6401 CPPUNIT_ASSERT_EQUAL_MESSAGE
6403 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
6404 expVal
, OString(aStrBuf
.getStr())
6406 CPPUNIT_ASSERT_EQUAL_MESSAGE
6408 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
6409 expVal
.getLength(), aStrBuf
.getLength()
6416 OStringBuffer
aStrBuf( arrOUS
[1] );
6417 OString
expVal( aStrBuf
.getStr() );
6418 sal_Int32 input
= kSInt32Max
;
6419 sal_Int16 radix
= 10;
6421 expVal
+= "2147483647"_ostr
;
6422 aStrBuf
.append( input
, radix
);
6424 CPPUNIT_ASSERT_EQUAL_MESSAGE
6426 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
6427 expVal
, OString(aStrBuf
.getStr())
6429 CPPUNIT_ASSERT_EQUAL_MESSAGE
6431 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
6432 expVal
.getLength(), aStrBuf
.getLength()
6439 OStringBuffer
aStrBuf( arrOUS
[1] );
6440 OString
expVal( aStrBuf
.getStr() );
6441 sal_Int32 input
= kSInt8Max
;
6442 sal_Int16 radix
= 16;
6444 expVal
+= "7f"_ostr
;
6445 aStrBuf
.append( input
, radix
);
6447 CPPUNIT_ASSERT_EQUAL_MESSAGE
6449 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
6450 expVal
, OString(aStrBuf
.getStr())
6452 CPPUNIT_ASSERT_EQUAL_MESSAGE
6454 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
6455 expVal
.getLength(), aStrBuf
.getLength()
6462 OStringBuffer
aStrBuf( arrOUS
[1] );
6463 OString
expVal( aStrBuf
.getStr() );
6464 sal_Int32 input
= kSInt32Max
;
6465 sal_Int16 radix
= 16;
6467 expVal
+= "7fffffff"_ostr
;
6468 aStrBuf
.append( input
, radix
);
6470 CPPUNIT_ASSERT_EQUAL_MESSAGE
6472 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
6473 expVal
, OString(aStrBuf
.getStr())
6475 CPPUNIT_ASSERT_EQUAL_MESSAGE
6477 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
6478 expVal
.getLength(), aStrBuf
.getLength()
6485 OStringBuffer
aStrBuf( arrOUS
[1] );
6486 OString
expVal( aStrBuf
.getStr() );
6487 sal_Int32 input
= kSInt8Max
;
6488 sal_Int16 radix
= 36;
6490 expVal
+= "3j"_ostr
;
6491 aStrBuf
.append( input
, radix
);
6493 CPPUNIT_ASSERT_EQUAL_MESSAGE
6495 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
6496 expVal
, OString(aStrBuf
.getStr())
6498 CPPUNIT_ASSERT_EQUAL_MESSAGE
6500 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
6501 expVal
.getLength(), aStrBuf
.getLength()
6508 OStringBuffer
aStrBuf( arrOUS
[1] );
6509 OString
expVal( aStrBuf
.getStr() );
6510 sal_Int32 input
= kSInt32Max
;
6511 sal_Int16 radix
= 36;
6513 expVal
+= "zik0zj"_ostr
;
6514 aStrBuf
.append( input
, radix
);
6516 CPPUNIT_ASSERT_EQUAL_MESSAGE
6518 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
6519 expVal
, OString(aStrBuf
.getStr())
6521 CPPUNIT_ASSERT_EQUAL_MESSAGE
6523 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
6524 expVal
.getLength(), aStrBuf
.getLength()
6531 OStringBuffer
aStrBuf( arrOUS
[2] );
6532 OString
expVal( aStrBuf
.getStr() );
6533 sal_Int32 input
= kSInt8Max
;
6534 sal_Int16 radix
= 2;
6536 expVal
+= "1111111"_ostr
;
6537 aStrBuf
.append( input
, radix
);
6539 CPPUNIT_ASSERT_EQUAL_MESSAGE
6541 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
6542 expVal
, OString(aStrBuf
.getStr())
6544 CPPUNIT_ASSERT_EQUAL_MESSAGE
6546 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
6547 expVal
.getLength(), aStrBuf
.getLength()
6554 OStringBuffer
aStrBuf( arrOUS
[2] );
6555 OString
expVal( aStrBuf
.getStr() );
6556 sal_Int32 input
= kSInt32Max
;
6557 sal_Int16 radix
= 2;
6559 expVal
+= "1111111111111111111111111111111"_ostr
;
6560 aStrBuf
.append( input
, radix
);
6562 CPPUNIT_ASSERT_EQUAL_MESSAGE
6564 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
6565 expVal
, OString(aStrBuf
.getStr())
6567 CPPUNIT_ASSERT_EQUAL_MESSAGE
6569 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
6570 expVal
.getLength(), aStrBuf
.getLength()
6577 OStringBuffer
aStrBuf( arrOUS
[2] );
6578 OString
expVal( aStrBuf
.getStr() );
6579 sal_Int32 input
= kSInt8Max
;
6580 sal_Int16 radix
= 8;
6582 expVal
+= "177"_ostr
;
6583 aStrBuf
.append( input
, radix
);
6585 CPPUNIT_ASSERT_EQUAL_MESSAGE
6587 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
6588 expVal
, OString(aStrBuf
.getStr())
6590 CPPUNIT_ASSERT_EQUAL_MESSAGE
6592 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
6593 expVal
.getLength(), aStrBuf
.getLength()
6600 OStringBuffer
aStrBuf( arrOUS
[2] );
6601 OString
expVal( aStrBuf
.getStr() );
6602 sal_Int32 input
= kSInt32Max
;
6603 sal_Int16 radix
= 8;
6605 expVal
+= "17777777777"_ostr
;
6606 aStrBuf
.append( input
, radix
);
6608 CPPUNIT_ASSERT_EQUAL_MESSAGE
6610 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
6611 expVal
, OString(aStrBuf
.getStr())
6613 CPPUNIT_ASSERT_EQUAL_MESSAGE
6615 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
6616 expVal
.getLength(), aStrBuf
.getLength()
6623 OStringBuffer
aStrBuf( arrOUS
[2] );
6624 OString
expVal( aStrBuf
.getStr() );
6625 sal_Int32 input
= kSInt8Max
;
6626 sal_Int16 radix
= 10;
6628 expVal
+= "127"_ostr
;
6629 aStrBuf
.append( input
, radix
);
6631 CPPUNIT_ASSERT_EQUAL_MESSAGE
6633 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
6634 expVal
, OString(aStrBuf
.getStr())
6636 CPPUNIT_ASSERT_EQUAL_MESSAGE
6638 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
6639 expVal
.getLength(), aStrBuf
.getLength()
6646 OStringBuffer
aStrBuf( arrOUS
[2] );
6647 OString
expVal( aStrBuf
.getStr() );
6648 sal_Int32 input
= kSInt32Max
;
6649 sal_Int16 radix
= 10;
6651 expVal
+= "2147483647"_ostr
;
6652 aStrBuf
.append( input
, radix
);
6654 CPPUNIT_ASSERT_EQUAL_MESSAGE
6656 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
6657 expVal
, OString(aStrBuf
.getStr())
6659 CPPUNIT_ASSERT_EQUAL_MESSAGE
6661 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
6662 expVal
.getLength(), aStrBuf
.getLength()
6669 OStringBuffer
aStrBuf( arrOUS
[2] );
6670 OString
expVal( aStrBuf
.getStr() );
6671 sal_Int32 input
= kSInt8Max
;
6672 sal_Int16 radix
= 16;
6674 expVal
+= "7f"_ostr
;
6675 aStrBuf
.append( input
, radix
);
6677 CPPUNIT_ASSERT_EQUAL_MESSAGE
6679 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
6680 expVal
, OString(aStrBuf
.getStr())
6682 CPPUNIT_ASSERT_EQUAL_MESSAGE
6684 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
6685 expVal
.getLength(), aStrBuf
.getLength()
6692 OStringBuffer
aStrBuf( arrOUS
[2] );
6693 OString
expVal( aStrBuf
.getStr() );
6694 sal_Int32 input
= kSInt32Max
;
6695 sal_Int16 radix
= 16;
6697 expVal
+= "7fffffff"_ostr
;
6698 aStrBuf
.append( input
, radix
);
6700 CPPUNIT_ASSERT_EQUAL_MESSAGE
6702 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
6703 expVal
, OString(aStrBuf
.getStr())
6705 CPPUNIT_ASSERT_EQUAL_MESSAGE
6707 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
6708 expVal
.getLength(), aStrBuf
.getLength()
6715 OStringBuffer
aStrBuf( arrOUS
[2] );
6716 OString
expVal( aStrBuf
.getStr() );
6717 sal_Int32 input
= kSInt8Max
;
6718 sal_Int16 radix
= 36;
6720 expVal
+= "3j"_ostr
;
6721 aStrBuf
.append( input
, radix
);
6723 CPPUNIT_ASSERT_EQUAL_MESSAGE
6725 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
6726 expVal
, OString(aStrBuf
.getStr())
6728 CPPUNIT_ASSERT_EQUAL_MESSAGE
6730 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
6731 expVal
.getLength(), aStrBuf
.getLength()
6738 OStringBuffer
aStrBuf( arrOUS
[2] );
6739 OString
expVal( aStrBuf
.getStr() );
6740 sal_Int32 input
= kSInt32Max
;
6741 sal_Int16 radix
= 36;
6743 expVal
+= "zik0zj"_ostr
;
6744 aStrBuf
.append( input
, radix
);
6746 CPPUNIT_ASSERT_EQUAL_MESSAGE
6748 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
6749 expVal
, OString(aStrBuf
.getStr())
6751 CPPUNIT_ASSERT_EQUAL_MESSAGE
6753 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
6754 expVal
.getLength(), aStrBuf
.getLength()
6761 OStringBuffer
aStrBuf( arrOUS
[3] );
6762 OString
expVal( aStrBuf
.getStr() );
6763 sal_Int32 input
= kSInt8Max
;
6764 sal_Int16 radix
= 2;
6766 expVal
+= "1111111"_ostr
;
6767 aStrBuf
.append( input
, radix
);
6769 CPPUNIT_ASSERT_EQUAL_MESSAGE
6771 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
6772 expVal
, OString(aStrBuf
.getStr())
6774 CPPUNIT_ASSERT_EQUAL_MESSAGE
6776 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
6777 expVal
.getLength(), aStrBuf
.getLength()
6784 OStringBuffer
aStrBuf( arrOUS
[3] );
6785 OString
expVal( aStrBuf
.getStr() );
6786 sal_Int32 input
= kSInt32Max
;
6787 sal_Int16 radix
= 2;
6789 expVal
+= "1111111111111111111111111111111"_ostr
;
6790 aStrBuf
.append( input
, radix
);
6792 CPPUNIT_ASSERT_EQUAL_MESSAGE
6794 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
6795 expVal
, OString(aStrBuf
.getStr())
6797 CPPUNIT_ASSERT_EQUAL_MESSAGE
6799 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
6800 expVal
.getLength(), aStrBuf
.getLength()
6807 OStringBuffer
aStrBuf( arrOUS
[3] );
6808 OString
expVal( aStrBuf
.getStr() );
6809 sal_Int32 input
= kSInt8Max
;
6810 sal_Int16 radix
= 8;
6812 expVal
+= "177"_ostr
;
6813 aStrBuf
.append( input
, radix
);
6815 CPPUNIT_ASSERT_EQUAL_MESSAGE
6817 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
6818 expVal
, OString(aStrBuf
.getStr())
6820 CPPUNIT_ASSERT_EQUAL_MESSAGE
6822 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
6823 expVal
.getLength(), aStrBuf
.getLength()
6830 OStringBuffer
aStrBuf( arrOUS
[3] );
6831 OString
expVal( aStrBuf
.getStr() );
6832 sal_Int32 input
= kSInt32Max
;
6833 sal_Int16 radix
= 8;
6835 expVal
+= "17777777777"_ostr
;
6836 aStrBuf
.append( input
, radix
);
6838 CPPUNIT_ASSERT_EQUAL_MESSAGE
6840 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
6841 expVal
, OString(aStrBuf
.getStr())
6843 CPPUNIT_ASSERT_EQUAL_MESSAGE
6845 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
6846 expVal
.getLength(), aStrBuf
.getLength()
6853 OStringBuffer
aStrBuf( arrOUS
[3] );
6854 OString
expVal( aStrBuf
.getStr() );
6855 sal_Int32 input
= kSInt8Max
;
6856 sal_Int16 radix
= 10;
6858 expVal
+= "127"_ostr
;
6859 aStrBuf
.append( input
, radix
);
6861 CPPUNIT_ASSERT_EQUAL_MESSAGE
6863 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
6864 expVal
, OString(aStrBuf
.getStr())
6866 CPPUNIT_ASSERT_EQUAL_MESSAGE
6868 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
6869 expVal
.getLength(), aStrBuf
.getLength()
6876 OStringBuffer
aStrBuf( arrOUS
[3] );
6877 OString
expVal( aStrBuf
.getStr() );
6878 sal_Int32 input
= kSInt32Max
;
6879 sal_Int16 radix
= 10;
6881 expVal
+= "2147483647"_ostr
;
6882 aStrBuf
.append( input
, radix
);
6884 CPPUNIT_ASSERT_EQUAL_MESSAGE
6886 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
6887 expVal
, OString(aStrBuf
.getStr())
6889 CPPUNIT_ASSERT_EQUAL_MESSAGE
6891 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
6892 expVal
.getLength(), aStrBuf
.getLength()
6899 OStringBuffer
aStrBuf( arrOUS
[3] );
6900 OString
expVal( aStrBuf
.getStr() );
6901 sal_Int32 input
= kSInt8Max
;
6902 sal_Int16 radix
= 16;
6904 expVal
+= "7f"_ostr
;
6905 aStrBuf
.append( input
, radix
);
6907 CPPUNIT_ASSERT_EQUAL_MESSAGE
6909 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
6910 expVal
, OString(aStrBuf
.getStr())
6912 CPPUNIT_ASSERT_EQUAL_MESSAGE
6914 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
6915 expVal
.getLength(), aStrBuf
.getLength()
6922 OStringBuffer
aStrBuf( arrOUS
[3] );
6923 OString
expVal( aStrBuf
.getStr() );
6924 sal_Int32 input
= kSInt32Max
;
6925 sal_Int16 radix
= 16;
6927 expVal
+= "7fffffff"_ostr
;
6928 aStrBuf
.append( input
, radix
);
6930 CPPUNIT_ASSERT_EQUAL_MESSAGE
6932 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
6933 expVal
, OString(aStrBuf
.getStr())
6935 CPPUNIT_ASSERT_EQUAL_MESSAGE
6937 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
6938 expVal
.getLength(), aStrBuf
.getLength()
6945 OStringBuffer
aStrBuf( arrOUS
[3] );
6946 OString
expVal( aStrBuf
.getStr() );
6947 sal_Int32 input
= kSInt8Max
;
6948 sal_Int16 radix
= 36;
6950 expVal
+= "3j"_ostr
;
6951 aStrBuf
.append( input
, radix
);
6953 CPPUNIT_ASSERT_EQUAL_MESSAGE
6955 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
6956 expVal
, OString(aStrBuf
.getStr())
6958 CPPUNIT_ASSERT_EQUAL_MESSAGE
6960 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
6961 expVal
.getLength(), aStrBuf
.getLength()
6968 OStringBuffer
aStrBuf( arrOUS
[3] );
6969 OString
expVal( aStrBuf
.getStr() );
6970 sal_Int32 input
= kSInt32Max
;
6971 sal_Int16 radix
= 36;
6973 expVal
+= "zik0zj"_ostr
;
6974 aStrBuf
.append( input
, radix
);
6976 CPPUNIT_ASSERT_EQUAL_MESSAGE
6978 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
6979 expVal
, OString(aStrBuf
.getStr())
6981 CPPUNIT_ASSERT_EQUAL_MESSAGE
6983 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
6984 expVal
.getLength(), aStrBuf
.getLength()
6991 OStringBuffer
aStrBuf( arrOUS
[4] );
6992 OString
expVal( aStrBuf
.getStr() );
6993 sal_Int32 input
= kSInt8Max
;
6994 sal_Int16 radix
= 2;
6996 expVal
+= "1111111"_ostr
;
6997 aStrBuf
.append( input
, radix
);
6999 CPPUNIT_ASSERT_EQUAL_MESSAGE
7001 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
7002 expVal
, OString(aStrBuf
.getStr())
7004 CPPUNIT_ASSERT_EQUAL_MESSAGE
7006 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
7007 expVal
.getLength(), aStrBuf
.getLength()
7014 OStringBuffer
aStrBuf( arrOUS
[4] );
7015 OString
expVal( aStrBuf
.getStr() );
7016 sal_Int32 input
= kSInt32Max
;
7017 sal_Int16 radix
= 2;
7019 expVal
+= "1111111111111111111111111111111"_ostr
;
7020 aStrBuf
.append( input
, radix
);
7022 CPPUNIT_ASSERT_EQUAL_MESSAGE
7024 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
7025 expVal
, OString(aStrBuf
.getStr())
7027 CPPUNIT_ASSERT_EQUAL_MESSAGE
7029 "append(sal_Int32, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
7030 expVal
.getLength(), aStrBuf
.getLength()
7037 OStringBuffer
aStrBuf( arrOUS
[4] );
7038 OString
expVal( aStrBuf
.getStr() );
7039 sal_Int32 input
= kSInt8Max
;
7040 sal_Int16 radix
= 8;
7042 expVal
+= "177"_ostr
;
7043 aStrBuf
.append( input
, radix
);
7045 CPPUNIT_ASSERT_EQUAL_MESSAGE
7047 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
7048 expVal
, OString(aStrBuf
.getStr())
7050 CPPUNIT_ASSERT_EQUAL_MESSAGE
7052 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
7053 expVal
.getLength(), aStrBuf
.getLength()
7060 OStringBuffer
aStrBuf( arrOUS
[4] );
7061 OString
expVal( aStrBuf
.getStr() );
7062 sal_Int32 input
= kSInt32Max
;
7063 sal_Int16 radix
= 8;
7065 expVal
+= "17777777777"_ostr
;
7066 aStrBuf
.append( input
, radix
);
7068 CPPUNIT_ASSERT_EQUAL_MESSAGE
7070 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
7071 expVal
, OString(aStrBuf
.getStr())
7073 CPPUNIT_ASSERT_EQUAL_MESSAGE
7075 "append(sal_Int32, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
7076 expVal
.getLength(), aStrBuf
.getLength()
7083 OStringBuffer
aStrBuf( arrOUS
[4] );
7084 OString
expVal( aStrBuf
.getStr() );
7085 sal_Int32 input
= kSInt8Max
;
7086 sal_Int16 radix
= 10;
7088 expVal
+= "127"_ostr
;
7089 aStrBuf
.append( input
, radix
);
7091 CPPUNIT_ASSERT_EQUAL_MESSAGE
7093 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
7094 expVal
, OString(aStrBuf
.getStr())
7096 CPPUNIT_ASSERT_EQUAL_MESSAGE
7098 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
7099 expVal
.getLength(), aStrBuf
.getLength()
7106 OStringBuffer
aStrBuf( arrOUS
[4] );
7107 OString
expVal( aStrBuf
.getStr() );
7108 sal_Int32 input
= kSInt32Max
;
7109 sal_Int16 radix
= 10;
7111 expVal
+= "2147483647"_ostr
;
7112 aStrBuf
.append( input
, radix
);
7114 CPPUNIT_ASSERT_EQUAL_MESSAGE
7116 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
7117 expVal
, OString(aStrBuf
.getStr())
7119 CPPUNIT_ASSERT_EQUAL_MESSAGE
7121 "append(sal_Int32, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
7122 expVal
.getLength(), aStrBuf
.getLength()
7129 OStringBuffer
aStrBuf( arrOUS
[4] );
7130 OString
expVal( aStrBuf
.getStr() );
7131 sal_Int32 input
= kSInt8Max
;
7132 sal_Int16 radix
= 16;
7134 expVal
+= "7f"_ostr
;
7135 aStrBuf
.append( input
, radix
);
7137 CPPUNIT_ASSERT_EQUAL_MESSAGE
7139 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
7140 expVal
, OString(aStrBuf
.getStr())
7142 CPPUNIT_ASSERT_EQUAL_MESSAGE
7144 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
7145 expVal
.getLength(), aStrBuf
.getLength()
7152 OStringBuffer
aStrBuf( arrOUS
[4] );
7153 OString
expVal( aStrBuf
.getStr() );
7154 sal_Int32 input
= kSInt32Max
;
7155 sal_Int16 radix
= 16;
7157 expVal
+= "7fffffff"_ostr
;
7158 aStrBuf
.append( input
, radix
);
7160 CPPUNIT_ASSERT_EQUAL_MESSAGE
7162 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
7163 expVal
, OString(aStrBuf
.getStr())
7165 CPPUNIT_ASSERT_EQUAL_MESSAGE
7167 "append(sal_Int32, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
7168 expVal
.getLength(), aStrBuf
.getLength()
7175 OStringBuffer
aStrBuf( arrOUS
[4] );
7176 OString
expVal( aStrBuf
.getStr() );
7177 sal_Int32 input
= kSInt8Max
;
7178 sal_Int16 radix
= 36;
7180 expVal
+= "3j"_ostr
;
7181 aStrBuf
.append( input
, radix
);
7183 CPPUNIT_ASSERT_EQUAL_MESSAGE
7185 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
7186 expVal
, OString(aStrBuf
.getStr())
7188 CPPUNIT_ASSERT_EQUAL_MESSAGE
7190 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
7191 expVal
.getLength(), aStrBuf
.getLength()
7198 OStringBuffer
aStrBuf( arrOUS
[4] );
7199 OString
expVal( aStrBuf
.getStr() );
7200 sal_Int32 input
= kSInt32Max
;
7201 sal_Int16 radix
= 36;
7203 expVal
+= "zik0zj"_ostr
;
7204 aStrBuf
.append( input
, radix
);
7206 CPPUNIT_ASSERT_EQUAL_MESSAGE
7208 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
7209 expVal
, OString(aStrBuf
.getStr())
7211 CPPUNIT_ASSERT_EQUAL_MESSAGE
7213 "append(sal_Int32, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
7214 expVal
.getLength(), aStrBuf
.getLength()
7219 CPPUNIT_TEST_SUITE( append_006_Int32_Bounderies
);
7220 CPPUNIT_TEST( append_001
); CPPUNIT_TEST( append_002
);
7221 CPPUNIT_TEST( append_003
); CPPUNIT_TEST( append_004
);
7222 CPPUNIT_TEST( append_005
); CPPUNIT_TEST( append_006
);
7223 CPPUNIT_TEST( append_007
); CPPUNIT_TEST( append_008
);
7224 CPPUNIT_TEST( append_009
); CPPUNIT_TEST( append_010
);
7225 CPPUNIT_TEST( append_011
); CPPUNIT_TEST( append_012
);
7226 CPPUNIT_TEST( append_013
); CPPUNIT_TEST( append_014
);
7227 CPPUNIT_TEST( append_015
); CPPUNIT_TEST( append_016
);
7228 CPPUNIT_TEST( append_017
); CPPUNIT_TEST( append_018
);
7229 CPPUNIT_TEST( append_019
); CPPUNIT_TEST( append_020
);
7230 CPPUNIT_TEST( append_021
); CPPUNIT_TEST( append_022
);
7231 CPPUNIT_TEST( append_023
); CPPUNIT_TEST( append_024
);
7232 CPPUNIT_TEST( append_025
); CPPUNIT_TEST( append_026
);
7233 CPPUNIT_TEST( append_027
); CPPUNIT_TEST( append_028
);
7234 CPPUNIT_TEST( append_029
); CPPUNIT_TEST( append_030
);
7235 CPPUNIT_TEST( append_031
); CPPUNIT_TEST( append_032
);
7236 CPPUNIT_TEST( append_033
); CPPUNIT_TEST( append_034
);
7237 CPPUNIT_TEST( append_035
); CPPUNIT_TEST( append_036
);
7238 CPPUNIT_TEST( append_037
); CPPUNIT_TEST( append_038
);
7239 CPPUNIT_TEST( append_039
); CPPUNIT_TEST( append_040
);
7240 CPPUNIT_TEST( append_041
); CPPUNIT_TEST( append_042
);
7241 CPPUNIT_TEST( append_043
); CPPUNIT_TEST( append_044
);
7242 CPPUNIT_TEST( append_045
); CPPUNIT_TEST( append_046
);
7243 CPPUNIT_TEST( append_047
); CPPUNIT_TEST( append_048
);
7244 CPPUNIT_TEST( append_049
); CPPUNIT_TEST( append_050
);
7245 CPPUNIT_TEST_SUITE_END();
7248 // testing the method append( sal_Int32 i, sal_Int16 radix=2 )
7249 // for negative value
7250 // testing the method append( sal_Int32 i, sal_Int16 radix=8 )
7251 // for negative value
7252 // testing the method append( sal_Int32 i, sal_Int16 radix=10 )
7253 // for negative value
7254 // testing the method append( sal_Int32 i, sal_Int16 radix=16 )
7255 // for negative value
7256 // testing the method append( sal_Int32 i, sal_Int16 radix=36 )
7257 // for negative value
7259 class append_006_Int32_Negative
: public CppUnit::TestFixture
7264 void setUp() override
7266 arrOUS
[0] = OString( kTestStr7
);
7267 arrOUS
[1] = OString( );
7268 arrOUS
[2] = OString( kTestStr25
);
7269 arrOUS
[3] = ""_ostr
;
7270 arrOUS
[4] = OString( kTestStr28
);
7275 OStringBuffer
aStrBuf( arrOUS
[0] );
7276 OString
expVal( aStrBuf
.getStr() );
7277 sal_Int32 input
= -0;
7278 sal_Int16 radix
= 2;
7281 aStrBuf
.append( input
, radix
);
7283 CPPUNIT_ASSERT_EQUAL_MESSAGE
7285 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
7286 expVal
, OString(aStrBuf
.getStr())
7288 CPPUNIT_ASSERT_EQUAL_MESSAGE
7290 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
7291 expVal
.getLength(), aStrBuf
.getLength()
7298 OStringBuffer
aStrBuf( arrOUS
[0] );
7299 OString
expVal( aStrBuf
.getStr() );
7300 sal_Int32 input
= -4;
7301 sal_Int16 radix
= 2;
7304 expVal
+= "100"_ostr
;
7305 aStrBuf
.append( input
, radix
);
7307 CPPUNIT_ASSERT_EQUAL_MESSAGE
7309 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
7310 expVal
, OString(aStrBuf
.getStr())
7312 CPPUNIT_ASSERT_EQUAL_MESSAGE
7314 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
7315 expVal
.getLength(), aStrBuf
.getLength()
7322 OStringBuffer
aStrBuf( arrOUS
[0] );
7323 OString
expVal( aStrBuf
.getStr() );
7324 sal_Int32 input
= -8;
7325 sal_Int16 radix
= 2;
7328 expVal
+= "1000"_ostr
;
7329 aStrBuf
.append( input
, radix
);
7331 CPPUNIT_ASSERT_EQUAL_MESSAGE
7333 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
7334 expVal
, OString(aStrBuf
.getStr())
7336 CPPUNIT_ASSERT_EQUAL_MESSAGE
7338 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
7339 expVal
.getLength(), aStrBuf
.getLength()
7346 OStringBuffer
aStrBuf( arrOUS
[0] );
7347 OString
expVal( aStrBuf
.getStr() );
7348 sal_Int32 input
= -15;
7349 sal_Int16 radix
= 2;
7352 expVal
+= "1111"_ostr
;
7353 aStrBuf
.append( input
, radix
);
7355 CPPUNIT_ASSERT_EQUAL_MESSAGE
7357 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
7358 expVal
, OString(aStrBuf
.getStr())
7360 CPPUNIT_ASSERT_EQUAL_MESSAGE
7362 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
7363 expVal
.getLength(), aStrBuf
.getLength()
7370 OStringBuffer
aStrBuf( arrOUS
[0] );
7371 OString
expVal( aStrBuf
.getStr() );
7372 sal_Int32 input
= -0;
7373 sal_Int16 radix
= 8;
7376 aStrBuf
.append( input
, radix
);
7378 CPPUNIT_ASSERT_EQUAL_MESSAGE
7380 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
7381 expVal
, OString(aStrBuf
.getStr())
7383 CPPUNIT_ASSERT_EQUAL_MESSAGE
7385 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
7386 expVal
.getLength(), aStrBuf
.getLength()
7393 OStringBuffer
aStrBuf( arrOUS
[0] );
7394 OString
expVal( aStrBuf
.getStr() );
7395 sal_Int32 input
= -4;
7396 sal_Int16 radix
= 8;
7400 aStrBuf
.append( input
, radix
);
7402 CPPUNIT_ASSERT_EQUAL_MESSAGE
7404 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
7405 expVal
, OString(aStrBuf
.getStr())
7407 CPPUNIT_ASSERT_EQUAL_MESSAGE
7409 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
7410 expVal
.getLength(), aStrBuf
.getLength()
7417 OStringBuffer
aStrBuf( arrOUS
[0] );
7418 OString
expVal( aStrBuf
.getStr() );
7419 sal_Int32 input
= -8;
7420 sal_Int16 radix
= 8;
7423 expVal
+= "10"_ostr
;
7424 aStrBuf
.append( input
, radix
);
7426 CPPUNIT_ASSERT_EQUAL_MESSAGE
7428 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
7429 expVal
, OString(aStrBuf
.getStr())
7431 CPPUNIT_ASSERT_EQUAL_MESSAGE
7433 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
7434 expVal
.getLength(), aStrBuf
.getLength()
7441 OStringBuffer
aStrBuf( arrOUS
[0] );
7442 OString
expVal( aStrBuf
.getStr() );
7443 sal_Int32 input
= -15;
7444 sal_Int16 radix
= 8;
7447 expVal
+= "17"_ostr
;
7448 aStrBuf
.append( input
, radix
);
7450 CPPUNIT_ASSERT_EQUAL_MESSAGE
7452 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
7453 expVal
, OString(aStrBuf
.getStr())
7455 CPPUNIT_ASSERT_EQUAL_MESSAGE
7457 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
7458 expVal
.getLength(), aStrBuf
.getLength()
7465 OStringBuffer
aStrBuf( arrOUS
[0] );
7466 OString
expVal( aStrBuf
.getStr() );
7467 sal_Int32 input
= -0;
7468 sal_Int16 radix
= 10;
7471 aStrBuf
.append( input
, radix
);
7473 CPPUNIT_ASSERT_EQUAL_MESSAGE
7475 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
7476 expVal
, OString(aStrBuf
.getStr())
7478 CPPUNIT_ASSERT_EQUAL_MESSAGE
7480 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
7481 expVal
.getLength(), aStrBuf
.getLength()
7488 OStringBuffer
aStrBuf( arrOUS
[0] );
7489 OString
expVal( aStrBuf
.getStr() );
7490 sal_Int32 input
= -4;
7491 sal_Int16 radix
= 10;
7495 aStrBuf
.append( input
, radix
);
7497 CPPUNIT_ASSERT_EQUAL_MESSAGE
7499 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
7500 expVal
, OString(aStrBuf
.getStr())
7502 CPPUNIT_ASSERT_EQUAL_MESSAGE
7504 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
7505 expVal
.getLength(), aStrBuf
.getLength()
7512 OStringBuffer
aStrBuf( arrOUS
[0] );
7513 OString
expVal( aStrBuf
.getStr() );
7514 sal_Int32 input
= -8;
7515 sal_Int16 radix
= 10;
7519 aStrBuf
.append( input
, radix
);
7521 CPPUNIT_ASSERT_EQUAL_MESSAGE
7523 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
7524 expVal
, OString(aStrBuf
.getStr())
7526 CPPUNIT_ASSERT_EQUAL_MESSAGE
7528 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
7529 expVal
.getLength(), aStrBuf
.getLength()
7536 OStringBuffer
aStrBuf( arrOUS
[0] );
7537 OString
expVal( aStrBuf
.getStr() );
7538 sal_Int32 input
= -15;
7539 sal_Int16 radix
= 10;
7542 expVal
+= "15"_ostr
;
7543 aStrBuf
.append( input
, radix
);
7545 CPPUNIT_ASSERT_EQUAL_MESSAGE
7547 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
7548 expVal
, OString(aStrBuf
.getStr())
7550 CPPUNIT_ASSERT_EQUAL_MESSAGE
7552 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
7553 expVal
.getLength(), aStrBuf
.getLength()
7560 OStringBuffer
aStrBuf( arrOUS
[0] );
7561 OString
expVal( aStrBuf
.getStr() );
7562 sal_Int32 input
= -0;
7563 sal_Int16 radix
= 16;
7566 aStrBuf
.append( input
, radix
);
7568 CPPUNIT_ASSERT_EQUAL_MESSAGE
7570 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
7571 expVal
, OString(aStrBuf
.getStr())
7573 CPPUNIT_ASSERT_EQUAL_MESSAGE
7575 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
7576 expVal
.getLength(), aStrBuf
.getLength()
7583 OStringBuffer
aStrBuf( arrOUS
[0] );
7584 OString
expVal( aStrBuf
.getStr() );
7585 sal_Int32 input
= -4;
7586 sal_Int16 radix
= 16;
7590 aStrBuf
.append( input
, radix
);
7592 CPPUNIT_ASSERT_EQUAL_MESSAGE
7594 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
7595 expVal
, OString(aStrBuf
.getStr())
7597 CPPUNIT_ASSERT_EQUAL_MESSAGE
7599 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
7600 expVal
.getLength(), aStrBuf
.getLength()
7607 OStringBuffer
aStrBuf( arrOUS
[0] );
7608 OString
expVal( aStrBuf
.getStr() );
7609 sal_Int32 input
= -8;
7610 sal_Int16 radix
= 16;
7614 aStrBuf
.append( input
, radix
);
7616 CPPUNIT_ASSERT_EQUAL_MESSAGE
7618 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
7619 expVal
, OString(aStrBuf
.getStr())
7621 CPPUNIT_ASSERT_EQUAL_MESSAGE
7623 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
7624 expVal
.getLength(), aStrBuf
.getLength()
7631 OStringBuffer
aStrBuf( arrOUS
[0] );
7632 OString
expVal( aStrBuf
.getStr() );
7633 sal_Int32 input
= -15;
7634 sal_Int16 radix
= 16;
7638 aStrBuf
.append( input
, radix
);
7640 CPPUNIT_ASSERT_EQUAL_MESSAGE
7642 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
7643 expVal
, OString(aStrBuf
.getStr())
7645 CPPUNIT_ASSERT_EQUAL_MESSAGE
7647 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
7648 expVal
.getLength(), aStrBuf
.getLength()
7655 OStringBuffer
aStrBuf( arrOUS
[0] );
7656 OString
expVal( aStrBuf
.getStr() );
7657 sal_Int32 input
= -0;
7658 sal_Int16 radix
= 36;
7661 aStrBuf
.append( input
, radix
);
7663 CPPUNIT_ASSERT_EQUAL_MESSAGE
7665 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
7666 expVal
, OString(aStrBuf
.getStr())
7668 CPPUNIT_ASSERT_EQUAL_MESSAGE
7670 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
7671 expVal
.getLength(), aStrBuf
.getLength()
7678 OStringBuffer
aStrBuf( arrOUS
[0] );
7679 OString
expVal( aStrBuf
.getStr() );
7680 sal_Int32 input
= -4;
7681 sal_Int16 radix
= 36;
7685 aStrBuf
.append( input
, radix
);
7687 CPPUNIT_ASSERT_EQUAL_MESSAGE
7689 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
7690 expVal
, OString(aStrBuf
.getStr())
7692 CPPUNIT_ASSERT_EQUAL_MESSAGE
7694 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
7695 expVal
.getLength(), aStrBuf
.getLength()
7702 OStringBuffer
aStrBuf( arrOUS
[0] );
7703 OString
expVal( aStrBuf
.getStr() );
7704 sal_Int32 input
= -8;
7705 sal_Int16 radix
= 36;
7709 aStrBuf
.append( input
, radix
);
7711 CPPUNIT_ASSERT_EQUAL_MESSAGE
7713 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
7714 expVal
, OString(aStrBuf
.getStr())
7716 CPPUNIT_ASSERT_EQUAL_MESSAGE
7718 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
7719 expVal
.getLength(), aStrBuf
.getLength()
7726 OStringBuffer
aStrBuf( arrOUS
[0] );
7727 OString
expVal( aStrBuf
.getStr() );
7728 sal_Int32 input
= -35;
7729 sal_Int16 radix
= 36;
7733 aStrBuf
.append( input
, radix
);
7735 CPPUNIT_ASSERT_EQUAL_MESSAGE
7737 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
7738 expVal
, OString(aStrBuf
.getStr())
7740 CPPUNIT_ASSERT_EQUAL_MESSAGE
7742 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
7743 expVal
.getLength(), aStrBuf
.getLength()
7750 OStringBuffer
aStrBuf( arrOUS
[1] );
7751 OString
expVal( aStrBuf
.getStr() );
7752 sal_Int32 input
= -0;
7753 sal_Int16 radix
= 2;
7756 aStrBuf
.append( input
, radix
);
7758 CPPUNIT_ASSERT_EQUAL_MESSAGE
7760 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
7761 expVal
, OString(aStrBuf
.getStr())
7763 CPPUNIT_ASSERT_EQUAL_MESSAGE
7765 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
7766 expVal
.getLength(), aStrBuf
.getLength()
7773 OStringBuffer
aStrBuf( arrOUS
[1] );
7774 OString
expVal( aStrBuf
.getStr() );
7775 sal_Int32 input
= -4;
7776 sal_Int16 radix
= 2;
7779 expVal
+= "100"_ostr
;
7780 aStrBuf
.append( input
, radix
);
7782 CPPUNIT_ASSERT_EQUAL_MESSAGE
7784 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
7785 expVal
, OString(aStrBuf
.getStr())
7787 CPPUNIT_ASSERT_EQUAL_MESSAGE
7789 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
7790 expVal
.getLength(), aStrBuf
.getLength()
7797 OStringBuffer
aStrBuf( arrOUS
[1] );
7798 OString
expVal( aStrBuf
.getStr() );
7799 sal_Int32 input
= -8;
7800 sal_Int16 radix
= 2;
7803 expVal
+= "1000"_ostr
;
7804 aStrBuf
.append( input
, radix
);
7806 CPPUNIT_ASSERT_EQUAL_MESSAGE
7808 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
7809 expVal
, OString(aStrBuf
.getStr())
7811 CPPUNIT_ASSERT_EQUAL_MESSAGE
7813 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
7814 expVal
.getLength(), aStrBuf
.getLength()
7821 OStringBuffer
aStrBuf( arrOUS
[1] );
7822 OString
expVal( aStrBuf
.getStr() );
7823 sal_Int32 input
= -15;
7824 sal_Int16 radix
= 2;
7827 expVal
+= "1111"_ostr
;
7828 aStrBuf
.append( input
, radix
);
7830 CPPUNIT_ASSERT_EQUAL_MESSAGE
7832 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
7833 expVal
, OString(aStrBuf
.getStr())
7835 CPPUNIT_ASSERT_EQUAL_MESSAGE
7837 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
7838 expVal
.getLength(), aStrBuf
.getLength()
7845 OStringBuffer
aStrBuf( arrOUS
[1] );
7846 OString
expVal( aStrBuf
.getStr() );
7847 sal_Int32 input
= -0;
7848 sal_Int16 radix
= 8;
7851 aStrBuf
.append( input
, radix
);
7853 CPPUNIT_ASSERT_EQUAL_MESSAGE
7855 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
7856 expVal
, OString(aStrBuf
.getStr())
7858 CPPUNIT_ASSERT_EQUAL_MESSAGE
7860 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
7861 expVal
.getLength(), aStrBuf
.getLength()
7868 OStringBuffer
aStrBuf( arrOUS
[1] );
7869 OString
expVal( aStrBuf
.getStr() );
7870 sal_Int32 input
= -4;
7871 sal_Int16 radix
= 8;
7875 aStrBuf
.append( input
, radix
);
7877 CPPUNIT_ASSERT_EQUAL_MESSAGE
7879 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
7880 expVal
, OString(aStrBuf
.getStr())
7882 CPPUNIT_ASSERT_EQUAL_MESSAGE
7884 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
7885 expVal
.getLength(), aStrBuf
.getLength()
7892 OStringBuffer
aStrBuf( arrOUS
[1] );
7893 OString
expVal( aStrBuf
.getStr() );
7894 sal_Int32 input
= -8;
7895 sal_Int16 radix
= 8;
7898 expVal
+= "10"_ostr
;
7899 aStrBuf
.append( input
, radix
);
7901 CPPUNIT_ASSERT_EQUAL_MESSAGE
7903 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
7904 expVal
, OString(aStrBuf
.getStr())
7906 CPPUNIT_ASSERT_EQUAL_MESSAGE
7908 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
7909 expVal
.getLength(), aStrBuf
.getLength()
7916 OStringBuffer
aStrBuf( arrOUS
[1] );
7917 OString
expVal( aStrBuf
.getStr() );
7918 sal_Int32 input
= -15;
7919 sal_Int16 radix
= 8;
7922 expVal
+= "17"_ostr
;
7923 aStrBuf
.append( input
, radix
);
7925 CPPUNIT_ASSERT_EQUAL_MESSAGE
7927 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
7928 expVal
, OString(aStrBuf
.getStr())
7930 CPPUNIT_ASSERT_EQUAL_MESSAGE
7932 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
7933 expVal
.getLength(), aStrBuf
.getLength()
7940 OStringBuffer
aStrBuf( arrOUS
[1] );
7941 OString
expVal( aStrBuf
.getStr() );
7942 sal_Int32 input
= -0;
7943 sal_Int16 radix
= 10;
7946 aStrBuf
.append( input
, radix
);
7948 CPPUNIT_ASSERT_EQUAL_MESSAGE
7950 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
7951 expVal
, OString(aStrBuf
.getStr())
7953 CPPUNIT_ASSERT_EQUAL_MESSAGE
7955 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
7956 expVal
.getLength(), aStrBuf
.getLength()
7963 OStringBuffer
aStrBuf( arrOUS
[1] );
7964 OString
expVal( aStrBuf
.getStr() );
7965 sal_Int32 input
= -4;
7966 sal_Int16 radix
= 10;
7970 aStrBuf
.append( input
, radix
);
7972 CPPUNIT_ASSERT_EQUAL_MESSAGE
7974 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
7975 expVal
, OString(aStrBuf
.getStr())
7977 CPPUNIT_ASSERT_EQUAL_MESSAGE
7979 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
7980 expVal
.getLength(), aStrBuf
.getLength()
7987 OStringBuffer
aStrBuf( arrOUS
[1] );
7988 OString
expVal( aStrBuf
.getStr() );
7989 sal_Int32 input
= -8;
7990 sal_Int16 radix
= 10;
7994 aStrBuf
.append( input
, radix
);
7996 CPPUNIT_ASSERT_EQUAL_MESSAGE
7998 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
7999 expVal
, OString(aStrBuf
.getStr())
8001 CPPUNIT_ASSERT_EQUAL_MESSAGE
8003 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
8004 expVal
.getLength(), aStrBuf
.getLength()
8011 OStringBuffer
aStrBuf( arrOUS
[1] );
8012 OString
expVal( aStrBuf
.getStr() );
8013 sal_Int32 input
= -15;
8014 sal_Int16 radix
= 10;
8017 expVal
+= "15"_ostr
;
8018 aStrBuf
.append( input
, radix
);
8020 CPPUNIT_ASSERT_EQUAL_MESSAGE
8022 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
8023 expVal
, OString(aStrBuf
.getStr())
8025 CPPUNIT_ASSERT_EQUAL_MESSAGE
8027 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
8028 expVal
.getLength(), aStrBuf
.getLength()
8035 OStringBuffer
aStrBuf( arrOUS
[1] );
8036 OString
expVal( aStrBuf
.getStr() );
8037 sal_Int32 input
= -0;
8038 sal_Int16 radix
= 16;
8041 aStrBuf
.append( input
, radix
);
8043 CPPUNIT_ASSERT_EQUAL_MESSAGE
8045 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
8046 expVal
, OString(aStrBuf
.getStr())
8048 CPPUNIT_ASSERT_EQUAL_MESSAGE
8050 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
8051 expVal
.getLength(), aStrBuf
.getLength()
8058 OStringBuffer
aStrBuf( arrOUS
[1] );
8059 OString
expVal( aStrBuf
.getStr() );
8060 sal_Int32 input
= -4;
8061 sal_Int16 radix
= 16;
8065 aStrBuf
.append( input
, radix
);
8067 CPPUNIT_ASSERT_EQUAL_MESSAGE
8069 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
8070 expVal
, OString(aStrBuf
.getStr())
8072 CPPUNIT_ASSERT_EQUAL_MESSAGE
8074 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
8075 expVal
.getLength(), aStrBuf
.getLength()
8082 OStringBuffer
aStrBuf( arrOUS
[1] );
8083 OString
expVal( aStrBuf
.getStr() );
8084 sal_Int32 input
= -8;
8085 sal_Int16 radix
= 16;
8089 aStrBuf
.append( input
, radix
);
8091 CPPUNIT_ASSERT_EQUAL_MESSAGE
8093 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
8094 expVal
, OString(aStrBuf
.getStr())
8096 CPPUNIT_ASSERT_EQUAL_MESSAGE
8098 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
8099 expVal
.getLength(), aStrBuf
.getLength()
8106 OStringBuffer
aStrBuf( arrOUS
[1] );
8107 OString
expVal( aStrBuf
.getStr() );
8108 sal_Int32 input
= -15;
8109 sal_Int16 radix
= 16;
8113 aStrBuf
.append( input
, radix
);
8115 CPPUNIT_ASSERT_EQUAL_MESSAGE
8117 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
8118 expVal
, OString(aStrBuf
.getStr())
8120 CPPUNIT_ASSERT_EQUAL_MESSAGE
8122 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
8123 expVal
.getLength(), aStrBuf
.getLength()
8130 OStringBuffer
aStrBuf( arrOUS
[1] );
8131 OString
expVal( aStrBuf
.getStr() );
8132 sal_Int32 input
= -0;
8133 sal_Int16 radix
= 36;
8136 aStrBuf
.append( input
, radix
);
8138 CPPUNIT_ASSERT_EQUAL_MESSAGE
8140 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
8141 expVal
, OString(aStrBuf
.getStr())
8143 CPPUNIT_ASSERT_EQUAL_MESSAGE
8145 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
8146 expVal
.getLength(), aStrBuf
.getLength()
8153 OStringBuffer
aStrBuf( arrOUS
[1] );
8154 OString
expVal( aStrBuf
.getStr() );
8155 sal_Int32 input
= -4;
8156 sal_Int16 radix
= 36;
8160 aStrBuf
.append( input
, radix
);
8162 CPPUNIT_ASSERT_EQUAL_MESSAGE
8164 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
8165 expVal
, OString(aStrBuf
.getStr())
8167 CPPUNIT_ASSERT_EQUAL_MESSAGE
8169 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
8170 expVal
.getLength(), aStrBuf
.getLength()
8177 OStringBuffer
aStrBuf( arrOUS
[1] );
8178 OString
expVal( aStrBuf
.getStr() );
8179 sal_Int32 input
= -8;
8180 sal_Int16 radix
= 36;
8184 aStrBuf
.append( input
, radix
);
8186 CPPUNIT_ASSERT_EQUAL_MESSAGE
8188 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
8189 expVal
, OString(aStrBuf
.getStr())
8191 CPPUNIT_ASSERT_EQUAL_MESSAGE
8193 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
8194 expVal
.getLength(), aStrBuf
.getLength()
8201 OStringBuffer
aStrBuf( arrOUS
[1] );
8202 OString
expVal( aStrBuf
.getStr() );
8203 sal_Int32 input
= -35;
8204 sal_Int16 radix
= 36;
8208 aStrBuf
.append( input
, radix
);
8210 CPPUNIT_ASSERT_EQUAL_MESSAGE
8212 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
8213 expVal
, OString(aStrBuf
.getStr())
8215 CPPUNIT_ASSERT_EQUAL_MESSAGE
8217 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
8218 expVal
.getLength(), aStrBuf
.getLength()
8225 OStringBuffer
aStrBuf( arrOUS
[2] );
8226 OString
expVal( aStrBuf
.getStr() );
8227 sal_Int32 input
= -0;
8228 sal_Int16 radix
= 2;
8231 aStrBuf
.append( input
, radix
);
8233 CPPUNIT_ASSERT_EQUAL_MESSAGE
8235 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
8236 expVal
, OString(aStrBuf
.getStr())
8238 CPPUNIT_ASSERT_EQUAL_MESSAGE
8240 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
8241 expVal
.getLength(), aStrBuf
.getLength()
8248 OStringBuffer
aStrBuf( arrOUS
[2] );
8249 OString
expVal( aStrBuf
.getStr() );
8250 sal_Int32 input
= -4;
8251 sal_Int16 radix
= 2;
8254 expVal
+= "100"_ostr
;
8255 aStrBuf
.append( input
, radix
);
8257 CPPUNIT_ASSERT_EQUAL_MESSAGE
8259 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
8260 expVal
, OString(aStrBuf
.getStr())
8262 CPPUNIT_ASSERT_EQUAL_MESSAGE
8264 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
8265 expVal
.getLength(), aStrBuf
.getLength()
8272 OStringBuffer
aStrBuf( arrOUS
[2] );
8273 OString
expVal( aStrBuf
.getStr() );
8274 sal_Int32 input
= -8;
8275 sal_Int16 radix
= 2;
8278 expVal
+= "1000"_ostr
;
8279 aStrBuf
.append( input
, radix
);
8281 CPPUNIT_ASSERT_EQUAL_MESSAGE
8283 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
8284 expVal
, OString(aStrBuf
.getStr())
8286 CPPUNIT_ASSERT_EQUAL_MESSAGE
8288 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
8289 expVal
.getLength(), aStrBuf
.getLength()
8296 OStringBuffer
aStrBuf( arrOUS
[2] );
8297 OString
expVal( aStrBuf
.getStr() );
8298 sal_Int32 input
= -15;
8299 sal_Int16 radix
= 2;
8302 expVal
+= "1111"_ostr
;
8303 aStrBuf
.append( input
, radix
);
8305 CPPUNIT_ASSERT_EQUAL_MESSAGE
8307 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
8308 expVal
, OString(aStrBuf
.getStr())
8310 CPPUNIT_ASSERT_EQUAL_MESSAGE
8312 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
8313 expVal
.getLength(), aStrBuf
.getLength()
8320 OStringBuffer
aStrBuf( arrOUS
[2] );
8321 OString
expVal( aStrBuf
.getStr() );
8322 sal_Int32 input
= -0;
8323 sal_Int16 radix
= 8;
8326 aStrBuf
.append( input
, radix
);
8328 CPPUNIT_ASSERT_EQUAL_MESSAGE
8330 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
8331 expVal
, OString(aStrBuf
.getStr())
8333 CPPUNIT_ASSERT_EQUAL_MESSAGE
8335 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
8336 expVal
.getLength(), aStrBuf
.getLength()
8343 OStringBuffer
aStrBuf( arrOUS
[2] );
8344 OString
expVal( aStrBuf
.getStr() );
8345 sal_Int32 input
= -4;
8346 sal_Int16 radix
= 8;
8350 aStrBuf
.append( input
, radix
);
8352 CPPUNIT_ASSERT_EQUAL_MESSAGE
8354 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
8355 expVal
, OString(aStrBuf
.getStr())
8357 CPPUNIT_ASSERT_EQUAL_MESSAGE
8359 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
8360 expVal
.getLength(), aStrBuf
.getLength()
8367 OStringBuffer
aStrBuf( arrOUS
[2] );
8368 OString
expVal( aStrBuf
.getStr() );
8369 sal_Int32 input
= -8;
8370 sal_Int16 radix
= 8;
8373 expVal
+= "10"_ostr
;
8374 aStrBuf
.append( input
, radix
);
8376 CPPUNIT_ASSERT_EQUAL_MESSAGE
8378 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
8379 expVal
, OString(aStrBuf
.getStr())
8381 CPPUNIT_ASSERT_EQUAL_MESSAGE
8383 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
8384 expVal
.getLength(), aStrBuf
.getLength()
8391 OStringBuffer
aStrBuf( arrOUS
[2] );
8392 OString
expVal( aStrBuf
.getStr() );
8393 sal_Int32 input
= -15;
8394 sal_Int16 radix
= 8;
8397 expVal
+= "17"_ostr
;
8398 aStrBuf
.append( input
, radix
);
8400 CPPUNIT_ASSERT_EQUAL_MESSAGE
8402 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
8403 expVal
, OString(aStrBuf
.getStr())
8405 CPPUNIT_ASSERT_EQUAL_MESSAGE
8407 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
8408 expVal
.getLength(), aStrBuf
.getLength()
8415 OStringBuffer
aStrBuf( arrOUS
[2] );
8416 OString
expVal( aStrBuf
.getStr() );
8417 sal_Int32 input
= -0;
8418 sal_Int16 radix
= 10;
8421 aStrBuf
.append( input
, radix
);
8423 CPPUNIT_ASSERT_EQUAL_MESSAGE
8425 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
8426 expVal
, OString(aStrBuf
.getStr())
8428 CPPUNIT_ASSERT_EQUAL_MESSAGE
8430 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
8431 expVal
.getLength(), aStrBuf
.getLength()
8438 OStringBuffer
aStrBuf( arrOUS
[2] );
8439 OString
expVal( aStrBuf
.getStr() );
8440 sal_Int32 input
= -4;
8441 sal_Int16 radix
= 10;
8445 aStrBuf
.append( input
, radix
);
8447 CPPUNIT_ASSERT_EQUAL_MESSAGE
8449 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
8450 expVal
, OString(aStrBuf
.getStr())
8452 CPPUNIT_ASSERT_EQUAL_MESSAGE
8454 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
8455 expVal
.getLength(), aStrBuf
.getLength()
8462 OStringBuffer
aStrBuf( arrOUS
[2] );
8463 OString
expVal( aStrBuf
.getStr() );
8464 sal_Int32 input
= -8;
8465 sal_Int16 radix
= 10;
8469 aStrBuf
.append( input
, radix
);
8471 CPPUNIT_ASSERT_EQUAL_MESSAGE
8473 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
8474 expVal
, OString(aStrBuf
.getStr())
8476 CPPUNIT_ASSERT_EQUAL_MESSAGE
8478 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
8479 expVal
.getLength(), aStrBuf
.getLength()
8486 OStringBuffer
aStrBuf( arrOUS
[2] );
8487 OString
expVal( aStrBuf
.getStr() );
8488 sal_Int32 input
= -15;
8489 sal_Int16 radix
= 10;
8492 expVal
+= "15"_ostr
;
8493 aStrBuf
.append( input
, radix
);
8495 CPPUNIT_ASSERT_EQUAL_MESSAGE
8497 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
8498 expVal
, OString(aStrBuf
.getStr())
8500 CPPUNIT_ASSERT_EQUAL_MESSAGE
8502 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
8503 expVal
.getLength(), aStrBuf
.getLength()
8510 OStringBuffer
aStrBuf( arrOUS
[2] );
8511 OString
expVal( aStrBuf
.getStr() );
8512 sal_Int32 input
= -0;
8513 sal_Int16 radix
= 16;
8516 aStrBuf
.append( input
, radix
);
8518 CPPUNIT_ASSERT_EQUAL_MESSAGE
8520 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
8521 expVal
, OString(aStrBuf
.getStr())
8523 CPPUNIT_ASSERT_EQUAL_MESSAGE
8525 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
8526 expVal
.getLength(), aStrBuf
.getLength()
8533 OStringBuffer
aStrBuf( arrOUS
[2] );
8534 OString
expVal( aStrBuf
.getStr() );
8535 sal_Int32 input
= -4;
8536 sal_Int16 radix
= 16;
8540 aStrBuf
.append( input
, radix
);
8542 CPPUNIT_ASSERT_EQUAL_MESSAGE
8544 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
8545 expVal
, OString(aStrBuf
.getStr())
8547 CPPUNIT_ASSERT_EQUAL_MESSAGE
8549 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
8550 expVal
.getLength(), aStrBuf
.getLength()
8557 OStringBuffer
aStrBuf( arrOUS
[2] );
8558 OString
expVal( aStrBuf
.getStr() );
8559 sal_Int32 input
= -8;
8560 sal_Int16 radix
= 16;
8564 aStrBuf
.append( input
, radix
);
8566 CPPUNIT_ASSERT_EQUAL_MESSAGE
8568 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
8569 expVal
, OString(aStrBuf
.getStr())
8571 CPPUNIT_ASSERT_EQUAL_MESSAGE
8573 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
8574 expVal
.getLength(), aStrBuf
.getLength()
8581 OStringBuffer
aStrBuf( arrOUS
[2] );
8582 OString
expVal( aStrBuf
.getStr() );
8583 sal_Int32 input
= -15;
8584 sal_Int16 radix
= 16;
8588 aStrBuf
.append( input
, radix
);
8590 CPPUNIT_ASSERT_EQUAL_MESSAGE
8592 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
8593 expVal
, OString(aStrBuf
.getStr())
8595 CPPUNIT_ASSERT_EQUAL_MESSAGE
8597 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
8598 expVal
.getLength(), aStrBuf
.getLength()
8605 OStringBuffer
aStrBuf( arrOUS
[2] );
8606 OString
expVal( aStrBuf
.getStr() );
8607 sal_Int32 input
= -0;
8608 sal_Int16 radix
= 36;
8611 aStrBuf
.append( input
, radix
);
8613 CPPUNIT_ASSERT_EQUAL_MESSAGE
8615 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
8616 expVal
, OString(aStrBuf
.getStr())
8618 CPPUNIT_ASSERT_EQUAL_MESSAGE
8620 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
8621 expVal
.getLength(), aStrBuf
.getLength()
8628 OStringBuffer
aStrBuf( arrOUS
[2] );
8629 OString
expVal( aStrBuf
.getStr() );
8630 sal_Int32 input
= -4;
8631 sal_Int16 radix
= 36;
8635 aStrBuf
.append( input
, radix
);
8637 CPPUNIT_ASSERT_EQUAL_MESSAGE
8639 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
8640 expVal
, OString(aStrBuf
.getStr())
8642 CPPUNIT_ASSERT_EQUAL_MESSAGE
8644 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
8645 expVal
.getLength(), aStrBuf
.getLength()
8652 OStringBuffer
aStrBuf( arrOUS
[2] );
8653 OString
expVal( aStrBuf
.getStr() );
8654 sal_Int32 input
= -8;
8655 sal_Int16 radix
= 36;
8659 aStrBuf
.append( input
, radix
);
8661 CPPUNIT_ASSERT_EQUAL_MESSAGE
8663 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
8664 expVal
, OString(aStrBuf
.getStr())
8666 CPPUNIT_ASSERT_EQUAL_MESSAGE
8668 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
8669 expVal
.getLength(), aStrBuf
.getLength()
8676 OStringBuffer
aStrBuf( arrOUS
[2] );
8677 OString
expVal( aStrBuf
.getStr() );
8678 sal_Int32 input
= -35;
8679 sal_Int16 radix
= 36;
8683 aStrBuf
.append( input
, radix
);
8685 CPPUNIT_ASSERT_EQUAL_MESSAGE
8687 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
8688 expVal
, OString(aStrBuf
.getStr())
8690 CPPUNIT_ASSERT_EQUAL_MESSAGE
8692 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
8693 expVal
.getLength(), aStrBuf
.getLength()
8700 OStringBuffer
aStrBuf( arrOUS
[3] );
8701 OString
expVal( aStrBuf
.getStr() );
8702 sal_Int32 input
= -0;
8703 sal_Int16 radix
= 2;
8706 aStrBuf
.append( input
, radix
);
8708 CPPUNIT_ASSERT_EQUAL_MESSAGE
8710 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
8711 expVal
, OString(aStrBuf
.getStr())
8713 CPPUNIT_ASSERT_EQUAL_MESSAGE
8715 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
8716 expVal
.getLength(), aStrBuf
.getLength()
8723 OStringBuffer
aStrBuf( arrOUS
[3] );
8724 OString
expVal( aStrBuf
.getStr() );
8725 sal_Int32 input
= -4;
8726 sal_Int16 radix
= 2;
8729 expVal
+= "100"_ostr
;
8730 aStrBuf
.append( input
, radix
);
8732 CPPUNIT_ASSERT_EQUAL_MESSAGE
8734 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
8735 expVal
, OString(aStrBuf
.getStr())
8737 CPPUNIT_ASSERT_EQUAL_MESSAGE
8739 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
8740 expVal
.getLength(), aStrBuf
.getLength()
8747 OStringBuffer
aStrBuf( arrOUS
[3] );
8748 OString
expVal( aStrBuf
.getStr() );
8749 sal_Int32 input
= -8;
8750 sal_Int16 radix
= 2;
8753 expVal
+= "1000"_ostr
;
8754 aStrBuf
.append( input
, radix
);
8756 CPPUNIT_ASSERT_EQUAL_MESSAGE
8758 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
8759 expVal
, OString(aStrBuf
.getStr())
8761 CPPUNIT_ASSERT_EQUAL_MESSAGE
8763 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
8764 expVal
.getLength(), aStrBuf
.getLength()
8771 OStringBuffer
aStrBuf( arrOUS
[3] );
8772 OString
expVal( aStrBuf
.getStr() );
8773 sal_Int32 input
= -15;
8774 sal_Int16 radix
= 2;
8777 expVal
+= "1111"_ostr
;
8778 aStrBuf
.append( input
, radix
);
8780 CPPUNIT_ASSERT_EQUAL_MESSAGE
8782 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
8783 expVal
, OString(aStrBuf
.getStr())
8785 CPPUNIT_ASSERT_EQUAL_MESSAGE
8787 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
8788 expVal
.getLength(), aStrBuf
.getLength()
8795 OStringBuffer
aStrBuf( arrOUS
[3] );
8796 OString
expVal( aStrBuf
.getStr() );
8797 sal_Int32 input
= -0;
8798 sal_Int16 radix
= 8;
8801 aStrBuf
.append( input
, radix
);
8803 CPPUNIT_ASSERT_EQUAL_MESSAGE
8805 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
8806 expVal
, OString(aStrBuf
.getStr())
8808 CPPUNIT_ASSERT_EQUAL_MESSAGE
8810 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
8811 expVal
.getLength(), aStrBuf
.getLength()
8818 OStringBuffer
aStrBuf( arrOUS
[3] );
8819 OString
expVal( aStrBuf
.getStr() );
8820 sal_Int32 input
= -4;
8821 sal_Int16 radix
= 8;
8825 aStrBuf
.append( input
, radix
);
8827 CPPUNIT_ASSERT_EQUAL_MESSAGE
8829 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
8830 expVal
, OString(aStrBuf
.getStr())
8832 CPPUNIT_ASSERT_EQUAL_MESSAGE
8834 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
8835 expVal
.getLength(), aStrBuf
.getLength()
8842 OStringBuffer
aStrBuf( arrOUS
[3] );
8843 OString
expVal( aStrBuf
.getStr() );
8844 sal_Int32 input
= -8;
8845 sal_Int16 radix
= 8;
8848 expVal
+= "10"_ostr
;
8849 aStrBuf
.append( input
, radix
);
8851 CPPUNIT_ASSERT_EQUAL_MESSAGE
8853 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
8854 expVal
, OString(aStrBuf
.getStr())
8856 CPPUNIT_ASSERT_EQUAL_MESSAGE
8858 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
8859 expVal
.getLength(), aStrBuf
.getLength()
8866 OStringBuffer
aStrBuf( arrOUS
[3] );
8867 OString
expVal( aStrBuf
.getStr() );
8868 sal_Int32 input
= -15;
8869 sal_Int16 radix
= 8;
8872 expVal
+= "17"_ostr
;
8873 aStrBuf
.append( input
, radix
);
8875 CPPUNIT_ASSERT_EQUAL_MESSAGE
8877 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
8878 expVal
, OString(aStrBuf
.getStr())
8880 CPPUNIT_ASSERT_EQUAL_MESSAGE
8882 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
8883 expVal
.getLength(), aStrBuf
.getLength()
8890 OStringBuffer
aStrBuf( arrOUS
[3] );
8891 OString
expVal( aStrBuf
.getStr() );
8892 sal_Int32 input
= -0;
8893 sal_Int16 radix
= 10;
8896 aStrBuf
.append( input
, radix
);
8898 CPPUNIT_ASSERT_EQUAL_MESSAGE
8900 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
8901 expVal
, OString(aStrBuf
.getStr())
8903 CPPUNIT_ASSERT_EQUAL_MESSAGE
8905 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
8906 expVal
.getLength(), aStrBuf
.getLength()
8913 OStringBuffer
aStrBuf( arrOUS
[3] );
8914 OString
expVal( aStrBuf
.getStr() );
8915 sal_Int32 input
= -4;
8916 sal_Int16 radix
= 10;
8920 aStrBuf
.append( input
, radix
);
8922 CPPUNIT_ASSERT_EQUAL_MESSAGE
8924 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
8925 expVal
, OString(aStrBuf
.getStr())
8927 CPPUNIT_ASSERT_EQUAL_MESSAGE
8929 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
8930 expVal
.getLength(), aStrBuf
.getLength()
8937 OStringBuffer
aStrBuf( arrOUS
[3] );
8938 OString
expVal( aStrBuf
.getStr() );
8939 sal_Int32 input
= -8;
8940 sal_Int16 radix
= 10;
8944 aStrBuf
.append( input
, radix
);
8946 CPPUNIT_ASSERT_EQUAL_MESSAGE
8948 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
8949 expVal
, OString(aStrBuf
.getStr())
8951 CPPUNIT_ASSERT_EQUAL_MESSAGE
8953 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
8954 expVal
.getLength(), aStrBuf
.getLength()
8961 OStringBuffer
aStrBuf( arrOUS
[3] );
8962 OString
expVal( aStrBuf
.getStr() );
8963 sal_Int32 input
= -15;
8964 sal_Int16 radix
= 10;
8967 expVal
+= "15"_ostr
;
8968 aStrBuf
.append( input
, radix
);
8970 CPPUNIT_ASSERT_EQUAL_MESSAGE
8972 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
8973 expVal
, OString(aStrBuf
.getStr())
8975 CPPUNIT_ASSERT_EQUAL_MESSAGE
8977 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
8978 expVal
.getLength(), aStrBuf
.getLength()
8985 OStringBuffer
aStrBuf( arrOUS
[3] );
8986 OString
expVal( aStrBuf
.getStr() );
8987 sal_Int32 input
= -0;
8988 sal_Int16 radix
= 16;
8991 aStrBuf
.append( input
, radix
);
8993 CPPUNIT_ASSERT_EQUAL_MESSAGE
8995 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
8996 expVal
, OString(aStrBuf
.getStr())
8998 CPPUNIT_ASSERT_EQUAL_MESSAGE
9000 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
9001 expVal
.getLength(), aStrBuf
.getLength()
9008 OStringBuffer
aStrBuf( arrOUS
[3] );
9009 OString
expVal( aStrBuf
.getStr() );
9010 sal_Int32 input
= -4;
9011 sal_Int16 radix
= 16;
9015 aStrBuf
.append( input
, radix
);
9017 CPPUNIT_ASSERT_EQUAL_MESSAGE
9019 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
9020 expVal
, OString(aStrBuf
.getStr())
9022 CPPUNIT_ASSERT_EQUAL_MESSAGE
9024 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
9025 expVal
.getLength(), aStrBuf
.getLength()
9032 OStringBuffer
aStrBuf( arrOUS
[3] );
9033 OString
expVal( aStrBuf
.getStr() );
9034 sal_Int32 input
= -8;
9035 sal_Int16 radix
= 16;
9039 aStrBuf
.append( input
, radix
);
9041 CPPUNIT_ASSERT_EQUAL_MESSAGE
9043 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
9044 expVal
, OString(aStrBuf
.getStr())
9046 CPPUNIT_ASSERT_EQUAL_MESSAGE
9048 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
9049 expVal
.getLength(), aStrBuf
.getLength()
9056 OStringBuffer
aStrBuf( arrOUS
[3] );
9057 OString
expVal( aStrBuf
.getStr() );
9058 sal_Int32 input
= -15;
9059 sal_Int16 radix
= 16;
9063 aStrBuf
.append( input
, radix
);
9065 CPPUNIT_ASSERT_EQUAL_MESSAGE
9067 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
9068 expVal
, OString(aStrBuf
.getStr())
9070 CPPUNIT_ASSERT_EQUAL_MESSAGE
9072 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
9073 expVal
.getLength(), aStrBuf
.getLength()
9080 OStringBuffer
aStrBuf( arrOUS
[3] );
9081 OString
expVal( aStrBuf
.getStr() );
9082 sal_Int32 input
= -0;
9083 sal_Int16 radix
= 36;
9086 aStrBuf
.append( input
, radix
);
9088 CPPUNIT_ASSERT_EQUAL_MESSAGE
9090 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
9091 expVal
, OString(aStrBuf
.getStr())
9093 CPPUNIT_ASSERT_EQUAL_MESSAGE
9095 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
9096 expVal
.getLength(), aStrBuf
.getLength()
9103 OStringBuffer
aStrBuf( arrOUS
[3] );
9104 OString
expVal( aStrBuf
.getStr() );
9105 sal_Int32 input
= -4;
9106 sal_Int16 radix
= 36;
9110 aStrBuf
.append( input
, radix
);
9112 CPPUNIT_ASSERT_EQUAL_MESSAGE
9114 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
9115 expVal
, OString(aStrBuf
.getStr())
9117 CPPUNIT_ASSERT_EQUAL_MESSAGE
9119 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
9120 expVal
.getLength(), aStrBuf
.getLength()
9127 OStringBuffer
aStrBuf( arrOUS
[3] );
9128 OString
expVal( aStrBuf
.getStr() );
9129 sal_Int32 input
= -8;
9130 sal_Int16 radix
= 36;
9134 aStrBuf
.append( input
, radix
);
9136 CPPUNIT_ASSERT_EQUAL_MESSAGE
9138 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
9139 expVal
, OString(aStrBuf
.getStr())
9141 CPPUNIT_ASSERT_EQUAL_MESSAGE
9143 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
9144 expVal
.getLength(), aStrBuf
.getLength()
9151 OStringBuffer
aStrBuf( arrOUS
[3] );
9152 OString
expVal( aStrBuf
.getStr() );
9153 sal_Int32 input
= -35;
9154 sal_Int16 radix
= 36;
9158 aStrBuf
.append( input
, radix
);
9160 CPPUNIT_ASSERT_EQUAL_MESSAGE
9162 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
9163 expVal
, OString(aStrBuf
.getStr())
9165 CPPUNIT_ASSERT_EQUAL_MESSAGE
9167 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
9168 expVal
.getLength(), aStrBuf
.getLength()
9175 OStringBuffer
aStrBuf( arrOUS
[4] );
9176 OString
expVal( aStrBuf
.getStr() );
9177 sal_Int32 input
= -0;
9178 sal_Int16 radix
= 2;
9181 aStrBuf
.append( input
, radix
);
9183 CPPUNIT_ASSERT_EQUAL_MESSAGE
9185 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
9186 expVal
, OString(aStrBuf
.getStr())
9188 CPPUNIT_ASSERT_EQUAL_MESSAGE
9190 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
9191 expVal
.getLength(), aStrBuf
.getLength()
9198 OStringBuffer
aStrBuf( arrOUS
[4] );
9199 OString
expVal( aStrBuf
.getStr() );
9200 sal_Int32 input
= -4;
9201 sal_Int16 radix
= 2;
9204 expVal
+= "100"_ostr
;
9205 aStrBuf
.append( input
, radix
);
9207 CPPUNIT_ASSERT_EQUAL_MESSAGE
9209 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
9210 expVal
, OString(aStrBuf
.getStr())
9212 CPPUNIT_ASSERT_EQUAL_MESSAGE
9214 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
9215 expVal
.getLength(), aStrBuf
.getLength()
9222 OStringBuffer
aStrBuf( arrOUS
[4] );
9223 OString
expVal( aStrBuf
.getStr() );
9224 sal_Int32 input
= -8;
9225 sal_Int16 radix
= 2;
9228 expVal
+= "1000"_ostr
;
9229 aStrBuf
.append( input
, radix
);
9231 CPPUNIT_ASSERT_EQUAL_MESSAGE
9233 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
9234 expVal
, OString(aStrBuf
.getStr())
9236 CPPUNIT_ASSERT_EQUAL_MESSAGE
9238 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
9239 expVal
.getLength(), aStrBuf
.getLength()
9246 OStringBuffer
aStrBuf( arrOUS
[4] );
9247 OString
expVal( aStrBuf
.getStr() );
9248 sal_Int32 input
= -15;
9249 sal_Int16 radix
= 2;
9252 expVal
+= "1111"_ostr
;
9253 aStrBuf
.append( input
, radix
);
9255 CPPUNIT_ASSERT_EQUAL_MESSAGE
9257 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
9258 expVal
, OString(aStrBuf
.getStr())
9260 CPPUNIT_ASSERT_EQUAL_MESSAGE
9262 "append(sal_Int32, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
9263 expVal
.getLength(), aStrBuf
.getLength()
9270 OStringBuffer
aStrBuf( arrOUS
[4] );
9271 OString
expVal( aStrBuf
.getStr() );
9272 sal_Int32 input
= -0;
9273 sal_Int16 radix
= 8;
9276 aStrBuf
.append( input
, radix
);
9278 CPPUNIT_ASSERT_EQUAL_MESSAGE
9280 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
9281 expVal
, OString(aStrBuf
.getStr())
9283 CPPUNIT_ASSERT_EQUAL_MESSAGE
9285 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
9286 expVal
.getLength(), aStrBuf
.getLength()
9293 OStringBuffer
aStrBuf( arrOUS
[4] );
9294 OString
expVal( aStrBuf
.getStr() );
9295 sal_Int32 input
= -4;
9296 sal_Int16 radix
= 8;
9300 aStrBuf
.append( input
, radix
);
9302 CPPUNIT_ASSERT_EQUAL_MESSAGE
9304 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
9305 expVal
, OString(aStrBuf
.getStr())
9307 CPPUNIT_ASSERT_EQUAL_MESSAGE
9309 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
9310 expVal
.getLength(), aStrBuf
.getLength()
9317 OStringBuffer
aStrBuf( arrOUS
[4] );
9318 OString
expVal( aStrBuf
.getStr() );
9319 sal_Int32 input
= -8;
9320 sal_Int16 radix
= 8;
9323 expVal
+= "10"_ostr
;
9324 aStrBuf
.append( input
, radix
);
9326 CPPUNIT_ASSERT_EQUAL_MESSAGE
9328 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
9329 expVal
, OString(aStrBuf
.getStr())
9331 CPPUNIT_ASSERT_EQUAL_MESSAGE
9333 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
9334 expVal
.getLength(), aStrBuf
.getLength()
9341 OStringBuffer
aStrBuf( arrOUS
[4] );
9342 OString
expVal( aStrBuf
.getStr() );
9343 sal_Int32 input
= -15;
9344 sal_Int16 radix
= 8;
9347 expVal
+= "17"_ostr
;
9348 aStrBuf
.append( input
, radix
);
9350 CPPUNIT_ASSERT_EQUAL_MESSAGE
9352 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
9353 expVal
, OString(aStrBuf
.getStr())
9355 CPPUNIT_ASSERT_EQUAL_MESSAGE
9357 "append(sal_Int32, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
9358 expVal
.getLength(), aStrBuf
.getLength()
9365 OStringBuffer
aStrBuf( arrOUS
[4] );
9366 OString
expVal( aStrBuf
.getStr() );
9367 sal_Int32 input
= -0;
9368 sal_Int16 radix
= 10;
9371 aStrBuf
.append( input
, radix
);
9373 CPPUNIT_ASSERT_EQUAL_MESSAGE
9375 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
9376 expVal
, OString(aStrBuf
.getStr())
9378 CPPUNIT_ASSERT_EQUAL_MESSAGE
9380 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
9381 expVal
.getLength(), aStrBuf
.getLength()
9388 OStringBuffer
aStrBuf( arrOUS
[4] );
9389 OString
expVal( aStrBuf
.getStr() );
9390 sal_Int32 input
= -4;
9391 sal_Int16 radix
= 10;
9395 aStrBuf
.append( input
, radix
);
9397 CPPUNIT_ASSERT_EQUAL_MESSAGE
9399 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
9400 expVal
, OString(aStrBuf
.getStr())
9402 CPPUNIT_ASSERT_EQUAL_MESSAGE
9404 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
9405 expVal
.getLength(), aStrBuf
.getLength()
9412 OStringBuffer
aStrBuf( arrOUS
[4] );
9413 OString
expVal( aStrBuf
.getStr() );
9414 sal_Int32 input
= -8;
9415 sal_Int16 radix
= 10;
9419 aStrBuf
.append( input
, radix
);
9421 CPPUNIT_ASSERT_EQUAL_MESSAGE
9423 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
9424 expVal
, OString(aStrBuf
.getStr())
9426 CPPUNIT_ASSERT_EQUAL_MESSAGE
9428 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
9429 expVal
.getLength(), aStrBuf
.getLength()
9436 OStringBuffer
aStrBuf( arrOUS
[4] );
9437 OString
expVal( aStrBuf
.getStr() );
9438 sal_Int32 input
= -15;
9439 sal_Int16 radix
= 10;
9442 expVal
+= "15"_ostr
;
9443 aStrBuf
.append( input
, radix
);
9445 CPPUNIT_ASSERT_EQUAL_MESSAGE
9447 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
9448 expVal
, OString(aStrBuf
.getStr())
9450 CPPUNIT_ASSERT_EQUAL_MESSAGE
9452 "append(sal_Int32, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
9453 expVal
.getLength(), aStrBuf
.getLength()
9460 OStringBuffer
aStrBuf( arrOUS
[4] );
9461 OString
expVal( aStrBuf
.getStr() );
9462 sal_Int32 input
= -0;
9463 sal_Int16 radix
= 16;
9466 aStrBuf
.append( input
, radix
);
9468 CPPUNIT_ASSERT_EQUAL_MESSAGE
9470 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
9471 expVal
, OString(aStrBuf
.getStr())
9473 CPPUNIT_ASSERT_EQUAL_MESSAGE
9475 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
9476 expVal
.getLength(), aStrBuf
.getLength()
9483 OStringBuffer
aStrBuf( arrOUS
[4] );
9484 OString
expVal( aStrBuf
.getStr() );
9485 sal_Int32 input
= -4;
9486 sal_Int16 radix
= 16;
9490 aStrBuf
.append( input
, radix
);
9492 CPPUNIT_ASSERT_EQUAL_MESSAGE
9494 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
9495 expVal
, OString(aStrBuf
.getStr())
9497 CPPUNIT_ASSERT_EQUAL_MESSAGE
9499 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
9500 expVal
.getLength(), aStrBuf
.getLength()
9507 OStringBuffer
aStrBuf( arrOUS
[4] );
9508 OString
expVal( aStrBuf
.getStr() );
9509 sal_Int32 input
= -8;
9510 sal_Int16 radix
= 16;
9514 aStrBuf
.append( input
, radix
);
9516 CPPUNIT_ASSERT_EQUAL_MESSAGE
9518 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
9519 expVal
, OString(aStrBuf
.getStr())
9521 CPPUNIT_ASSERT_EQUAL_MESSAGE
9523 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
9524 expVal
.getLength(), aStrBuf
.getLength()
9531 OStringBuffer
aStrBuf( arrOUS
[4] );
9532 OString
expVal( aStrBuf
.getStr() );
9533 sal_Int32 input
= -15;
9534 sal_Int16 radix
= 16;
9538 aStrBuf
.append( input
, radix
);
9540 CPPUNIT_ASSERT_EQUAL_MESSAGE
9542 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
9543 expVal
, OString(aStrBuf
.getStr())
9545 CPPUNIT_ASSERT_EQUAL_MESSAGE
9547 "append(sal_Int32, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
9548 expVal
.getLength(), aStrBuf
.getLength()
9555 OStringBuffer
aStrBuf( arrOUS
[4] );
9556 OString
expVal( aStrBuf
.getStr() );
9557 sal_Int32 input
= -0;
9558 sal_Int16 radix
= 36;
9561 aStrBuf
.append( input
, radix
);
9563 CPPUNIT_ASSERT_EQUAL_MESSAGE
9565 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
9566 expVal
, OString(aStrBuf
.getStr())
9568 CPPUNIT_ASSERT_EQUAL_MESSAGE
9570 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
9571 expVal
.getLength(), aStrBuf
.getLength()
9578 OStringBuffer
aStrBuf( arrOUS
[4] );
9579 OString
expVal( aStrBuf
.getStr() );
9580 sal_Int32 input
= -4;
9581 sal_Int16 radix
= 36;
9585 aStrBuf
.append( input
, radix
);
9587 CPPUNIT_ASSERT_EQUAL_MESSAGE
9589 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
9590 expVal
, OString(aStrBuf
.getStr())
9592 CPPUNIT_ASSERT_EQUAL_MESSAGE
9594 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
9595 expVal
.getLength(), aStrBuf
.getLength()
9601 OStringBuffer
aStrBuf( arrOUS
[4] );
9602 OString
expVal( aStrBuf
.getStr() );
9603 sal_Int32 input
= -8;
9604 sal_Int16 radix
= 36;
9608 aStrBuf
.append( input
, radix
);
9610 CPPUNIT_ASSERT_EQUAL_MESSAGE
9612 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
9613 expVal
, OString(aStrBuf
.getStr())
9615 CPPUNIT_ASSERT_EQUAL_MESSAGE
9617 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
9618 expVal
.getLength(), aStrBuf
.getLength()
9624 OStringBuffer
aStrBuf( arrOUS
[4] );
9625 OString
expVal( aStrBuf
.getStr() );
9626 sal_Int32 input
= -35;
9627 sal_Int16 radix
= 36;
9631 aStrBuf
.append( input
, radix
);
9633 CPPUNIT_ASSERT_EQUAL_MESSAGE
9635 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
9636 expVal
, OString(aStrBuf
.getStr())
9638 CPPUNIT_ASSERT_EQUAL_MESSAGE
9640 "append(sal_Int32, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
9641 expVal
.getLength(), aStrBuf
.getLength()
9645 CPPUNIT_TEST_SUITE( append_006_Int32_Negative
);
9646 CPPUNIT_TEST( append_001
); CPPUNIT_TEST( append_002
);
9647 CPPUNIT_TEST( append_003
); CPPUNIT_TEST( append_004
);
9648 CPPUNIT_TEST( append_005
); CPPUNIT_TEST( append_006
);
9649 CPPUNIT_TEST( append_007
); CPPUNIT_TEST( append_008
);
9650 CPPUNIT_TEST( append_009
); CPPUNIT_TEST( append_010
);
9651 CPPUNIT_TEST( append_011
); CPPUNIT_TEST( append_012
);
9652 CPPUNIT_TEST( append_013
); CPPUNIT_TEST( append_014
);
9653 CPPUNIT_TEST( append_015
); CPPUNIT_TEST( append_016
);
9654 CPPUNIT_TEST( append_017
); CPPUNIT_TEST( append_018
);
9655 CPPUNIT_TEST( append_019
); CPPUNIT_TEST( append_020
);
9656 CPPUNIT_TEST( append_021
); CPPUNIT_TEST( append_022
);
9657 CPPUNIT_TEST( append_023
); CPPUNIT_TEST( append_024
);
9658 CPPUNIT_TEST( append_025
); CPPUNIT_TEST( append_026
);
9659 CPPUNIT_TEST( append_027
); CPPUNIT_TEST( append_028
);
9660 CPPUNIT_TEST( append_029
); CPPUNIT_TEST( append_030
);
9661 CPPUNIT_TEST( append_031
); CPPUNIT_TEST( append_032
);
9662 CPPUNIT_TEST( append_033
); CPPUNIT_TEST( append_034
);
9663 CPPUNIT_TEST( append_035
); CPPUNIT_TEST( append_036
);
9664 CPPUNIT_TEST( append_037
); CPPUNIT_TEST( append_038
);
9665 CPPUNIT_TEST( append_039
); CPPUNIT_TEST( append_040
);
9666 CPPUNIT_TEST( append_041
); CPPUNIT_TEST( append_042
);
9667 CPPUNIT_TEST( append_043
); CPPUNIT_TEST( append_044
);
9668 CPPUNIT_TEST( append_045
); CPPUNIT_TEST( append_046
);
9669 CPPUNIT_TEST( append_047
); CPPUNIT_TEST( append_048
);
9670 CPPUNIT_TEST( append_049
); CPPUNIT_TEST( append_050
);
9671 CPPUNIT_TEST( append_051
); CPPUNIT_TEST( append_052
);
9672 CPPUNIT_TEST( append_053
); CPPUNIT_TEST( append_054
);
9673 CPPUNIT_TEST( append_055
); CPPUNIT_TEST( append_056
);
9674 CPPUNIT_TEST( append_057
); CPPUNIT_TEST( append_058
);
9675 CPPUNIT_TEST( append_059
); CPPUNIT_TEST( append_060
);
9676 CPPUNIT_TEST( append_061
); CPPUNIT_TEST( append_062
);
9677 CPPUNIT_TEST( append_063
); CPPUNIT_TEST( append_064
);
9678 CPPUNIT_TEST( append_065
); CPPUNIT_TEST( append_066
);
9679 CPPUNIT_TEST( append_067
); CPPUNIT_TEST( append_068
);
9680 CPPUNIT_TEST( append_069
); CPPUNIT_TEST( append_070
);
9681 CPPUNIT_TEST( append_071
); CPPUNIT_TEST( append_072
);
9682 CPPUNIT_TEST( append_073
); CPPUNIT_TEST( append_074
);
9683 CPPUNIT_TEST( append_075
); CPPUNIT_TEST( append_076
);
9684 CPPUNIT_TEST( append_077
); CPPUNIT_TEST( append_078
);
9685 CPPUNIT_TEST( append_079
); CPPUNIT_TEST( append_080
);
9686 CPPUNIT_TEST( append_081
); CPPUNIT_TEST( append_082
);
9687 CPPUNIT_TEST( append_083
); CPPUNIT_TEST( append_084
);
9688 CPPUNIT_TEST( append_085
); CPPUNIT_TEST( append_086
);
9689 CPPUNIT_TEST( append_087
); CPPUNIT_TEST( append_088
);
9690 CPPUNIT_TEST( append_089
); CPPUNIT_TEST( append_090
);
9691 CPPUNIT_TEST( append_091
); CPPUNIT_TEST( append_092
);
9692 CPPUNIT_TEST( append_093
); CPPUNIT_TEST( append_094
);
9693 CPPUNIT_TEST( append_095
); CPPUNIT_TEST( append_096
);
9694 CPPUNIT_TEST( append_097
); CPPUNIT_TEST( append_098
);
9695 CPPUNIT_TEST( append_099
); CPPUNIT_TEST( append_100
);
9696 CPPUNIT_TEST_SUITE_END();
9699 class append_006_Int32_defaultParam
: public CppUnit::TestFixture
9704 void setUp() override
9706 arrOUS
[0] = OString( kTestStr7
);
9707 arrOUS
[1] = OString( );
9708 arrOUS
[2] = OString( kTestStr25
);
9709 arrOUS
[3] = ""_ostr
;
9710 arrOUS
[4] = OString( kTestStr28
);
9715 OStringBuffer
aStrBuf( arrOUS
[0] );
9716 OString
expVal( kTestStr59
);
9717 sal_Int32 input
= 11;
9719 aStrBuf
.append( input
);
9721 CPPUNIT_ASSERT_EQUAL_MESSAGE
9723 "input Int32 11 and return OStringBuffer[0]+11",
9724 expVal
, aStrBuf
.toString()
9726 CPPUNIT_ASSERT_EQUAL_MESSAGE
9728 "input Int32 11 and return OStringBuffer[0]+11",
9729 expVal
.getLength(), aStrBuf
.getLength()
9736 OStringBuffer
aStrBuf( arrOUS
[0] );
9737 OString
expVal( kTestStr62
);
9738 sal_Int32 input
= 0;
9740 aStrBuf
.append( input
);
9742 CPPUNIT_ASSERT_EQUAL_MESSAGE
9744 "input Int32 0 and return OStringBuffer[0]+0",
9745 expVal
, aStrBuf
.toString()
9747 CPPUNIT_ASSERT_EQUAL_MESSAGE
9749 "input Int32 0 and return OStringBuffer[0]+0",
9750 expVal
.getLength(), aStrBuf
.getLength()
9757 OStringBuffer
aStrBuf( arrOUS
[0] );
9758 OString
expVal( kTestStr63
);
9759 sal_Int32 input
= -11;
9761 aStrBuf
.append( input
);
9763 CPPUNIT_ASSERT_EQUAL_MESSAGE
9765 "input Int32 -11 and return OStringBuffer[0]+(-11)",
9766 expVal
, aStrBuf
.toString()
9768 CPPUNIT_ASSERT_EQUAL_MESSAGE
9770 "input Int32 -11 and return OStringBuffer[0]+(-11)",
9771 expVal
.getLength(), aStrBuf
.getLength()
9778 OStringBuffer
aStrBuf( arrOUS
[0] );
9779 OString
expVal( kTestStr64
);
9780 sal_Int32 input
= 2147483647;
9782 aStrBuf
.append( input
);
9784 CPPUNIT_ASSERT_EQUAL_MESSAGE
9786 "input Int32 2147483647 and return OStringBuffer[0]+2147483647",
9787 expVal
, aStrBuf
.toString()
9789 CPPUNIT_ASSERT_EQUAL_MESSAGE
9791 "input Int32 2147483647 and return OStringBuffer[0]+2147483647",
9792 expVal
.getLength(), aStrBuf
.getLength()
9799 OStringBuffer
aStrBuf( arrOUS
[0] );
9800 OString
expVal( kTestStr65
);
9801 sal_Int32 input
= kNonSInt32Max
;
9803 aStrBuf
.append( input
);
9805 CPPUNIT_ASSERT_EQUAL_MESSAGE
9807 "input Int32 -2147483648 and return OStringBuffer[0]+(-2147483648)",
9808 expVal
, aStrBuf
.toString()
9810 CPPUNIT_ASSERT_EQUAL_MESSAGE
9812 "input Int32 -2147483648 and return OStringBuffer[0]+(-2147483648)",
9813 expVal
.getLength(), aStrBuf
.getLength()
9820 OStringBuffer
aStrBuf( arrOUS
[1] );
9821 OString
expVal( kTestStr60
);
9822 sal_Int32 input
= 11;
9824 aStrBuf
.append( input
);
9826 CPPUNIT_ASSERT_EQUAL_MESSAGE
9828 "input Int32 11 and return OStringBuffer[1]+11",
9829 expVal
, aStrBuf
.toString()
9831 CPPUNIT_ASSERT_EQUAL_MESSAGE
9833 "input Int32 11 and return OStringBuffer[1]+11",
9834 expVal
.getLength(), aStrBuf
.getLength()
9841 OStringBuffer
aStrBuf( arrOUS
[1] );
9842 OString
expVal( kTestStr66
);
9843 sal_Int32 input
= 0;
9845 aStrBuf
.append( input
);
9847 CPPUNIT_ASSERT_EQUAL_MESSAGE
9849 "input Int32 0 and return OStringBuffer[1]+0",
9850 expVal
, aStrBuf
.toString()
9852 CPPUNIT_ASSERT_EQUAL_MESSAGE
9854 "input Int32 0 and return OStringBuffer[1]+0",
9855 expVal
.getLength(), aStrBuf
.getLength()
9862 OStringBuffer
aStrBuf( arrOUS
[1] );
9863 OString
expVal( kTestStr67
);
9864 sal_Int32 input
= -11;
9866 aStrBuf
.append( input
);
9868 CPPUNIT_ASSERT_EQUAL_MESSAGE
9870 "input Int32 -11 and return OStringBuffer[1]+(-11)",
9871 expVal
, aStrBuf
.toString()
9873 CPPUNIT_ASSERT_EQUAL_MESSAGE
9875 "input Int32 -11 and return OStringBuffer[1]+(-11)",
9876 expVal
.getLength(), aStrBuf
.getLength()
9883 OStringBuffer
aStrBuf( arrOUS
[1] );
9884 OString
expVal( kTestStr68
);
9885 sal_Int32 input
= 2147483647;
9887 aStrBuf
.append( input
);
9889 CPPUNIT_ASSERT_EQUAL_MESSAGE
9891 "input Int32 2147483647 and return OStringBuffer[1]+2147483647",
9892 expVal
, aStrBuf
.toString()
9894 CPPUNIT_ASSERT_EQUAL_MESSAGE
9896 "input Int32 2147483647 and return OStringBuffer[1]+2147483647",
9897 expVal
.getLength(), aStrBuf
.getLength()
9904 OStringBuffer
aStrBuf( arrOUS
[1] );
9905 OString
expVal( kTestStr69
);
9906 sal_Int32 input
= SAL_MIN_INT32
/*-2147483648*/;
9908 aStrBuf
.append( input
);
9910 CPPUNIT_ASSERT_EQUAL_MESSAGE
9912 "input Int32 -2147483648 and return OStringBuffer[1]+(-2147483648)",
9913 expVal
, aStrBuf
.toString()
9915 CPPUNIT_ASSERT_EQUAL_MESSAGE
9917 "input Int32 -2147483648 and return OStringBuffer[1]+(-2147483648)",
9918 expVal
.getLength(), aStrBuf
.getLength()
9925 OStringBuffer
aStrBuf( arrOUS
[2] );
9926 OString
expVal( kTestStr60
);
9927 sal_Int32 input
= 11;
9929 aStrBuf
.append( input
);
9931 CPPUNIT_ASSERT_EQUAL_MESSAGE
9933 "input Int32 11 and return OStringBuffer[2]+11",
9934 expVal
, aStrBuf
.toString()
9936 CPPUNIT_ASSERT_EQUAL_MESSAGE
9938 "input Int32 11 and return OStringBuffer[2]+11",
9939 expVal
.getLength(), aStrBuf
.getLength()
9946 OStringBuffer
aStrBuf( arrOUS
[2] );
9947 OString
expVal( kTestStr66
);
9948 sal_Int32 input
= 0;
9950 aStrBuf
.append( input
);
9952 CPPUNIT_ASSERT_EQUAL_MESSAGE
9954 "input Int32 0 and return OUStringBuffer[2]+0",
9955 expVal
, aStrBuf
.toString()
9957 CPPUNIT_ASSERT_EQUAL_MESSAGE
9959 "input Int32 0 and return OUStringBuffer[2]+0",
9960 expVal
.getLength(), aStrBuf
.getLength()
9967 OStringBuffer
aStrBuf( arrOUS
[2] );
9968 OString
expVal( kTestStr67
);
9969 sal_Int32 input
= -11;
9971 aStrBuf
.append( input
);
9973 CPPUNIT_ASSERT_EQUAL_MESSAGE
9975 "input Int32 -11 and return OUStringBuffer[2]+(-11)",
9976 expVal
, aStrBuf
.toString()
9978 CPPUNIT_ASSERT_EQUAL_MESSAGE
9980 "input Int32 -11 and return OUStringBuffer[2]+(-11)",
9981 expVal
.getLength(), aStrBuf
.getLength()
9988 OStringBuffer
aStrBuf( arrOUS
[2] );
9989 OString
expVal( kTestStr68
);
9990 sal_Int32 input
= 2147483647;
9992 aStrBuf
.append( input
);
9994 CPPUNIT_ASSERT_EQUAL_MESSAGE
9996 "input Int32 2147483647 and return OStringBuffer[2]+2147483647",
9997 expVal
, aStrBuf
.toString()
9999 CPPUNIT_ASSERT_EQUAL_MESSAGE
10001 "input Int32 2147483647 and return OStringBuffer[2]+2147483647",
10002 expVal
.getLength(), aStrBuf
.getLength()
10009 OStringBuffer
aStrBuf( arrOUS
[2] );
10010 OString
expVal( kTestStr69
);
10011 sal_Int32 input
= SAL_MIN_INT32
;
10013 aStrBuf
.append( input
);
10015 CPPUNIT_ASSERT_EQUAL_MESSAGE
10017 "input Int32 -2147483648 and return OStringBuffer[2]+(-2147483648)",
10018 expVal
, aStrBuf
.toString()
10020 CPPUNIT_ASSERT_EQUAL_MESSAGE
10022 "input Int32 -2147483648 and return OStringBuffer[2]+(-2147483648)",
10023 expVal
.getLength(), aStrBuf
.getLength()
10030 OStringBuffer
aStrBuf( arrOUS
[3] );
10031 OString
expVal( kTestStr60
);
10032 sal_Int32 input
= 11;
10034 aStrBuf
.append( input
);
10036 CPPUNIT_ASSERT_EQUAL_MESSAGE
10038 "input Int32 11 and return OStringBuffer[3]+11",
10039 expVal
, aStrBuf
.toString()
10041 CPPUNIT_ASSERT_EQUAL_MESSAGE
10043 "input Int32 11 and return OStringBuffer[3]+11",
10044 expVal
.getLength(), aStrBuf
.getLength()
10051 OStringBuffer
aStrBuf( arrOUS
[3] );
10052 OString
expVal( kTestStr66
);
10053 sal_Int32 input
= 0;
10055 aStrBuf
.append( input
);
10057 CPPUNIT_ASSERT_EQUAL_MESSAGE
10059 "input Int32 0 and return OStringBuffer[3]+0",
10060 expVal
, aStrBuf
.toString()
10062 CPPUNIT_ASSERT_EQUAL_MESSAGE
10064 "input Int32 0 and return OStringBuffer[3]+0",
10065 expVal
.getLength(), aStrBuf
.getLength()
10072 OStringBuffer
aStrBuf( arrOUS
[3] );
10073 OString
expVal( kTestStr67
);
10074 sal_Int32 input
= -11;
10076 aStrBuf
.append( input
);
10078 CPPUNIT_ASSERT_EQUAL_MESSAGE
10080 "input Int32 -11 and return OStringBuffer[3]+(-11)",
10081 expVal
, aStrBuf
.toString()
10083 CPPUNIT_ASSERT_EQUAL_MESSAGE
10085 "input Int32 -11 and return OStringBuffer[3]+(-11)",
10086 expVal
.getLength(), aStrBuf
.getLength()
10093 OStringBuffer
aStrBuf( arrOUS
[3] );
10094 OString
expVal( kTestStr68
);
10095 sal_Int32 input
= 2147483647;
10097 aStrBuf
.append( input
);
10099 CPPUNIT_ASSERT_EQUAL_MESSAGE
10101 "input Int32 2147483647 and return OStringBuffer[3]+2147483647",
10102 expVal
, aStrBuf
.toString()
10104 CPPUNIT_ASSERT_EQUAL_MESSAGE
10106 "input Int32 2147483647 and return OStringBuffer[3]+2147483647",
10107 expVal
.getLength(), aStrBuf
.getLength()
10114 OStringBuffer
aStrBuf( arrOUS
[3] );
10115 OString
expVal( kTestStr69
);
10116 sal_Int32 input
= SAL_MIN_INT32
;
10118 aStrBuf
.append( input
);
10120 CPPUNIT_ASSERT_EQUAL_MESSAGE
10122 "input Int32 -2147483648 and return OStringBuffer[3]+(-2147483648)",
10123 expVal
, aStrBuf
.toString()
10125 CPPUNIT_ASSERT_EQUAL_MESSAGE
10127 "input Int32 -2147483648 and return OStringBuffer[3]+(-2147483648)",
10128 expVal
.getLength(), aStrBuf
.getLength()
10135 OStringBuffer
aStrBuf( arrOUS
[4] );
10136 OString
expVal( kTestStr61
);
10137 sal_Int32 input
= 11;
10139 aStrBuf
.append( input
);
10141 CPPUNIT_ASSERT_EQUAL_MESSAGE
10143 "input Int32 11 and return OStringBuffer[4]+11",
10144 expVal
, aStrBuf
.toString()
10146 CPPUNIT_ASSERT_EQUAL_MESSAGE
10148 "input Int32 11 and return OStringBuffer[4]+11",
10149 expVal
.getLength(), aStrBuf
.getLength()
10156 OStringBuffer
aStrBuf( arrOUS
[4] );
10157 OString
expVal( kTestStr70
);
10158 sal_Int32 input
= 0;
10160 aStrBuf
.append( input
);
10162 CPPUNIT_ASSERT_EQUAL_MESSAGE
10164 "input Int32 0 and return OStringBuffer[4]+0",
10165 expVal
, aStrBuf
.toString()
10167 CPPUNIT_ASSERT_EQUAL_MESSAGE
10169 "input Int32 0 and return OStringBuffer[4]+0",
10170 expVal
.getLength(), aStrBuf
.getLength()
10177 OStringBuffer
aStrBuf( arrOUS
[4] );
10178 OString
expVal( kTestStr71
);
10179 sal_Int32 input
= -11;
10181 aStrBuf
.append( input
);
10183 CPPUNIT_ASSERT_EQUAL_MESSAGE
10185 "input Int32 -11 and return OStringBuffer[4]+(-11)",
10186 expVal
, aStrBuf
.toString()
10188 CPPUNIT_ASSERT_EQUAL_MESSAGE
10190 "input Int32 -11 and return OStringBuffer[4]+(-11)",
10191 expVal
.getLength(), aStrBuf
.getLength()
10198 OStringBuffer
aStrBuf( arrOUS
[4] );
10199 OString
expVal( kTestStr72
);
10200 sal_Int32 input
= 2147483647;
10202 aStrBuf
.append( input
);
10204 CPPUNIT_ASSERT_EQUAL_MESSAGE
10206 "input Int32 2147483647 and return OStringBuffer[4]+2147483647",
10207 expVal
, aStrBuf
.toString()
10209 CPPUNIT_ASSERT_EQUAL_MESSAGE
10211 "input Int32 2147483647 and return OStringBuffer[4]+2147483647",
10212 expVal
.getLength(), aStrBuf
.getLength()
10219 OStringBuffer
aStrBuf( arrOUS
[4] );
10220 OString
expVal( kTestStr73
);
10221 sal_Int32 input
= SAL_MIN_INT32
;
10223 aStrBuf
.append( input
);
10225 CPPUNIT_ASSERT_EQUAL_MESSAGE
10227 "input Int32 -2147483648 and return OStringBuffer[4]+(-2147483648)",
10228 expVal
, aStrBuf
.toString()
10230 CPPUNIT_ASSERT_EQUAL_MESSAGE
10232 "input Int32 -2147483648 and return OStringBuffer[4]+(-2147483648)",
10233 expVal
.getLength(), aStrBuf
.getLength()
10240 OStringBuffer
aStrBuf( kSInt32Max
);
10241 OString
expVal( kTestStr60
);
10242 sal_Int32 input
= 11;
10244 aStrBuf
.append( input
);
10246 CPPUNIT_ASSERT_MESSAGE
10248 "input Int32 11 and return OStringBuffer(kSInt32Max)+11",
10249 (aStrBuf
.toString() == expVal
&&
10250 aStrBuf
.getLength() == expVal
.getLength())
10257 OStringBuffer
aStrBuf( kSInt32Max
);
10258 OString
expVal( kTestStr66
);
10259 sal_Int32 input
= 0;
10261 aStrBuf
.append( input
);
10263 CPPUNIT_ASSERT_MESSAGE
10265 "input Int32 0 and return OStringBuffer(kSInt32Max)+0",
10266 (aStrBuf
.toString() == expVal
&&
10267 aStrBuf
.getLength() == expVal
.getLength())
10274 OStringBuffer
aStrBuf( kSInt32Max
);
10275 OString
expVal( kTestStr67
);
10276 sal_Int32 input
= -11;
10278 aStrBuf
.append( input
);
10280 CPPUNIT_ASSERT_MESSAGE
10282 "input Int32 -11 and return OStringBuffer(kSInt32Max)+(-11)",
10283 (aStrBuf
.toString() == expVal
&&
10284 aStrBuf
.getLength() == expVal
.getLength())
10291 OStringBuffer
aStrBuf( kSInt32Max
);
10292 OString
expVal( kTestStr68
);
10293 sal_Int32 input
= 2147483647;
10295 aStrBuf
.append( input
);
10297 CPPUNIT_ASSERT_MESSAGE
10299 "input Int32 2147483647 and return OStringBuffer(kSInt32Max)+2147483647",
10300 (aStrBuf
.toString() == expVal
&&
10301 aStrBuf
.getLength() == expVal
.getLength())
10308 OStringBuffer
aStrBuf( kSInt32Max
);
10309 OString
expVal( kTestStr69
);
10310 sal_Int32 input
= SAL_MIN_INT32
;
10312 aStrBuf
.append( input
);
10314 CPPUNIT_ASSERT_MESSAGE
10316 "input Int32 -2147483648 and return OStringBuffer(kSInt32Max)+(-2147483648)",
10317 (aStrBuf
.toString() == expVal
&&
10318 aStrBuf
.getLength() == expVal
.getLength())
10324 CPPUNIT_TEST_SUITE( append_006_Int32_defaultParam
);
10325 CPPUNIT_TEST( append_001
);
10326 CPPUNIT_TEST( append_002
);
10327 CPPUNIT_TEST( append_003
);
10328 CPPUNIT_TEST( append_004
);
10329 CPPUNIT_TEST( append_005
);
10330 CPPUNIT_TEST( append_006
);
10331 CPPUNIT_TEST( append_007
);
10332 CPPUNIT_TEST( append_008
);
10333 CPPUNIT_TEST( append_009
);
10334 CPPUNIT_TEST( append_010
);
10335 CPPUNIT_TEST( append_011
);
10336 CPPUNIT_TEST( append_012
);
10337 CPPUNIT_TEST( append_013
);
10338 CPPUNIT_TEST( append_014
);
10339 CPPUNIT_TEST( append_015
);
10340 CPPUNIT_TEST( append_016
);
10341 CPPUNIT_TEST( append_017
);
10342 CPPUNIT_TEST( append_018
);
10343 CPPUNIT_TEST( append_019
);
10344 CPPUNIT_TEST( append_020
);
10345 CPPUNIT_TEST( append_021
);
10346 CPPUNIT_TEST( append_022
);
10347 CPPUNIT_TEST( append_023
);
10348 CPPUNIT_TEST( append_024
);
10349 CPPUNIT_TEST( append_025
);
10351 CPPUNIT_TEST( append_026
);
10352 CPPUNIT_TEST( append_027
);
10353 CPPUNIT_TEST( append_028
);
10354 CPPUNIT_TEST( append_029
);
10355 CPPUNIT_TEST( append_030
);
10357 CPPUNIT_TEST_SUITE_END();
10360 // testing the method append( sal_Int64 l, sal_Int16 radix=2 )
10361 // testing the method append( sal_Int64 l, sal_Int16 radix=8 )
10362 // testing the method append( sal_Int64 l, sal_Int16 radix=10 )
10363 // testing the method append( sal_Int64 l, sal_Int16 radix=16 )
10364 // testing the method append( sal_Int64 l, sal_Int16 radix=36 )
10366 class append_007_Int64
: public CppUnit::TestFixture
10371 void setUp() override
10373 arrOUS
[0] = OString( kTestStr7
);
10374 arrOUS
[1] = OString( );
10375 arrOUS
[2] = OString( kTestStr25
);
10376 arrOUS
[3] = ""_ostr
;
10377 arrOUS
[4] = OString( kTestStr28
);
10382 OStringBuffer
aStrBuf( arrOUS
[0] );
10383 OString
expVal( aStrBuf
.getStr() );
10384 sal_Int64 input
= 0;
10385 sal_Int16 radix
= 2;
10387 expVal
+= "0"_ostr
;
10388 aStrBuf
.append( input
, radix
);
10390 CPPUNIT_ASSERT_EQUAL_MESSAGE
10392 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
10393 expVal
, OString(aStrBuf
.getStr())
10395 CPPUNIT_ASSERT_EQUAL_MESSAGE
10397 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
10398 expVal
.getLength(), aStrBuf
.getLength()
10405 OStringBuffer
aStrBuf( arrOUS
[0] );
10406 OString
expVal( aStrBuf
.getStr() );
10407 sal_Int64 input
= 4;
10408 sal_Int16 radix
= 2;
10410 expVal
+= "100"_ostr
;
10411 aStrBuf
.append( input
, radix
);
10413 CPPUNIT_ASSERT_EQUAL_MESSAGE
10415 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
10416 expVal
, OString(aStrBuf
.getStr())
10418 CPPUNIT_ASSERT_EQUAL_MESSAGE
10420 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
10421 expVal
.getLength(), aStrBuf
.getLength()
10428 OStringBuffer
aStrBuf( arrOUS
[0] );
10429 OString
expVal( aStrBuf
.getStr() );
10430 sal_Int64 input
= 8;
10431 sal_Int16 radix
= 2;
10433 expVal
+= "1000"_ostr
;
10434 aStrBuf
.append( input
, radix
);
10436 CPPUNIT_ASSERT_EQUAL_MESSAGE
10438 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
10439 expVal
, OString(aStrBuf
.getStr())
10441 CPPUNIT_ASSERT_EQUAL_MESSAGE
10443 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
10444 expVal
.getLength(), aStrBuf
.getLength()
10451 OStringBuffer
aStrBuf( arrOUS
[0] );
10452 OString
expVal( aStrBuf
.getStr() );
10453 sal_Int64 input
= 15;
10454 sal_Int16 radix
= 2;
10456 expVal
+= "1111"_ostr
;
10457 aStrBuf
.append( input
, radix
);
10459 CPPUNIT_ASSERT_EQUAL_MESSAGE
10461 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
10462 expVal
, OString(aStrBuf
.getStr())
10464 CPPUNIT_ASSERT_EQUAL_MESSAGE
10466 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[0]",
10467 expVal
.getLength(), aStrBuf
.getLength()
10474 OStringBuffer
aStrBuf( arrOUS
[0] );
10475 OString
expVal( aStrBuf
.getStr() );
10476 sal_Int64 input
= 0;
10477 sal_Int16 radix
= 8;
10479 expVal
+= "0"_ostr
;
10480 aStrBuf
.append( input
, radix
);
10482 CPPUNIT_ASSERT_EQUAL_MESSAGE
10484 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
10485 expVal
, OString(aStrBuf
.getStr())
10487 CPPUNIT_ASSERT_EQUAL_MESSAGE
10489 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
10490 expVal
.getLength(), aStrBuf
.getLength()
10497 OStringBuffer
aStrBuf( arrOUS
[0] );
10498 OString
expVal( aStrBuf
.getStr() );
10499 sal_Int64 input
= 4;
10500 sal_Int16 radix
= 8;
10502 expVal
+= "4"_ostr
;
10503 aStrBuf
.append( input
, radix
);
10505 CPPUNIT_ASSERT_EQUAL_MESSAGE
10507 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
10508 expVal
, OString(aStrBuf
.getStr())
10510 CPPUNIT_ASSERT_EQUAL_MESSAGE
10512 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
10513 expVal
.getLength(), aStrBuf
.getLength()
10520 OStringBuffer
aStrBuf( arrOUS
[0] );
10521 OString
expVal( aStrBuf
.getStr() );
10522 sal_Int64 input
= 8;
10523 sal_Int16 radix
= 8;
10525 expVal
+= "10"_ostr
;
10526 aStrBuf
.append( input
, radix
);
10528 CPPUNIT_ASSERT_EQUAL_MESSAGE
10530 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
10531 expVal
, OString(aStrBuf
.getStr())
10533 CPPUNIT_ASSERT_EQUAL_MESSAGE
10535 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
10536 expVal
.getLength(), aStrBuf
.getLength()
10543 OStringBuffer
aStrBuf( arrOUS
[0] );
10544 OString
expVal( aStrBuf
.getStr() );
10545 sal_Int64 input
= 15;
10546 sal_Int16 radix
= 8;
10548 expVal
+= "17"_ostr
;
10549 aStrBuf
.append( input
, radix
);
10551 CPPUNIT_ASSERT_EQUAL_MESSAGE
10553 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
10554 expVal
, OString(aStrBuf
.getStr())
10556 CPPUNIT_ASSERT_EQUAL_MESSAGE
10558 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[0]",
10559 expVal
.getLength(), aStrBuf
.getLength()
10566 OStringBuffer
aStrBuf( arrOUS
[0] );
10567 OString
expVal( aStrBuf
.getStr() );
10568 sal_Int64 input
= 0;
10569 sal_Int16 radix
= 10;
10571 expVal
+= "0"_ostr
;
10572 aStrBuf
.append( input
, radix
);
10574 CPPUNIT_ASSERT_EQUAL_MESSAGE
10576 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
10577 expVal
, OString(aStrBuf
.getStr())
10579 CPPUNIT_ASSERT_EQUAL_MESSAGE
10581 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
10582 expVal
.getLength(), aStrBuf
.getLength()
10589 OStringBuffer
aStrBuf( arrOUS
[0] );
10590 OString
expVal( aStrBuf
.getStr() );
10591 sal_Int64 input
= 4;
10592 sal_Int16 radix
= 10;
10594 expVal
+= "4"_ostr
;
10595 aStrBuf
.append( input
, radix
);
10597 CPPUNIT_ASSERT_EQUAL_MESSAGE
10599 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
10600 expVal
, OString(aStrBuf
.getStr())
10602 CPPUNIT_ASSERT_EQUAL_MESSAGE
10604 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
10605 expVal
.getLength(), aStrBuf
.getLength()
10612 OStringBuffer
aStrBuf( arrOUS
[0] );
10613 OString
expVal( aStrBuf
.getStr() );
10614 sal_Int64 input
= 8;
10615 sal_Int16 radix
= 10;
10617 expVal
+= "8"_ostr
;
10618 aStrBuf
.append( input
, radix
);
10620 CPPUNIT_ASSERT_EQUAL_MESSAGE
10622 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
10623 expVal
, OString(aStrBuf
.getStr())
10625 CPPUNIT_ASSERT_EQUAL_MESSAGE
10627 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
10628 expVal
.getLength(), aStrBuf
.getLength()
10635 OStringBuffer
aStrBuf( arrOUS
[0] );
10636 OString
expVal( aStrBuf
.getStr() );
10637 sal_Int64 input
= 15;
10638 sal_Int16 radix
= 10;
10640 expVal
+= "15"_ostr
;
10641 aStrBuf
.append( input
, radix
);
10643 CPPUNIT_ASSERT_EQUAL_MESSAGE
10645 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
10646 expVal
, OString(aStrBuf
.getStr())
10648 CPPUNIT_ASSERT_EQUAL_MESSAGE
10650 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[0]",
10651 expVal
.getLength(), aStrBuf
.getLength()
10658 OStringBuffer
aStrBuf( arrOUS
[0] );
10659 OString
expVal( aStrBuf
.getStr() );
10660 sal_Int64 input
= 0;
10661 sal_Int16 radix
= 16;
10663 expVal
+= "0"_ostr
;
10664 aStrBuf
.append( input
, radix
);
10666 CPPUNIT_ASSERT_EQUAL_MESSAGE
10668 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
10669 expVal
, OString(aStrBuf
.getStr())
10671 CPPUNIT_ASSERT_EQUAL_MESSAGE
10673 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
10674 expVal
.getLength(), aStrBuf
.getLength()
10681 OStringBuffer
aStrBuf( arrOUS
[0] );
10682 OString
expVal( aStrBuf
.getStr() );
10683 sal_Int64 input
= 4;
10684 sal_Int16 radix
= 16;
10686 expVal
+= "4"_ostr
;
10687 aStrBuf
.append( input
, radix
);
10689 CPPUNIT_ASSERT_EQUAL_MESSAGE
10691 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
10692 expVal
, OString(aStrBuf
.getStr())
10694 CPPUNIT_ASSERT_EQUAL_MESSAGE
10696 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
10697 expVal
.getLength(), aStrBuf
.getLength()
10704 OStringBuffer
aStrBuf( arrOUS
[0] );
10705 OString
expVal( aStrBuf
.getStr() );
10706 sal_Int64 input
= 8;
10707 sal_Int16 radix
= 16;
10709 expVal
+= "8"_ostr
;
10710 aStrBuf
.append( input
, radix
);
10712 CPPUNIT_ASSERT_EQUAL_MESSAGE
10714 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
10715 expVal
, OString(aStrBuf
.getStr())
10717 CPPUNIT_ASSERT_EQUAL_MESSAGE
10719 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
10720 expVal
.getLength(), aStrBuf
.getLength()
10727 OStringBuffer
aStrBuf( arrOUS
[0] );
10728 OString
expVal( aStrBuf
.getStr() );
10729 sal_Int64 input
= 15;
10730 sal_Int16 radix
= 16;
10732 expVal
+= "f"_ostr
;
10733 aStrBuf
.append( input
, radix
);
10735 CPPUNIT_ASSERT_EQUAL_MESSAGE
10737 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
10738 expVal
, OString(aStrBuf
.getStr())
10740 CPPUNIT_ASSERT_EQUAL_MESSAGE
10742 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[0]",
10743 expVal
.getLength(), aStrBuf
.getLength()
10750 OStringBuffer
aStrBuf( arrOUS
[0] );
10751 OString
expVal( aStrBuf
.getStr() );
10752 sal_Int64 input
= 0;
10753 sal_Int16 radix
= 36;
10755 expVal
+= "0"_ostr
;
10756 aStrBuf
.append( input
, radix
);
10758 CPPUNIT_ASSERT_EQUAL_MESSAGE
10760 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
10761 expVal
, OString(aStrBuf
.getStr())
10763 CPPUNIT_ASSERT_EQUAL_MESSAGE
10765 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
10766 expVal
.getLength(), aStrBuf
.getLength()
10773 OStringBuffer
aStrBuf( arrOUS
[0] );
10774 OString
expVal( aStrBuf
.getStr() );
10775 sal_Int64 input
= 4;
10776 sal_Int16 radix
= 36;
10778 expVal
+= "4"_ostr
;
10779 aStrBuf
.append( input
, radix
);
10781 CPPUNIT_ASSERT_EQUAL_MESSAGE
10783 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
10784 expVal
, OString(aStrBuf
.getStr())
10786 CPPUNIT_ASSERT_EQUAL_MESSAGE
10788 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
10789 expVal
.getLength(), aStrBuf
.getLength()
10796 OStringBuffer
aStrBuf( arrOUS
[0] );
10797 OString
expVal( aStrBuf
.getStr() );
10798 sal_Int64 input
= 8;
10799 sal_Int16 radix
= 36;
10801 expVal
+= "8"_ostr
;
10802 aStrBuf
.append( input
, radix
);
10804 CPPUNIT_ASSERT_EQUAL_MESSAGE
10806 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
10807 expVal
, OString(aStrBuf
.getStr())
10809 CPPUNIT_ASSERT_EQUAL_MESSAGE
10811 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
10812 expVal
.getLength(), aStrBuf
.getLength()
10819 OStringBuffer
aStrBuf( arrOUS
[0] );
10820 OString
expVal( aStrBuf
.getStr() );
10821 sal_Int64 input
= 35;
10822 sal_Int16 radix
= 36;
10824 expVal
+= "z"_ostr
;
10825 aStrBuf
.append( input
, radix
);
10827 CPPUNIT_ASSERT_EQUAL_MESSAGE
10829 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
10830 expVal
, OString(aStrBuf
.getStr())
10832 CPPUNIT_ASSERT_EQUAL_MESSAGE
10834 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[0]",
10835 expVal
.getLength(), aStrBuf
.getLength()
10842 OStringBuffer
aStrBuf( arrOUS
[1] );
10843 OString
expVal( aStrBuf
.getStr() );
10844 sal_Int64 input
= 0;
10845 sal_Int16 radix
= 2;
10847 expVal
+= "0"_ostr
;
10848 aStrBuf
.append( input
, radix
);
10850 CPPUNIT_ASSERT_EQUAL_MESSAGE
10852 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
10853 expVal
, OString(aStrBuf
.getStr())
10855 CPPUNIT_ASSERT_EQUAL_MESSAGE
10857 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
10858 expVal
.getLength(), aStrBuf
.getLength()
10865 OStringBuffer
aStrBuf( arrOUS
[1] );
10866 OString
expVal( aStrBuf
.getStr() );
10867 sal_Int64 input
= 4;
10868 sal_Int16 radix
= 2;
10870 expVal
+= "100"_ostr
;
10871 aStrBuf
.append( input
, radix
);
10873 CPPUNIT_ASSERT_EQUAL_MESSAGE
10875 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
10876 expVal
, OString(aStrBuf
.getStr())
10878 CPPUNIT_ASSERT_EQUAL_MESSAGE
10880 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
10881 expVal
.getLength(), aStrBuf
.getLength()
10888 OStringBuffer
aStrBuf( arrOUS
[1] );
10889 OString
expVal( aStrBuf
.getStr() );
10890 sal_Int64 input
= 8;
10891 sal_Int16 radix
= 2;
10893 expVal
+= "1000"_ostr
;
10894 aStrBuf
.append( input
, radix
);
10896 CPPUNIT_ASSERT_EQUAL_MESSAGE
10898 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
10899 expVal
, OString(aStrBuf
.getStr())
10901 CPPUNIT_ASSERT_EQUAL_MESSAGE
10903 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
10904 expVal
.getLength(), aStrBuf
.getLength()
10911 OStringBuffer
aStrBuf( arrOUS
[1] );
10912 OString
expVal( aStrBuf
.getStr() );
10913 sal_Int64 input
= 15;
10914 sal_Int16 radix
= 2;
10916 expVal
+= "1111"_ostr
;
10917 aStrBuf
.append( input
, radix
);
10919 CPPUNIT_ASSERT_EQUAL_MESSAGE
10921 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
10922 expVal
, OString(aStrBuf
.getStr())
10924 CPPUNIT_ASSERT_EQUAL_MESSAGE
10926 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[1]",
10927 expVal
.getLength(), aStrBuf
.getLength()
10934 OStringBuffer
aStrBuf( arrOUS
[1] );
10935 OString
expVal( aStrBuf
.getStr() );
10936 sal_Int64 input
= 0;
10937 sal_Int16 radix
= 8;
10939 expVal
+= "0"_ostr
;
10940 aStrBuf
.append( input
, radix
);
10942 CPPUNIT_ASSERT_EQUAL_MESSAGE
10944 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
10945 expVal
, OString(aStrBuf
.getStr())
10947 CPPUNIT_ASSERT_EQUAL_MESSAGE
10949 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
10950 expVal
.getLength(), aStrBuf
.getLength()
10957 OStringBuffer
aStrBuf( arrOUS
[1] );
10958 OString
expVal( aStrBuf
.getStr() );
10959 sal_Int64 input
= 4;
10960 sal_Int16 radix
= 8;
10962 expVal
+= "4"_ostr
;
10963 aStrBuf
.append( input
, radix
);
10965 CPPUNIT_ASSERT_EQUAL_MESSAGE
10967 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
10968 expVal
, OString(aStrBuf
.getStr())
10970 CPPUNIT_ASSERT_EQUAL_MESSAGE
10972 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
10973 expVal
.getLength(), aStrBuf
.getLength()
10980 OStringBuffer
aStrBuf( arrOUS
[1] );
10981 OString
expVal( aStrBuf
.getStr() );
10982 sal_Int64 input
= 8;
10983 sal_Int16 radix
= 8;
10985 expVal
+= "10"_ostr
;
10986 aStrBuf
.append( input
, radix
);
10988 CPPUNIT_ASSERT_EQUAL_MESSAGE
10990 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
10991 expVal
, OString(aStrBuf
.getStr())
10993 CPPUNIT_ASSERT_EQUAL_MESSAGE
10995 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
10996 expVal
.getLength(), aStrBuf
.getLength()
11003 OStringBuffer
aStrBuf( arrOUS
[1] );
11004 OString
expVal( aStrBuf
.getStr() );
11005 sal_Int64 input
= 15;
11006 sal_Int16 radix
= 8;
11008 expVal
+= "17"_ostr
;
11009 aStrBuf
.append( input
, radix
);
11011 CPPUNIT_ASSERT_EQUAL_MESSAGE
11013 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
11014 expVal
, OString(aStrBuf
.getStr())
11016 CPPUNIT_ASSERT_EQUAL_MESSAGE
11018 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[1]",
11019 expVal
.getLength(), aStrBuf
.getLength()
11026 OStringBuffer
aStrBuf( arrOUS
[1] );
11027 OString
expVal( aStrBuf
.getStr() );
11028 sal_Int64 input
= 0;
11029 sal_Int16 radix
= 10;
11031 expVal
+= "0"_ostr
;
11032 aStrBuf
.append( input
, radix
);
11034 CPPUNIT_ASSERT_EQUAL_MESSAGE
11036 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
11037 expVal
, OString(aStrBuf
.getStr())
11039 CPPUNIT_ASSERT_EQUAL_MESSAGE
11041 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
11042 expVal
.getLength(), aStrBuf
.getLength()
11049 OStringBuffer
aStrBuf( arrOUS
[1] );
11050 OString
expVal( aStrBuf
.getStr() );
11051 sal_Int64 input
= 4;
11052 sal_Int16 radix
= 10;
11054 expVal
+= "4"_ostr
;
11055 aStrBuf
.append( input
, radix
);
11057 CPPUNIT_ASSERT_EQUAL_MESSAGE
11059 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
11060 expVal
, OString(aStrBuf
.getStr())
11062 CPPUNIT_ASSERT_EQUAL_MESSAGE
11064 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
11065 expVal
.getLength(), aStrBuf
.getLength()
11072 OStringBuffer
aStrBuf( arrOUS
[1] );
11073 OString
expVal( aStrBuf
.getStr() );
11074 sal_Int64 input
= 8;
11075 sal_Int16 radix
= 10;
11077 expVal
+= "8"_ostr
;
11078 aStrBuf
.append( input
, radix
);
11080 CPPUNIT_ASSERT_EQUAL_MESSAGE
11082 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
11083 expVal
, OString(aStrBuf
.getStr())
11085 CPPUNIT_ASSERT_EQUAL_MESSAGE
11087 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
11088 expVal
.getLength(), aStrBuf
.getLength()
11095 OStringBuffer
aStrBuf( arrOUS
[1] );
11096 OString
expVal( aStrBuf
.getStr() );
11097 sal_Int64 input
= 15;
11098 sal_Int16 radix
= 10;
11100 expVal
+= "15"_ostr
;
11101 aStrBuf
.append( input
, radix
);
11103 CPPUNIT_ASSERT_EQUAL_MESSAGE
11105 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
11106 expVal
, OString(aStrBuf
.getStr())
11108 CPPUNIT_ASSERT_EQUAL_MESSAGE
11110 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[1]",
11111 expVal
.getLength(), aStrBuf
.getLength()
11118 OStringBuffer
aStrBuf( arrOUS
[1] );
11119 OString
expVal( aStrBuf
.getStr() );
11120 sal_Int64 input
= 0;
11121 sal_Int16 radix
= 16;
11123 expVal
+= "0"_ostr
;
11124 aStrBuf
.append( input
, radix
);
11126 CPPUNIT_ASSERT_EQUAL_MESSAGE
11128 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
11129 expVal
, OString(aStrBuf
.getStr())
11131 CPPUNIT_ASSERT_EQUAL_MESSAGE
11133 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
11134 expVal
.getLength(), aStrBuf
.getLength()
11141 OStringBuffer
aStrBuf( arrOUS
[1] );
11142 OString
expVal( aStrBuf
.getStr() );
11143 sal_Int64 input
= 4;
11144 sal_Int16 radix
= 16;
11146 expVal
+= "4"_ostr
;
11147 aStrBuf
.append( input
, radix
);
11149 CPPUNIT_ASSERT_EQUAL_MESSAGE
11151 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
11152 expVal
, OString(aStrBuf
.getStr())
11154 CPPUNIT_ASSERT_EQUAL_MESSAGE
11156 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
11157 expVal
.getLength(), aStrBuf
.getLength()
11164 OStringBuffer
aStrBuf( arrOUS
[1] );
11165 OString
expVal( aStrBuf
.getStr() );
11166 sal_Int64 input
= 8;
11167 sal_Int16 radix
= 16;
11169 expVal
+= "8"_ostr
;
11170 aStrBuf
.append( input
, radix
);
11172 CPPUNIT_ASSERT_EQUAL_MESSAGE
11174 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
11175 expVal
, OString(aStrBuf
.getStr())
11177 CPPUNIT_ASSERT_EQUAL_MESSAGE
11179 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
11180 expVal
.getLength(), aStrBuf
.getLength()
11187 OStringBuffer
aStrBuf( arrOUS
[1] );
11188 OString
expVal( aStrBuf
.getStr() );
11189 sal_Int64 input
= 15;
11190 sal_Int16 radix
= 16;
11192 expVal
+= "f"_ostr
;
11193 aStrBuf
.append( input
, radix
);
11195 CPPUNIT_ASSERT_EQUAL_MESSAGE
11197 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
11198 expVal
, OString(aStrBuf
.getStr())
11200 CPPUNIT_ASSERT_EQUAL_MESSAGE
11202 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[1]",
11203 expVal
.getLength(), aStrBuf
.getLength()
11210 OStringBuffer
aStrBuf( arrOUS
[1] );
11211 OString
expVal( aStrBuf
.getStr() );
11212 sal_Int64 input
= 0;
11213 sal_Int16 radix
= 36;
11215 expVal
+= "0"_ostr
;
11216 aStrBuf
.append( input
, radix
);
11218 CPPUNIT_ASSERT_EQUAL_MESSAGE
11220 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
11221 expVal
, OString(aStrBuf
.getStr())
11223 CPPUNIT_ASSERT_EQUAL_MESSAGE
11225 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
11226 expVal
.getLength(), aStrBuf
.getLength()
11233 OStringBuffer
aStrBuf( arrOUS
[1] );
11234 OString
expVal( aStrBuf
.getStr() );
11235 sal_Int64 input
= 4;
11236 sal_Int16 radix
= 36;
11238 expVal
+= "4"_ostr
;
11239 aStrBuf
.append( input
, radix
);
11241 CPPUNIT_ASSERT_EQUAL_MESSAGE
11243 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
11244 expVal
, OString(aStrBuf
.getStr())
11246 CPPUNIT_ASSERT_EQUAL_MESSAGE
11248 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
11249 expVal
.getLength(), aStrBuf
.getLength()
11256 OStringBuffer
aStrBuf( arrOUS
[1] );
11257 OString
expVal( aStrBuf
.getStr() );
11258 sal_Int64 input
= 8;
11259 sal_Int16 radix
= 36;
11261 expVal
+= "8"_ostr
;
11262 aStrBuf
.append( input
, radix
);
11264 CPPUNIT_ASSERT_EQUAL_MESSAGE
11266 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
11267 expVal
, OString(aStrBuf
.getStr())
11269 CPPUNIT_ASSERT_EQUAL_MESSAGE
11271 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
11272 expVal
.getLength(), aStrBuf
.getLength()
11279 OStringBuffer
aStrBuf( arrOUS
[1] );
11280 OString
expVal( aStrBuf
.getStr() );
11281 sal_Int64 input
= 35;
11282 sal_Int16 radix
= 36;
11284 expVal
+= "z"_ostr
;
11285 aStrBuf
.append( input
, radix
);
11287 CPPUNIT_ASSERT_EQUAL_MESSAGE
11289 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
11290 expVal
, OString(aStrBuf
.getStr())
11292 CPPUNIT_ASSERT_EQUAL_MESSAGE
11294 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[1]",
11295 expVal
.getLength(), aStrBuf
.getLength()
11302 OStringBuffer
aStrBuf( arrOUS
[2] );
11303 OString
expVal( aStrBuf
.getStr() );
11304 sal_Int64 input
= 0;
11305 sal_Int16 radix
= 2;
11307 expVal
+= "0"_ostr
;
11308 aStrBuf
.append( input
, radix
);
11310 CPPUNIT_ASSERT_EQUAL_MESSAGE
11312 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
11313 expVal
, OString(aStrBuf
.getStr())
11315 CPPUNIT_ASSERT_EQUAL_MESSAGE
11317 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
11318 expVal
.getLength(), aStrBuf
.getLength()
11325 OStringBuffer
aStrBuf( arrOUS
[2] );
11326 OString
expVal( aStrBuf
.getStr() );
11327 sal_Int64 input
= 4;
11328 sal_Int16 radix
= 2;
11330 expVal
+= "100"_ostr
;
11331 aStrBuf
.append( input
, radix
);
11333 CPPUNIT_ASSERT_EQUAL_MESSAGE
11335 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
11336 expVal
, OString(aStrBuf
.getStr())
11338 CPPUNIT_ASSERT_EQUAL_MESSAGE
11340 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
11341 expVal
.getLength(), aStrBuf
.getLength()
11348 OStringBuffer
aStrBuf( arrOUS
[2] );
11349 OString
expVal( aStrBuf
.getStr() );
11350 sal_Int64 input
= 8;
11351 sal_Int16 radix
= 2;
11353 expVal
+= "1000"_ostr
;
11354 aStrBuf
.append( input
, radix
);
11356 CPPUNIT_ASSERT_EQUAL_MESSAGE
11358 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
11359 expVal
, OString(aStrBuf
.getStr())
11361 CPPUNIT_ASSERT_EQUAL_MESSAGE
11363 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
11364 expVal
.getLength(), aStrBuf
.getLength()
11371 OStringBuffer
aStrBuf( arrOUS
[2] );
11372 OString
expVal( aStrBuf
.getStr() );
11373 sal_Int64 input
= 15;
11374 sal_Int16 radix
= 2;
11376 expVal
+= "1111"_ostr
;
11377 aStrBuf
.append( input
, radix
);
11379 CPPUNIT_ASSERT_EQUAL_MESSAGE
11381 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
11382 expVal
, OString(aStrBuf
.getStr())
11384 CPPUNIT_ASSERT_EQUAL_MESSAGE
11386 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[2]",
11387 expVal
.getLength(), aStrBuf
.getLength()
11394 OStringBuffer
aStrBuf( arrOUS
[2] );
11395 OString
expVal( aStrBuf
.getStr() );
11396 sal_Int64 input
= 0;
11397 sal_Int16 radix
= 8;
11399 expVal
+= "0"_ostr
;
11400 aStrBuf
.append( input
, radix
);
11402 CPPUNIT_ASSERT_EQUAL_MESSAGE
11404 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
11405 expVal
, OString(aStrBuf
.getStr())
11407 CPPUNIT_ASSERT_EQUAL_MESSAGE
11409 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
11410 expVal
.getLength(), aStrBuf
.getLength()
11417 OStringBuffer
aStrBuf( arrOUS
[2] );
11418 OString
expVal( aStrBuf
.getStr() );
11419 sal_Int64 input
= 4;
11420 sal_Int16 radix
= 8;
11422 expVal
+= "4"_ostr
;
11423 aStrBuf
.append( input
, radix
);
11425 CPPUNIT_ASSERT_EQUAL_MESSAGE
11427 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
11428 expVal
, OString(aStrBuf
.getStr())
11430 CPPUNIT_ASSERT_EQUAL_MESSAGE
11432 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
11433 expVal
.getLength(), aStrBuf
.getLength()
11440 OStringBuffer
aStrBuf( arrOUS
[2] );
11441 OString
expVal( aStrBuf
.getStr() );
11442 sal_Int64 input
= 8;
11443 sal_Int16 radix
= 8;
11445 expVal
+= "10"_ostr
;
11446 aStrBuf
.append( input
, radix
);
11448 CPPUNIT_ASSERT_EQUAL_MESSAGE
11450 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
11451 expVal
, OString(aStrBuf
.getStr())
11453 CPPUNIT_ASSERT_EQUAL_MESSAGE
11455 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
11456 expVal
.getLength(), aStrBuf
.getLength()
11463 OStringBuffer
aStrBuf( arrOUS
[2] );
11464 OString
expVal( aStrBuf
.getStr() );
11465 sal_Int64 input
= 15;
11466 sal_Int16 radix
= 8;
11468 expVal
+= "17"_ostr
;
11469 aStrBuf
.append( input
, radix
);
11471 CPPUNIT_ASSERT_EQUAL_MESSAGE
11473 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
11474 expVal
, OString(aStrBuf
.getStr())
11476 CPPUNIT_ASSERT_EQUAL_MESSAGE
11478 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[2]",
11479 expVal
.getLength(), aStrBuf
.getLength()
11486 OStringBuffer
aStrBuf( arrOUS
[2] );
11487 OString
expVal( aStrBuf
.getStr() );
11488 sal_Int64 input
= 0;
11489 sal_Int16 radix
= 10;
11491 expVal
+= "0"_ostr
;
11492 aStrBuf
.append( input
, radix
);
11494 CPPUNIT_ASSERT_EQUAL_MESSAGE
11496 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
11497 expVal
, OString(aStrBuf
.getStr())
11499 CPPUNIT_ASSERT_EQUAL_MESSAGE
11501 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
11502 expVal
.getLength(), aStrBuf
.getLength()
11509 OStringBuffer
aStrBuf( arrOUS
[2] );
11510 OString
expVal( aStrBuf
.getStr() );
11511 sal_Int64 input
= 4;
11512 sal_Int16 radix
= 10;
11514 expVal
+= "4"_ostr
;
11515 aStrBuf
.append( input
, radix
);
11517 CPPUNIT_ASSERT_EQUAL_MESSAGE
11519 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
11520 expVal
, OString(aStrBuf
.getStr())
11522 CPPUNIT_ASSERT_EQUAL_MESSAGE
11524 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
11525 expVal
.getLength(), aStrBuf
.getLength()
11532 OStringBuffer
aStrBuf( arrOUS
[2] );
11533 OString
expVal( aStrBuf
.getStr() );
11534 sal_Int64 input
= 8;
11535 sal_Int16 radix
= 10;
11537 expVal
+= "8"_ostr
;
11538 aStrBuf
.append( input
, radix
);
11540 CPPUNIT_ASSERT_EQUAL_MESSAGE
11542 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
11543 expVal
, OString(aStrBuf
.getStr())
11545 CPPUNIT_ASSERT_EQUAL_MESSAGE
11547 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
11548 expVal
.getLength(), aStrBuf
.getLength()
11555 OStringBuffer
aStrBuf( arrOUS
[2] );
11556 OString
expVal( aStrBuf
.getStr() );
11557 sal_Int64 input
= 15;
11558 sal_Int16 radix
= 10;
11560 expVal
+= "15"_ostr
;
11561 aStrBuf
.append( input
, radix
);
11563 CPPUNIT_ASSERT_EQUAL_MESSAGE
11565 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
11566 expVal
, OString(aStrBuf
.getStr())
11568 CPPUNIT_ASSERT_EQUAL_MESSAGE
11570 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[2]",
11571 expVal
.getLength(), aStrBuf
.getLength()
11578 OStringBuffer
aStrBuf( arrOUS
[2] );
11579 OString
expVal( aStrBuf
.getStr() );
11580 sal_Int64 input
= 0;
11581 sal_Int16 radix
= 16;
11583 expVal
+= "0"_ostr
;
11584 aStrBuf
.append( input
, radix
);
11586 CPPUNIT_ASSERT_EQUAL_MESSAGE
11588 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
11589 expVal
, OString(aStrBuf
.getStr())
11591 CPPUNIT_ASSERT_EQUAL_MESSAGE
11593 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
11594 expVal
.getLength(), aStrBuf
.getLength()
11601 OStringBuffer
aStrBuf( arrOUS
[2] );
11602 OString
expVal( aStrBuf
.getStr() );
11603 sal_Int64 input
= 4;
11604 sal_Int16 radix
= 16;
11606 expVal
+= "4"_ostr
;
11607 aStrBuf
.append( input
, radix
);
11609 CPPUNIT_ASSERT_EQUAL_MESSAGE
11611 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
11612 expVal
, OString(aStrBuf
.getStr())
11614 CPPUNIT_ASSERT_EQUAL_MESSAGE
11616 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
11617 expVal
.getLength(), aStrBuf
.getLength()
11624 OStringBuffer
aStrBuf( arrOUS
[2] );
11625 OString
expVal( aStrBuf
.getStr() );
11626 sal_Int64 input
= 8;
11627 sal_Int16 radix
= 16;
11629 expVal
+= "8"_ostr
;
11630 aStrBuf
.append( input
, radix
);
11632 CPPUNIT_ASSERT_EQUAL_MESSAGE
11634 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
11635 expVal
, OString(aStrBuf
.getStr())
11637 CPPUNIT_ASSERT_EQUAL_MESSAGE
11639 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
11640 expVal
.getLength(), aStrBuf
.getLength()
11647 OStringBuffer
aStrBuf( arrOUS
[2] );
11648 OString
expVal( aStrBuf
.getStr() );
11649 sal_Int64 input
= 15;
11650 sal_Int16 radix
= 16;
11652 expVal
+= "f"_ostr
;
11653 aStrBuf
.append( input
, radix
);
11655 CPPUNIT_ASSERT_EQUAL_MESSAGE
11657 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
11658 expVal
, OString(aStrBuf
.getStr())
11660 CPPUNIT_ASSERT_EQUAL_MESSAGE
11662 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[2]",
11663 expVal
.getLength(), aStrBuf
.getLength()
11670 OStringBuffer
aStrBuf( arrOUS
[2] );
11671 OString
expVal( aStrBuf
.getStr() );
11672 sal_Int64 input
= 0;
11673 sal_Int16 radix
= 36;
11675 expVal
+= "0"_ostr
;
11676 aStrBuf
.append( input
, radix
);
11678 CPPUNIT_ASSERT_EQUAL_MESSAGE
11680 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
11681 expVal
, OString(aStrBuf
.getStr())
11683 CPPUNIT_ASSERT_EQUAL_MESSAGE
11685 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
11686 expVal
.getLength(), aStrBuf
.getLength()
11693 OStringBuffer
aStrBuf( arrOUS
[2] );
11694 OString
expVal( aStrBuf
.getStr() );
11695 sal_Int64 input
= 4;
11696 sal_Int16 radix
= 36;
11698 expVal
+= "4"_ostr
;
11699 aStrBuf
.append( input
, radix
);
11701 CPPUNIT_ASSERT_EQUAL_MESSAGE
11703 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
11704 expVal
, OString(aStrBuf
.getStr())
11706 CPPUNIT_ASSERT_EQUAL_MESSAGE
11708 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
11709 expVal
.getLength(), aStrBuf
.getLength()
11716 OStringBuffer
aStrBuf( arrOUS
[2] );
11717 OString
expVal( aStrBuf
.getStr() );
11718 sal_Int64 input
= 8;
11719 sal_Int16 radix
= 36;
11721 expVal
+= "8"_ostr
;
11722 aStrBuf
.append( input
, radix
);
11724 CPPUNIT_ASSERT_EQUAL_MESSAGE
11726 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
11727 expVal
, OString(aStrBuf
.getStr())
11729 CPPUNIT_ASSERT_EQUAL_MESSAGE
11731 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
11732 expVal
.getLength(), aStrBuf
.getLength()
11739 OStringBuffer
aStrBuf( arrOUS
[2] );
11740 OString
expVal( aStrBuf
.getStr() );
11741 sal_Int64 input
= 35;
11742 sal_Int16 radix
= 36;
11744 expVal
+= "z"_ostr
;
11745 aStrBuf
.append( input
, radix
);
11747 CPPUNIT_ASSERT_EQUAL_MESSAGE
11749 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
11750 expVal
, OString(aStrBuf
.getStr())
11752 CPPUNIT_ASSERT_EQUAL_MESSAGE
11754 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[2]",
11755 expVal
.getLength(), aStrBuf
.getLength()
11762 OStringBuffer
aStrBuf( arrOUS
[3] );
11763 OString
expVal( aStrBuf
.getStr() );
11764 sal_Int64 input
= 0;
11765 sal_Int16 radix
= 2;
11767 expVal
+= "0"_ostr
;
11768 aStrBuf
.append( input
, radix
);
11770 CPPUNIT_ASSERT_EQUAL_MESSAGE
11772 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
11773 expVal
, OString(aStrBuf
.getStr())
11775 CPPUNIT_ASSERT_EQUAL_MESSAGE
11777 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
11778 expVal
.getLength(), aStrBuf
.getLength()
11785 OStringBuffer
aStrBuf( arrOUS
[3] );
11786 OString
expVal( aStrBuf
.getStr() );
11787 sal_Int64 input
= 4;
11788 sal_Int16 radix
= 2;
11790 expVal
+= "100"_ostr
;
11791 aStrBuf
.append( input
, radix
);
11793 CPPUNIT_ASSERT_EQUAL_MESSAGE
11795 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
11796 expVal
, OString(aStrBuf
.getStr())
11798 CPPUNIT_ASSERT_EQUAL_MESSAGE
11800 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
11801 expVal
.getLength(), aStrBuf
.getLength()
11808 OStringBuffer
aStrBuf( arrOUS
[3] );
11809 OString
expVal( aStrBuf
.getStr() );
11810 sal_Int64 input
= 8;
11811 sal_Int16 radix
= 2;
11813 expVal
+= "1000"_ostr
;
11814 aStrBuf
.append( input
, radix
);
11816 CPPUNIT_ASSERT_EQUAL_MESSAGE
11818 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
11819 expVal
, OString(aStrBuf
.getStr())
11821 CPPUNIT_ASSERT_EQUAL_MESSAGE
11823 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
11824 expVal
.getLength(), aStrBuf
.getLength()
11831 OStringBuffer
aStrBuf( arrOUS
[3] );
11832 OString
expVal( aStrBuf
.getStr() );
11833 sal_Int64 input
= 15;
11834 sal_Int16 radix
= 2;
11836 expVal
+= "1111"_ostr
;
11837 aStrBuf
.append( input
, radix
);
11839 CPPUNIT_ASSERT_EQUAL_MESSAGE
11841 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
11842 expVal
, OString(aStrBuf
.getStr())
11844 CPPUNIT_ASSERT_EQUAL_MESSAGE
11846 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[3]",
11847 expVal
.getLength(), aStrBuf
.getLength()
11854 OStringBuffer
aStrBuf( arrOUS
[3] );
11855 OString
expVal( aStrBuf
.getStr() );
11856 sal_Int64 input
= 0;
11857 sal_Int16 radix
= 8;
11859 expVal
+= "0"_ostr
;
11860 aStrBuf
.append( input
, radix
);
11862 CPPUNIT_ASSERT_EQUAL_MESSAGE
11864 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
11865 expVal
, OString(aStrBuf
.getStr())
11867 CPPUNIT_ASSERT_EQUAL_MESSAGE
11869 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
11870 expVal
.getLength(), aStrBuf
.getLength()
11877 OStringBuffer
aStrBuf( arrOUS
[3] );
11878 OString
expVal( aStrBuf
.getStr() );
11879 sal_Int64 input
= 4;
11880 sal_Int16 radix
= 8;
11882 expVal
+= "4"_ostr
;
11883 aStrBuf
.append( input
, radix
);
11885 CPPUNIT_ASSERT_EQUAL_MESSAGE
11887 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
11888 expVal
, OString(aStrBuf
.getStr())
11890 CPPUNIT_ASSERT_EQUAL_MESSAGE
11892 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
11893 expVal
.getLength(), aStrBuf
.getLength()
11900 OStringBuffer
aStrBuf( arrOUS
[3] );
11901 OString
expVal( aStrBuf
.getStr() );
11902 sal_Int64 input
= 8;
11903 sal_Int16 radix
= 8;
11905 expVal
+= "10"_ostr
;
11906 aStrBuf
.append( input
, radix
);
11908 CPPUNIT_ASSERT_EQUAL_MESSAGE
11910 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
11911 expVal
, OString(aStrBuf
.getStr())
11913 CPPUNIT_ASSERT_EQUAL_MESSAGE
11915 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
11916 expVal
.getLength(), aStrBuf
.getLength()
11923 OStringBuffer
aStrBuf( arrOUS
[3] );
11924 OString
expVal( aStrBuf
.getStr() );
11925 sal_Int64 input
= 15;
11926 sal_Int16 radix
= 8;
11928 expVal
+= "17"_ostr
;
11929 aStrBuf
.append( input
, radix
);
11931 CPPUNIT_ASSERT_EQUAL_MESSAGE
11933 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
11934 expVal
, OString(aStrBuf
.getStr())
11936 CPPUNIT_ASSERT_EQUAL_MESSAGE
11938 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[3]",
11939 expVal
.getLength(), aStrBuf
.getLength()
11946 OStringBuffer
aStrBuf( arrOUS
[3] );
11947 OString
expVal( aStrBuf
.getStr() );
11948 sal_Int64 input
= 0;
11949 sal_Int16 radix
= 10;
11951 expVal
+= "0"_ostr
;
11952 aStrBuf
.append( input
, radix
);
11954 CPPUNIT_ASSERT_EQUAL_MESSAGE
11956 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
11957 expVal
, OString(aStrBuf
.getStr())
11959 CPPUNIT_ASSERT_EQUAL_MESSAGE
11961 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
11962 expVal
.getLength(), aStrBuf
.getLength()
11969 OStringBuffer
aStrBuf( arrOUS
[3] );
11970 OString
expVal( aStrBuf
.getStr() );
11971 sal_Int64 input
= 4;
11972 sal_Int16 radix
= 10;
11974 expVal
+= "4"_ostr
;
11975 aStrBuf
.append( input
, radix
);
11977 CPPUNIT_ASSERT_EQUAL_MESSAGE
11979 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
11980 expVal
, OString(aStrBuf
.getStr())
11982 CPPUNIT_ASSERT_EQUAL_MESSAGE
11984 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
11985 expVal
.getLength(), aStrBuf
.getLength()
11992 OStringBuffer
aStrBuf( arrOUS
[3] );
11993 OString
expVal( aStrBuf
.getStr() );
11994 sal_Int64 input
= 8;
11995 sal_Int16 radix
= 10;
11997 expVal
+= "8"_ostr
;
11998 aStrBuf
.append( input
, radix
);
12000 CPPUNIT_ASSERT_EQUAL_MESSAGE
12002 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
12003 expVal
, OString(aStrBuf
.getStr())
12005 CPPUNIT_ASSERT_EQUAL_MESSAGE
12007 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
12008 expVal
.getLength(), aStrBuf
.getLength()
12015 OStringBuffer
aStrBuf( arrOUS
[3] );
12016 OString
expVal( aStrBuf
.getStr() );
12017 sal_Int64 input
= 15;
12018 sal_Int16 radix
= 10;
12020 expVal
+= "15"_ostr
;
12021 aStrBuf
.append( input
, radix
);
12023 CPPUNIT_ASSERT_EQUAL_MESSAGE
12025 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
12026 expVal
, OString(aStrBuf
.getStr())
12028 CPPUNIT_ASSERT_EQUAL_MESSAGE
12030 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[3]",
12031 expVal
.getLength(), aStrBuf
.getLength()
12038 OStringBuffer
aStrBuf( arrOUS
[3] );
12039 OString
expVal( aStrBuf
.getStr() );
12040 sal_Int64 input
= 0;
12041 sal_Int16 radix
= 16;
12043 expVal
+= "0"_ostr
;
12044 aStrBuf
.append( input
, radix
);
12046 CPPUNIT_ASSERT_EQUAL_MESSAGE
12048 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
12049 expVal
, OString(aStrBuf
.getStr())
12051 CPPUNIT_ASSERT_EQUAL_MESSAGE
12053 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
12054 expVal
.getLength(), aStrBuf
.getLength()
12061 OStringBuffer
aStrBuf( arrOUS
[3] );
12062 OString
expVal( aStrBuf
.getStr() );
12063 sal_Int64 input
= 4;
12064 sal_Int16 radix
= 16;
12066 expVal
+= "4"_ostr
;
12067 aStrBuf
.append( input
, radix
);
12069 CPPUNIT_ASSERT_EQUAL_MESSAGE
12071 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
12072 expVal
, OString(aStrBuf
.getStr())
12074 CPPUNIT_ASSERT_EQUAL_MESSAGE
12076 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
12077 expVal
.getLength(), aStrBuf
.getLength()
12084 OStringBuffer
aStrBuf( arrOUS
[3] );
12085 OString
expVal( aStrBuf
.getStr() );
12086 sal_Int64 input
= 8;
12087 sal_Int16 radix
= 16;
12089 expVal
+= "8"_ostr
;
12090 aStrBuf
.append( input
, radix
);
12092 CPPUNIT_ASSERT_EQUAL_MESSAGE
12094 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
12095 expVal
, OString(aStrBuf
.getStr())
12097 CPPUNIT_ASSERT_EQUAL_MESSAGE
12099 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
12100 expVal
.getLength(), aStrBuf
.getLength()
12107 OStringBuffer
aStrBuf( arrOUS
[3] );
12108 OString
expVal( aStrBuf
.getStr() );
12109 sal_Int64 input
= 15;
12110 sal_Int16 radix
= 16;
12112 expVal
+= "f"_ostr
;
12113 aStrBuf
.append( input
, radix
);
12115 CPPUNIT_ASSERT_EQUAL_MESSAGE
12117 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
12118 expVal
, OString(aStrBuf
.getStr())
12120 CPPUNIT_ASSERT_EQUAL_MESSAGE
12122 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[3]",
12123 expVal
.getLength(), aStrBuf
.getLength()
12130 OStringBuffer
aStrBuf( arrOUS
[3] );
12131 OString
expVal( aStrBuf
.getStr() );
12132 sal_Int64 input
= 0;
12133 sal_Int16 radix
= 36;
12135 expVal
+= "0"_ostr
;
12136 aStrBuf
.append( input
, radix
);
12138 CPPUNIT_ASSERT_EQUAL_MESSAGE
12140 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
12141 expVal
, OString(aStrBuf
.getStr())
12143 CPPUNIT_ASSERT_EQUAL_MESSAGE
12145 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
12146 expVal
.getLength(), aStrBuf
.getLength()
12153 OStringBuffer
aStrBuf( arrOUS
[3] );
12154 OString
expVal( aStrBuf
.getStr() );
12155 sal_Int64 input
= 4;
12156 sal_Int16 radix
= 36;
12158 expVal
+= "4"_ostr
;
12159 aStrBuf
.append( input
, radix
);
12161 CPPUNIT_ASSERT_EQUAL_MESSAGE
12163 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
12164 expVal
, OString(aStrBuf
.getStr())
12166 CPPUNIT_ASSERT_EQUAL_MESSAGE
12168 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
12169 expVal
.getLength(), aStrBuf
.getLength()
12176 OStringBuffer
aStrBuf( arrOUS
[3] );
12177 OString
expVal( aStrBuf
.getStr() );
12178 sal_Int64 input
= 8;
12179 sal_Int16 radix
= 36;
12181 expVal
+= "8"_ostr
;
12182 aStrBuf
.append( input
, radix
);
12184 CPPUNIT_ASSERT_EQUAL_MESSAGE
12186 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
12187 expVal
, OString(aStrBuf
.getStr())
12189 CPPUNIT_ASSERT_EQUAL_MESSAGE
12191 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
12192 expVal
.getLength(), aStrBuf
.getLength()
12199 OStringBuffer
aStrBuf( arrOUS
[3] );
12200 OString
expVal( aStrBuf
.getStr() );
12201 sal_Int64 input
= 35;
12202 sal_Int16 radix
= 36;
12204 expVal
+= "z"_ostr
;
12205 aStrBuf
.append( input
, radix
);
12207 CPPUNIT_ASSERT_EQUAL_MESSAGE
12209 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
12210 expVal
, OString(aStrBuf
.getStr())
12212 CPPUNIT_ASSERT_EQUAL_MESSAGE
12214 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[3]",
12215 expVal
.getLength(), aStrBuf
.getLength()
12222 OStringBuffer
aStrBuf( arrOUS
[4] );
12223 OString
expVal( aStrBuf
.getStr() );
12224 sal_Int64 input
= 0;
12225 sal_Int16 radix
= 2;
12227 expVal
+= "0"_ostr
;
12228 aStrBuf
.append( input
, radix
);
12230 CPPUNIT_ASSERT_EQUAL_MESSAGE
12232 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
12233 expVal
, OString(aStrBuf
.getStr())
12235 CPPUNIT_ASSERT_EQUAL_MESSAGE
12237 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
12238 expVal
.getLength(), aStrBuf
.getLength()
12245 OStringBuffer
aStrBuf( arrOUS
[4] );
12246 OString
expVal( aStrBuf
.getStr() );
12247 sal_Int64 input
= 4;
12248 sal_Int16 radix
= 2;
12250 expVal
+= "100"_ostr
;
12251 aStrBuf
.append( input
, radix
);
12253 CPPUNIT_ASSERT_EQUAL_MESSAGE
12255 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
12256 expVal
, OString(aStrBuf
.getStr())
12258 CPPUNIT_ASSERT_EQUAL_MESSAGE
12260 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
12261 expVal
.getLength(), aStrBuf
.getLength()
12268 OStringBuffer
aStrBuf( arrOUS
[4] );
12269 OString
expVal( aStrBuf
.getStr() );
12270 sal_Int64 input
= 8;
12271 sal_Int16 radix
= 2;
12273 expVal
+= "1000"_ostr
;
12274 aStrBuf
.append( input
, radix
);
12276 CPPUNIT_ASSERT_EQUAL_MESSAGE
12278 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
12279 expVal
, OString(aStrBuf
.getStr())
12281 CPPUNIT_ASSERT_EQUAL_MESSAGE
12283 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
12284 expVal
.getLength(), aStrBuf
.getLength()
12291 OStringBuffer
aStrBuf( arrOUS
[4] );
12292 OString
expVal( aStrBuf
.getStr() );
12293 sal_Int64 input
= 15;
12294 sal_Int16 radix
= 2;
12296 expVal
+= "1111"_ostr
;
12297 aStrBuf
.append( input
, radix
);
12299 CPPUNIT_ASSERT_EQUAL_MESSAGE
12301 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
12302 expVal
, OString(aStrBuf
.getStr())
12304 CPPUNIT_ASSERT_EQUAL_MESSAGE
12306 "append(sal_Int64, radix 2)_006_kRadixBinary for arrOUS[4]",
12307 expVal
.getLength(), aStrBuf
.getLength()
12314 OStringBuffer
aStrBuf( arrOUS
[4] );
12315 OString
expVal( aStrBuf
.getStr() );
12316 sal_Int64 input
= 0;
12317 sal_Int16 radix
= 8;
12319 expVal
+= "0"_ostr
;
12320 aStrBuf
.append( input
, radix
);
12322 CPPUNIT_ASSERT_EQUAL_MESSAGE
12324 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
12325 expVal
, OString(aStrBuf
.getStr())
12327 CPPUNIT_ASSERT_EQUAL_MESSAGE
12329 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
12330 expVal
.getLength(), aStrBuf
.getLength()
12337 OStringBuffer
aStrBuf( arrOUS
[4] );
12338 OString
expVal( aStrBuf
.getStr() );
12339 sal_Int64 input
= 4;
12340 sal_Int16 radix
= 8;
12342 expVal
+= "4"_ostr
;
12343 aStrBuf
.append( input
, radix
);
12345 CPPUNIT_ASSERT_EQUAL_MESSAGE
12347 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
12348 expVal
, OString(aStrBuf
.getStr())
12350 CPPUNIT_ASSERT_EQUAL_MESSAGE
12352 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
12353 expVal
.getLength(), aStrBuf
.getLength()
12360 OStringBuffer
aStrBuf( arrOUS
[4] );
12361 OString
expVal( aStrBuf
.getStr() );
12362 sal_Int64 input
= 8;
12363 sal_Int16 radix
= 8;
12365 expVal
+= "10"_ostr
;
12366 aStrBuf
.append( input
, radix
);
12368 CPPUNIT_ASSERT_EQUAL_MESSAGE
12370 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
12371 expVal
, OString(aStrBuf
.getStr())
12373 CPPUNIT_ASSERT_EQUAL_MESSAGE
12375 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
12376 expVal
.getLength(), aStrBuf
.getLength()
12383 OStringBuffer
aStrBuf( arrOUS
[4] );
12384 OString
expVal( aStrBuf
.getStr() );
12385 sal_Int64 input
= 15;
12386 sal_Int16 radix
= 8;
12388 expVal
+= "17"_ostr
;
12389 aStrBuf
.append( input
, radix
);
12391 CPPUNIT_ASSERT_EQUAL_MESSAGE
12393 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
12394 expVal
, OString(aStrBuf
.getStr())
12396 CPPUNIT_ASSERT_EQUAL_MESSAGE
12398 "append(sal_Int64, radix 8)_006_kRadixOctol for arrOUS[4]",
12399 expVal
.getLength(), aStrBuf
.getLength()
12406 OStringBuffer
aStrBuf( arrOUS
[4] );
12407 OString
expVal( aStrBuf
.getStr() );
12408 sal_Int64 input
= 0;
12409 sal_Int16 radix
= 10;
12411 expVal
+= "0"_ostr
;
12412 aStrBuf
.append( input
, radix
);
12414 CPPUNIT_ASSERT_EQUAL_MESSAGE
12416 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
12417 expVal
, OString(aStrBuf
.getStr())
12419 CPPUNIT_ASSERT_EQUAL_MESSAGE
12421 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
12422 expVal
.getLength(), aStrBuf
.getLength()
12429 OStringBuffer
aStrBuf( arrOUS
[4] );
12430 OString
expVal( aStrBuf
.getStr() );
12431 sal_Int64 input
= 4;
12432 sal_Int16 radix
= 10;
12434 expVal
+= "4"_ostr
;
12435 aStrBuf
.append( input
, radix
);
12437 CPPUNIT_ASSERT_EQUAL_MESSAGE
12439 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
12440 expVal
, OString(aStrBuf
.getStr())
12442 CPPUNIT_ASSERT_EQUAL_MESSAGE
12444 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
12445 expVal
.getLength(), aStrBuf
.getLength()
12452 OStringBuffer
aStrBuf( arrOUS
[4] );
12453 OString
expVal( aStrBuf
.getStr() );
12454 sal_Int64 input
= 8;
12455 sal_Int16 radix
= 10;
12457 expVal
+= "8"_ostr
;
12458 aStrBuf
.append( input
, radix
);
12460 CPPUNIT_ASSERT_EQUAL_MESSAGE
12462 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
12463 expVal
, OString(aStrBuf
.getStr())
12465 CPPUNIT_ASSERT_EQUAL_MESSAGE
12467 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
12468 expVal
.getLength(), aStrBuf
.getLength()
12475 OStringBuffer
aStrBuf( arrOUS
[4] );
12476 OString
expVal( aStrBuf
.getStr() );
12477 sal_Int64 input
= 15;
12478 sal_Int16 radix
= 10;
12480 expVal
+= "15"_ostr
;
12481 aStrBuf
.append( input
, radix
);
12483 CPPUNIT_ASSERT_EQUAL_MESSAGE
12485 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
12486 expVal
, OString(aStrBuf
.getStr())
12488 CPPUNIT_ASSERT_EQUAL_MESSAGE
12490 "append(sal_Int64, radix 10)_006_kRadixDecimal for arrOUS[4]",
12491 expVal
.getLength(), aStrBuf
.getLength()
12498 OStringBuffer
aStrBuf( arrOUS
[4] );
12499 OString
expVal( aStrBuf
.getStr() );
12500 sal_Int64 input
= 0;
12501 sal_Int16 radix
= 16;
12503 expVal
+= "0"_ostr
;
12504 aStrBuf
.append( input
, radix
);
12506 CPPUNIT_ASSERT_EQUAL_MESSAGE
12508 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
12509 expVal
, OString(aStrBuf
.getStr())
12511 CPPUNIT_ASSERT_EQUAL_MESSAGE
12513 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
12514 expVal
.getLength(), aStrBuf
.getLength()
12521 OStringBuffer
aStrBuf( arrOUS
[4] );
12522 OString
expVal( aStrBuf
.getStr() );
12523 sal_Int64 input
= 4;
12524 sal_Int16 radix
= 16;
12526 expVal
+= "4"_ostr
;
12527 aStrBuf
.append( input
, radix
);
12529 CPPUNIT_ASSERT_EQUAL_MESSAGE
12531 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
12532 expVal
, OString(aStrBuf
.getStr())
12534 CPPUNIT_ASSERT_EQUAL_MESSAGE
12536 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
12537 expVal
.getLength(), aStrBuf
.getLength()
12544 OStringBuffer
aStrBuf( arrOUS
[4] );
12545 OString
expVal( aStrBuf
.getStr() );
12546 sal_Int64 input
= 8;
12547 sal_Int16 radix
= 16;
12549 expVal
+= "8"_ostr
;
12550 aStrBuf
.append( input
, radix
);
12552 CPPUNIT_ASSERT_EQUAL_MESSAGE
12554 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
12555 expVal
, OString(aStrBuf
.getStr())
12557 CPPUNIT_ASSERT_EQUAL_MESSAGE
12559 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
12560 expVal
.getLength(), aStrBuf
.getLength()
12567 OStringBuffer
aStrBuf( arrOUS
[4] );
12568 OString
expVal( aStrBuf
.getStr() );
12569 sal_Int64 input
= 15;
12570 sal_Int16 radix
= 16;
12572 expVal
+= "f"_ostr
;
12573 aStrBuf
.append( input
, radix
);
12575 CPPUNIT_ASSERT_EQUAL_MESSAGE
12577 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
12578 expVal
, OString(aStrBuf
.getStr())
12580 CPPUNIT_ASSERT_EQUAL_MESSAGE
12582 "append(sal_Int64, radix 16)_006_kRadixHexdecimal for arrOUS[4]",
12583 expVal
.getLength(), aStrBuf
.getLength()
12590 OStringBuffer
aStrBuf( arrOUS
[4] );
12591 OString
expVal( aStrBuf
.getStr() );
12592 sal_Int64 input
= 0;
12593 sal_Int16 radix
= 36;
12595 expVal
+= "0"_ostr
;
12596 aStrBuf
.append( input
, radix
);
12598 CPPUNIT_ASSERT_EQUAL_MESSAGE
12600 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
12601 expVal
, OString(aStrBuf
.getStr())
12603 CPPUNIT_ASSERT_EQUAL_MESSAGE
12605 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
12606 expVal
.getLength(), aStrBuf
.getLength()
12613 OStringBuffer
aStrBuf( arrOUS
[4] );
12614 OString
expVal( aStrBuf
.getStr() );
12615 sal_Int64 input
= 4;
12616 sal_Int16 radix
= 36;
12618 expVal
+= "4"_ostr
;
12619 aStrBuf
.append( input
, radix
);
12621 CPPUNIT_ASSERT_EQUAL_MESSAGE
12623 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
12624 expVal
, OString(aStrBuf
.getStr())
12626 CPPUNIT_ASSERT_EQUAL_MESSAGE
12628 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
12629 expVal
.getLength(), aStrBuf
.getLength()
12636 OStringBuffer
aStrBuf( arrOUS
[4] );
12637 OString
expVal( aStrBuf
.getStr() );
12638 sal_Int64 input
= 8;
12639 sal_Int16 radix
= 36;
12641 expVal
+= "8"_ostr
;
12642 aStrBuf
.append( input
, radix
);
12644 CPPUNIT_ASSERT_EQUAL_MESSAGE
12646 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
12647 expVal
, OString(aStrBuf
.getStr())
12649 CPPUNIT_ASSERT_EQUAL_MESSAGE
12651 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
12652 expVal
.getLength(), aStrBuf
.getLength()
12659 OStringBuffer
aStrBuf( arrOUS
[4] );
12660 OString
expVal( aStrBuf
.getStr() );
12661 sal_Int64 input
= 35;
12662 sal_Int16 radix
= 36;
12664 expVal
+= "z"_ostr
;
12665 aStrBuf
.append( input
, radix
);
12667 CPPUNIT_ASSERT_EQUAL_MESSAGE
12669 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
12670 expVal
, OString(aStrBuf
.getStr())
12672 CPPUNIT_ASSERT_EQUAL_MESSAGE
12674 "append(sal_Int64, radix 36)_006_kRadixBase36 for arrOUS[4]",
12675 expVal
.getLength(), aStrBuf
.getLength()
12680 CPPUNIT_TEST_SUITE( append_007_Int64
);
12681 CPPUNIT_TEST( append_001
); CPPUNIT_TEST( append_002
);
12682 CPPUNIT_TEST( append_003
); CPPUNIT_TEST( append_004
);
12683 CPPUNIT_TEST( append_005
); CPPUNIT_TEST( append_006
);
12684 CPPUNIT_TEST( append_007
); CPPUNIT_TEST( append_008
);
12685 CPPUNIT_TEST( append_009
); CPPUNIT_TEST( append_010
);
12686 CPPUNIT_TEST( append_011
); CPPUNIT_TEST( append_012
);
12687 CPPUNIT_TEST( append_013
); CPPUNIT_TEST( append_014
);
12688 CPPUNIT_TEST( append_015
); CPPUNIT_TEST( append_016
);
12689 CPPUNIT_TEST( append_017
); CPPUNIT_TEST( append_018
);
12690 CPPUNIT_TEST( append_019
); CPPUNIT_TEST( append_020
);
12691 CPPUNIT_TEST( append_021
); CPPUNIT_TEST( append_022
);
12692 CPPUNIT_TEST( append_023
); CPPUNIT_TEST( append_024
);
12693 CPPUNIT_TEST( append_025
); CPPUNIT_TEST( append_026
);
12694 CPPUNIT_TEST( append_027
); CPPUNIT_TEST( append_028
);
12695 CPPUNIT_TEST( append_029
); CPPUNIT_TEST( append_030
);
12696 CPPUNIT_TEST( append_031
); CPPUNIT_TEST( append_032
);
12697 CPPUNIT_TEST( append_033
); CPPUNIT_TEST( append_034
);
12698 CPPUNIT_TEST( append_035
); CPPUNIT_TEST( append_036
);
12699 CPPUNIT_TEST( append_037
); CPPUNIT_TEST( append_038
);
12700 CPPUNIT_TEST( append_039
); CPPUNIT_TEST( append_040
);
12701 CPPUNIT_TEST( append_041
); CPPUNIT_TEST( append_042
);
12702 CPPUNIT_TEST( append_043
); CPPUNIT_TEST( append_044
);
12703 CPPUNIT_TEST( append_045
); CPPUNIT_TEST( append_046
);
12704 CPPUNIT_TEST( append_047
); CPPUNIT_TEST( append_048
);
12705 CPPUNIT_TEST( append_049
); CPPUNIT_TEST( append_050
);
12706 CPPUNIT_TEST( append_051
); CPPUNIT_TEST( append_052
);
12707 CPPUNIT_TEST( append_053
); CPPUNIT_TEST( append_054
);
12708 CPPUNIT_TEST( append_055
); CPPUNIT_TEST( append_056
);
12709 CPPUNIT_TEST( append_057
); CPPUNIT_TEST( append_058
);
12710 CPPUNIT_TEST( append_059
); CPPUNIT_TEST( append_060
);
12711 CPPUNIT_TEST( append_061
); CPPUNIT_TEST( append_062
);
12712 CPPUNIT_TEST( append_063
); CPPUNIT_TEST( append_064
);
12713 CPPUNIT_TEST( append_065
); CPPUNIT_TEST( append_066
);
12714 CPPUNIT_TEST( append_067
); CPPUNIT_TEST( append_068
);
12715 CPPUNIT_TEST( append_069
); CPPUNIT_TEST( append_070
);
12716 CPPUNIT_TEST( append_071
); CPPUNIT_TEST( append_072
);
12717 CPPUNIT_TEST( append_073
); CPPUNIT_TEST( append_074
);
12718 CPPUNIT_TEST( append_075
); CPPUNIT_TEST( append_076
);
12719 CPPUNIT_TEST( append_077
); CPPUNIT_TEST( append_078
);
12720 CPPUNIT_TEST( append_079
); CPPUNIT_TEST( append_080
);
12721 CPPUNIT_TEST( append_081
); CPPUNIT_TEST( append_082
);
12722 CPPUNIT_TEST( append_083
); CPPUNIT_TEST( append_084
);
12723 CPPUNIT_TEST( append_085
); CPPUNIT_TEST( append_086
);
12724 CPPUNIT_TEST( append_087
); CPPUNIT_TEST( append_088
);
12725 CPPUNIT_TEST( append_089
); CPPUNIT_TEST( append_090
);
12726 CPPUNIT_TEST( append_091
); CPPUNIT_TEST( append_092
);
12727 CPPUNIT_TEST( append_093
); CPPUNIT_TEST( append_094
);
12728 CPPUNIT_TEST( append_095
); CPPUNIT_TEST( append_096
);
12729 CPPUNIT_TEST( append_097
); CPPUNIT_TEST( append_098
);
12730 CPPUNIT_TEST( append_099
); CPPUNIT_TEST( append_100
);
12731 CPPUNIT_TEST_SUITE_END();
12734 // testing the method append( sal_Int64 i, sal_Int16 radix=2 )
12735 // where i = large constants
12736 // testing the method append( sal_Int64 i, sal_Int16 radix=8 )
12737 // where i = large constants
12738 // testing the method append( sal_Int64 i, sal_Int16 radix=10 )
12739 // where i = large constants
12740 // testing the method append( sal_Int64 i, sal_Int16 radix=16 )
12741 // where i = large constants
12742 // testing the method append( sal_Int64 i, sal_Int16 radix=36 )
12743 // where i = large constants
12745 class append_007_Int64_Bounderies
: public CppUnit::TestFixture
12750 void setUp() override
12752 arrOUS
[0] = OString( kTestStr7
);
12753 arrOUS
[1] = OString( );
12754 arrOUS
[2] = OString( kTestStr25
);
12755 arrOUS
[3] = ""_ostr
;
12756 arrOUS
[4] = OString( kTestStr28
);
12761 OStringBuffer
aStrBuf( arrOUS
[0] );
12762 OString
expVal( aStrBuf
.getStr() );
12763 sal_Int64 input
= kSInt8Max
;
12764 sal_Int16 radix
= 2;
12766 expVal
+= "1111111"_ostr
;
12767 aStrBuf
.append( input
, radix
);
12769 CPPUNIT_ASSERT_EQUAL_MESSAGE
12771 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
12772 expVal
, OString(aStrBuf
.getStr())
12774 CPPUNIT_ASSERT_EQUAL_MESSAGE
12776 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
12777 expVal
.getLength(), aStrBuf
.getLength()
12784 OStringBuffer
aStrBuf( arrOUS
[0] );
12785 OString
expVal( aStrBuf
.getStr() );
12786 sal_Int64 input
= kSInt64Max
;
12787 sal_Int16 radix
= 2;
12789 expVal
+= "111111111111111111111111111111111111111111111111111111111111111"_ostr
;
12790 aStrBuf
.append( input
, radix
);
12792 CPPUNIT_ASSERT_EQUAL_MESSAGE
12794 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
12795 expVal
, OString(aStrBuf
.getStr())
12797 CPPUNIT_ASSERT_EQUAL_MESSAGE
12799 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[0]",
12800 expVal
.getLength(), aStrBuf
.getLength()
12807 OStringBuffer
aStrBuf( arrOUS
[0] );
12808 OString
expVal( aStrBuf
.getStr() );
12809 sal_Int64 input
= kSInt8Max
;
12810 sal_Int16 radix
= 8;
12812 expVal
+= "177"_ostr
;
12813 aStrBuf
.append( input
, radix
);
12815 CPPUNIT_ASSERT_EQUAL_MESSAGE
12817 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
12818 expVal
, OString(aStrBuf
.getStr())
12820 CPPUNIT_ASSERT_EQUAL_MESSAGE
12822 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
12823 expVal
.getLength(), aStrBuf
.getLength()
12830 OStringBuffer
aStrBuf( arrOUS
[0] );
12831 OString
expVal( aStrBuf
.getStr() );
12832 sal_Int64 input
= kSInt64Max
;
12833 sal_Int16 radix
= 8;
12835 expVal
+= "777777777777777777777"_ostr
;
12836 aStrBuf
.append( input
, radix
);
12838 CPPUNIT_ASSERT_EQUAL_MESSAGE
12840 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
12841 expVal
, OString(aStrBuf
.getStr())
12843 CPPUNIT_ASSERT_EQUAL_MESSAGE
12845 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[0]",
12846 expVal
.getLength(), aStrBuf
.getLength()
12853 OStringBuffer
aStrBuf( arrOUS
[0] );
12854 OString
expVal( aStrBuf
.getStr() );
12855 sal_Int64 input
= kSInt8Max
;
12856 sal_Int16 radix
= 10;
12858 expVal
+= "127"_ostr
;
12859 aStrBuf
.append( input
, radix
);
12861 CPPUNIT_ASSERT_EQUAL_MESSAGE
12863 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
12864 expVal
, OString(aStrBuf
.getStr())
12866 CPPUNIT_ASSERT_EQUAL_MESSAGE
12868 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
12869 expVal
.getLength(), aStrBuf
.getLength()
12876 OStringBuffer
aStrBuf( arrOUS
[0] );
12877 OString
expVal( aStrBuf
.getStr() );
12878 sal_Int64 input
= kSInt64Max
;
12879 sal_Int16 radix
= 10;
12881 expVal
+= "9223372036854775807"_ostr
;
12882 aStrBuf
.append( input
, radix
);
12884 CPPUNIT_ASSERT_EQUAL_MESSAGE
12886 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
12887 expVal
, OString(aStrBuf
.getStr())
12889 CPPUNIT_ASSERT_EQUAL_MESSAGE
12891 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[0]",
12892 expVal
.getLength(), aStrBuf
.getLength()
12899 OStringBuffer
aStrBuf( arrOUS
[0] );
12900 OString
expVal( aStrBuf
.getStr() );
12901 sal_Int64 input
= kSInt8Max
;
12902 sal_Int16 radix
= 16;
12904 expVal
+= "7f"_ostr
;
12905 aStrBuf
.append( input
, radix
);
12907 CPPUNIT_ASSERT_EQUAL_MESSAGE
12909 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
12910 expVal
, OString(aStrBuf
.getStr())
12912 CPPUNIT_ASSERT_EQUAL_MESSAGE
12914 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
12915 expVal
.getLength(), aStrBuf
.getLength()
12922 OStringBuffer
aStrBuf( arrOUS
[0] );
12923 OString
expVal( aStrBuf
.getStr() );
12924 sal_Int64 input
= kSInt64Max
;
12925 sal_Int16 radix
= 16;
12927 expVal
+= "7fffffffffffffff"_ostr
;
12928 aStrBuf
.append( input
, radix
);
12930 CPPUNIT_ASSERT_EQUAL_MESSAGE
12932 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
12933 expVal
, OString(aStrBuf
.getStr())
12935 CPPUNIT_ASSERT_EQUAL_MESSAGE
12937 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[0]",
12938 expVal
.getLength(), aStrBuf
.getLength()
12945 OStringBuffer
aStrBuf( arrOUS
[0] );
12946 OString
expVal( aStrBuf
.getStr() );
12947 sal_Int64 input
= kSInt8Max
;
12948 sal_Int16 radix
= 36;
12950 expVal
+= "3j"_ostr
;
12951 aStrBuf
.append( input
, radix
);
12953 CPPUNIT_ASSERT_EQUAL_MESSAGE
12955 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
12956 expVal
, OString(aStrBuf
.getStr())
12958 CPPUNIT_ASSERT_EQUAL_MESSAGE
12960 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
12961 expVal
.getLength(), aStrBuf
.getLength()
12968 OStringBuffer
aStrBuf( arrOUS
[0] );
12969 OString
expVal( aStrBuf
.getStr() );
12970 sal_Int64 input
= kSInt64Max
;
12971 sal_Int16 radix
= 36;
12973 expVal
+= "1y2p0ij32e8e7"_ostr
;
12974 aStrBuf
.append( input
, radix
);
12976 CPPUNIT_ASSERT_EQUAL_MESSAGE
12978 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
12979 expVal
, OString(aStrBuf
.getStr())
12981 CPPUNIT_ASSERT_EQUAL_MESSAGE
12983 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[0]",
12984 expVal
.getLength(), aStrBuf
.getLength()
12991 OStringBuffer
aStrBuf( arrOUS
[1] );
12992 OString
expVal( aStrBuf
.getStr() );
12993 sal_Int64 input
= kSInt8Max
;
12994 sal_Int16 radix
= 2;
12996 expVal
+= "1111111"_ostr
;
12997 aStrBuf
.append( input
, radix
);
12999 CPPUNIT_ASSERT_EQUAL_MESSAGE
13001 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
13002 expVal
, OString(aStrBuf
.getStr())
13004 CPPUNIT_ASSERT_EQUAL_MESSAGE
13006 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
13007 expVal
.getLength(), aStrBuf
.getLength()
13014 OStringBuffer
aStrBuf( arrOUS
[1] );
13015 OString
expVal( aStrBuf
.getStr() );
13016 sal_Int64 input
= kSInt64Max
;
13017 sal_Int16 radix
= 2;
13019 expVal
+= "111111111111111111111111111111111111111111111111111111111111111"_ostr
;
13020 aStrBuf
.append( input
, radix
);
13022 CPPUNIT_ASSERT_EQUAL_MESSAGE
13024 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
13025 expVal
, OString(aStrBuf
.getStr())
13027 CPPUNIT_ASSERT_EQUAL_MESSAGE
13029 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[1]",
13030 expVal
.getLength(), aStrBuf
.getLength()
13037 OStringBuffer
aStrBuf( arrOUS
[1] );
13038 OString
expVal( aStrBuf
.getStr() );
13039 sal_Int64 input
= kSInt8Max
;
13040 sal_Int16 radix
= 8;
13042 expVal
+= "177"_ostr
;
13043 aStrBuf
.append( input
, radix
);
13045 CPPUNIT_ASSERT_EQUAL_MESSAGE
13047 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
13048 expVal
, OString(aStrBuf
.getStr())
13050 CPPUNIT_ASSERT_EQUAL_MESSAGE
13052 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
13053 expVal
.getLength(), aStrBuf
.getLength()
13060 OStringBuffer
aStrBuf( arrOUS
[1] );
13061 OString
expVal( aStrBuf
.getStr() );
13062 sal_Int64 input
= kSInt64Max
;
13063 sal_Int16 radix
= 8;
13065 expVal
+= "777777777777777777777"_ostr
;
13066 aStrBuf
.append( input
, radix
);
13068 CPPUNIT_ASSERT_EQUAL_MESSAGE
13070 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
13071 expVal
, OString(aStrBuf
.getStr())
13073 CPPUNIT_ASSERT_EQUAL_MESSAGE
13075 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[1]",
13076 expVal
.getLength(), aStrBuf
.getLength()
13083 OStringBuffer
aStrBuf( arrOUS
[1] );
13084 OString
expVal( aStrBuf
.getStr() );
13085 sal_Int64 input
= kSInt8Max
;
13086 sal_Int16 radix
= 10;
13088 expVal
+= "127"_ostr
;
13089 aStrBuf
.append( input
, radix
);
13091 CPPUNIT_ASSERT_EQUAL_MESSAGE
13093 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
13094 expVal
, OString(aStrBuf
.getStr())
13096 CPPUNIT_ASSERT_EQUAL_MESSAGE
13098 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
13099 expVal
.getLength(), aStrBuf
.getLength()
13106 OStringBuffer
aStrBuf( arrOUS
[1] );
13107 OString
expVal( aStrBuf
.getStr() );
13108 sal_Int64 input
= kSInt64Max
;
13109 sal_Int16 radix
= 10;
13111 expVal
+= "9223372036854775807"_ostr
;
13112 aStrBuf
.append( input
, radix
);
13114 CPPUNIT_ASSERT_EQUAL_MESSAGE
13116 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
13117 expVal
, OString(aStrBuf
.getStr())
13119 CPPUNIT_ASSERT_EQUAL_MESSAGE
13121 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[1]",
13122 expVal
.getLength(), aStrBuf
.getLength()
13129 OStringBuffer
aStrBuf( arrOUS
[1] );
13130 OString
expVal( aStrBuf
.getStr() );
13131 sal_Int64 input
= kSInt8Max
;
13132 sal_Int16 radix
= 16;
13134 expVal
+= "7f"_ostr
;
13135 aStrBuf
.append( input
, radix
);
13137 CPPUNIT_ASSERT_EQUAL_MESSAGE
13139 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
13140 expVal
, OString(aStrBuf
.getStr())
13142 CPPUNIT_ASSERT_EQUAL_MESSAGE
13144 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
13145 expVal
.getLength(), aStrBuf
.getLength()
13152 OStringBuffer
aStrBuf( arrOUS
[1] );
13153 OString
expVal( aStrBuf
.getStr() );
13154 sal_Int64 input
= kSInt64Max
;
13155 sal_Int16 radix
= 16;
13157 expVal
+= "7fffffffffffffff"_ostr
;
13158 aStrBuf
.append( input
, radix
);
13160 CPPUNIT_ASSERT_EQUAL_MESSAGE
13162 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
13163 expVal
, OString(aStrBuf
.getStr())
13165 CPPUNIT_ASSERT_EQUAL_MESSAGE
13167 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[1]",
13168 expVal
.getLength(), aStrBuf
.getLength()
13175 OStringBuffer
aStrBuf( arrOUS
[1] );
13176 OString
expVal( aStrBuf
.getStr() );
13177 sal_Int64 input
= kSInt8Max
;
13178 sal_Int16 radix
= 36;
13180 expVal
+= "3j"_ostr
;
13181 aStrBuf
.append( input
, radix
);
13183 CPPUNIT_ASSERT_EQUAL_MESSAGE
13185 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
13186 expVal
, OString(aStrBuf
.getStr())
13188 CPPUNIT_ASSERT_EQUAL_MESSAGE
13190 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
13191 expVal
.getLength(), aStrBuf
.getLength()
13198 OStringBuffer
aStrBuf( arrOUS
[1] );
13199 OString
expVal( aStrBuf
.getStr() );
13200 sal_Int64 input
= kSInt64Max
;
13201 sal_Int16 radix
= 36;
13203 expVal
+= "1y2p0ij32e8e7"_ostr
;
13204 aStrBuf
.append( input
, radix
);
13206 CPPUNIT_ASSERT_EQUAL_MESSAGE
13208 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
13209 expVal
, OString(aStrBuf
.getStr())
13211 CPPUNIT_ASSERT_EQUAL_MESSAGE
13213 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[1]",
13214 expVal
.getLength(), aStrBuf
.getLength()
13221 OStringBuffer
aStrBuf( arrOUS
[2] );
13222 OString
expVal( aStrBuf
.getStr() );
13223 sal_Int64 input
= kSInt8Max
;
13224 sal_Int16 radix
= 2;
13226 expVal
+= "1111111"_ostr
;
13227 aStrBuf
.append( input
, radix
);
13229 CPPUNIT_ASSERT_EQUAL_MESSAGE
13231 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
13232 expVal
, OString(aStrBuf
.getStr())
13234 CPPUNIT_ASSERT_EQUAL_MESSAGE
13236 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
13237 expVal
.getLength(), aStrBuf
.getLength()
13244 OStringBuffer
aStrBuf( arrOUS
[2] );
13245 OString
expVal( aStrBuf
.getStr() );
13246 sal_Int64 input
= kSInt64Max
;
13247 sal_Int16 radix
= 2;
13249 expVal
+= "111111111111111111111111111111111111111111111111111111111111111"_ostr
;
13250 aStrBuf
.append( input
, radix
);
13252 CPPUNIT_ASSERT_EQUAL_MESSAGE
13254 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
13255 expVal
, OString(aStrBuf
.getStr())
13257 CPPUNIT_ASSERT_EQUAL_MESSAGE
13259 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[2]",
13260 expVal
.getLength(), aStrBuf
.getLength()
13267 OStringBuffer
aStrBuf( arrOUS
[2] );
13268 OString
expVal( aStrBuf
.getStr() );
13269 sal_Int64 input
= kSInt8Max
;
13270 sal_Int16 radix
= 8;
13272 expVal
+= "177"_ostr
;
13273 aStrBuf
.append( input
, radix
);
13275 CPPUNIT_ASSERT_EQUAL_MESSAGE
13277 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
13278 expVal
, OString(aStrBuf
.getStr())
13280 CPPUNIT_ASSERT_EQUAL_MESSAGE
13282 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
13283 expVal
.getLength(), aStrBuf
.getLength()
13290 OStringBuffer
aStrBuf( arrOUS
[2] );
13291 OString
expVal( aStrBuf
.getStr() );
13292 sal_Int64 input
= kSInt64Max
;
13293 sal_Int16 radix
= 8;
13295 expVal
+= "777777777777777777777"_ostr
;
13296 aStrBuf
.append( input
, radix
);
13298 CPPUNIT_ASSERT_EQUAL_MESSAGE
13300 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
13301 expVal
, OString(aStrBuf
.getStr())
13303 CPPUNIT_ASSERT_EQUAL_MESSAGE
13305 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[2]",
13306 expVal
.getLength(), aStrBuf
.getLength()
13313 OStringBuffer
aStrBuf( arrOUS
[2] );
13314 OString
expVal( aStrBuf
.getStr() );
13315 sal_Int64 input
= kSInt8Max
;
13316 sal_Int16 radix
= 10;
13318 expVal
+= "127"_ostr
;
13319 aStrBuf
.append( input
, radix
);
13321 CPPUNIT_ASSERT_EQUAL_MESSAGE
13323 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
13324 expVal
, OString(aStrBuf
.getStr())
13326 CPPUNIT_ASSERT_EQUAL_MESSAGE
13328 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
13329 expVal
.getLength(), aStrBuf
.getLength()
13336 OStringBuffer
aStrBuf( arrOUS
[2] );
13337 OString
expVal( aStrBuf
.getStr() );
13338 sal_Int64 input
= kSInt64Max
;
13339 sal_Int16 radix
= 10;
13341 expVal
+= "9223372036854775807"_ostr
;
13342 aStrBuf
.append( input
, radix
);
13344 CPPUNIT_ASSERT_EQUAL_MESSAGE
13346 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
13347 expVal
, OString(aStrBuf
.getStr())
13349 CPPUNIT_ASSERT_EQUAL_MESSAGE
13351 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[2]",
13352 expVal
.getLength(), aStrBuf
.getLength()
13359 OStringBuffer
aStrBuf( arrOUS
[2] );
13360 OString
expVal( aStrBuf
.getStr() );
13361 sal_Int64 input
= kSInt8Max
;
13362 sal_Int16 radix
= 16;
13364 expVal
+= "7f"_ostr
;
13365 aStrBuf
.append( input
, radix
);
13367 CPPUNIT_ASSERT_EQUAL_MESSAGE
13369 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
13370 expVal
, OString(aStrBuf
.getStr())
13372 CPPUNIT_ASSERT_EQUAL_MESSAGE
13374 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
13375 expVal
.getLength(), aStrBuf
.getLength()
13382 OStringBuffer
aStrBuf( arrOUS
[2] );
13383 OString
expVal( aStrBuf
.getStr() );
13384 sal_Int64 input
= kSInt64Max
;
13385 sal_Int16 radix
= 16;
13387 expVal
+= "7fffffffffffffff"_ostr
;
13388 aStrBuf
.append( input
, radix
);
13390 CPPUNIT_ASSERT_EQUAL_MESSAGE
13392 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
13393 expVal
, OString(aStrBuf
.getStr())
13395 CPPUNIT_ASSERT_EQUAL_MESSAGE
13397 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[2]",
13398 expVal
.getLength(), aStrBuf
.getLength()
13405 OStringBuffer
aStrBuf( arrOUS
[2] );
13406 OString
expVal( aStrBuf
.getStr() );
13407 sal_Int64 input
= kSInt8Max
;
13408 sal_Int16 radix
= 36;
13410 expVal
+= "3j"_ostr
;
13411 aStrBuf
.append( input
, radix
);
13413 CPPUNIT_ASSERT_EQUAL_MESSAGE
13415 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
13416 expVal
, OString(aStrBuf
.getStr())
13418 CPPUNIT_ASSERT_EQUAL_MESSAGE
13420 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
13421 expVal
.getLength(), aStrBuf
.getLength()
13428 OStringBuffer
aStrBuf( arrOUS
[2] );
13429 OString
expVal( aStrBuf
.getStr() );
13430 sal_Int64 input
= kSInt64Max
;
13431 sal_Int16 radix
= 36;
13433 expVal
+= "1y2p0ij32e8e7"_ostr
;
13434 aStrBuf
.append( input
, radix
);
13436 CPPUNIT_ASSERT_EQUAL_MESSAGE
13438 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
13439 expVal
, OString(aStrBuf
.getStr())
13441 CPPUNIT_ASSERT_EQUAL_MESSAGE
13443 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[2]",
13444 expVal
.getLength(), aStrBuf
.getLength()
13451 OStringBuffer
aStrBuf( arrOUS
[3] );
13452 OString
expVal( aStrBuf
.getStr() );
13453 sal_Int64 input
= kSInt8Max
;
13454 sal_Int16 radix
= 2;
13456 expVal
+= "1111111"_ostr
;
13457 aStrBuf
.append( input
, radix
);
13459 CPPUNIT_ASSERT_EQUAL_MESSAGE
13461 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
13462 expVal
, OString(aStrBuf
.getStr())
13464 CPPUNIT_ASSERT_EQUAL_MESSAGE
13466 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
13467 expVal
.getLength(), aStrBuf
.getLength()
13474 OStringBuffer
aStrBuf( arrOUS
[3] );
13475 OString
expVal( aStrBuf
.getStr() );
13476 sal_Int64 input
= kSInt64Max
;
13477 sal_Int16 radix
= 2;
13479 expVal
+= "111111111111111111111111111111111111111111111111111111111111111"_ostr
;
13480 aStrBuf
.append( input
, radix
);
13482 CPPUNIT_ASSERT_EQUAL_MESSAGE
13484 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
13485 expVal
, OString(aStrBuf
.getStr())
13487 CPPUNIT_ASSERT_EQUAL_MESSAGE
13489 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[3]",
13490 expVal
.getLength(), aStrBuf
.getLength()
13497 OStringBuffer
aStrBuf( arrOUS
[3] );
13498 OString
expVal( aStrBuf
.getStr() );
13499 sal_Int64 input
= kSInt8Max
;
13500 sal_Int16 radix
= 8;
13502 expVal
+= "177"_ostr
;
13503 aStrBuf
.append( input
, radix
);
13505 CPPUNIT_ASSERT_EQUAL_MESSAGE
13507 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
13508 expVal
, OString(aStrBuf
.getStr())
13510 CPPUNIT_ASSERT_EQUAL_MESSAGE
13512 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
13513 expVal
.getLength(), aStrBuf
.getLength()
13520 OStringBuffer
aStrBuf( arrOUS
[3] );
13521 OString
expVal( aStrBuf
.getStr() );
13522 sal_Int64 input
= kSInt64Max
;
13523 sal_Int16 radix
= 8;
13525 expVal
+= "777777777777777777777"_ostr
;
13526 aStrBuf
.append( input
, radix
);
13528 CPPUNIT_ASSERT_EQUAL_MESSAGE
13530 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
13531 expVal
, OString(aStrBuf
.getStr())
13533 CPPUNIT_ASSERT_EQUAL_MESSAGE
13535 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[3]",
13536 expVal
.getLength(), aStrBuf
.getLength()
13543 OStringBuffer
aStrBuf( arrOUS
[3] );
13544 OString
expVal( aStrBuf
.getStr() );
13545 sal_Int64 input
= kSInt8Max
;
13546 sal_Int16 radix
= 10;
13548 expVal
+= "127"_ostr
;
13549 aStrBuf
.append( input
, radix
);
13551 CPPUNIT_ASSERT_EQUAL_MESSAGE
13553 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
13554 expVal
, OString(aStrBuf
.getStr())
13556 CPPUNIT_ASSERT_EQUAL_MESSAGE
13558 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
13559 expVal
.getLength(), aStrBuf
.getLength()
13566 OStringBuffer
aStrBuf( arrOUS
[3] );
13567 OString
expVal( aStrBuf
.getStr() );
13568 sal_Int64 input
= kSInt64Max
;
13569 sal_Int16 radix
= 10;
13571 expVal
+= "9223372036854775807"_ostr
;
13572 aStrBuf
.append( input
, radix
);
13574 CPPUNIT_ASSERT_EQUAL_MESSAGE
13576 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
13577 expVal
, OString(aStrBuf
.getStr())
13579 CPPUNIT_ASSERT_EQUAL_MESSAGE
13581 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[3]",
13582 expVal
.getLength(), aStrBuf
.getLength()
13589 OStringBuffer
aStrBuf( arrOUS
[3] );
13590 OString
expVal( aStrBuf
.getStr() );
13591 sal_Int64 input
= kSInt8Max
;
13592 sal_Int16 radix
= 16;
13594 expVal
+= "7f"_ostr
;
13595 aStrBuf
.append( input
, radix
);
13597 CPPUNIT_ASSERT_EQUAL_MESSAGE
13599 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
13600 expVal
, OString(aStrBuf
.getStr())
13602 CPPUNIT_ASSERT_EQUAL_MESSAGE
13604 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
13605 expVal
.getLength(), aStrBuf
.getLength()
13612 OStringBuffer
aStrBuf( arrOUS
[3] );
13613 OString
expVal( aStrBuf
.getStr() );
13614 sal_Int64 input
= kSInt64Max
;
13615 sal_Int16 radix
= 16;
13617 expVal
+= "7fffffffffffffff"_ostr
;
13618 aStrBuf
.append( input
, radix
);
13620 CPPUNIT_ASSERT_EQUAL_MESSAGE
13622 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
13623 expVal
, OString(aStrBuf
.getStr())
13625 CPPUNIT_ASSERT_EQUAL_MESSAGE
13627 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[3]",
13628 expVal
.getLength(), aStrBuf
.getLength()
13635 OStringBuffer
aStrBuf( arrOUS
[3] );
13636 OString
expVal( aStrBuf
.getStr() );
13637 sal_Int64 input
= kSInt8Max
;
13638 sal_Int16 radix
= 36;
13640 expVal
+= "3j"_ostr
;
13641 aStrBuf
.append( input
, radix
);
13643 CPPUNIT_ASSERT_EQUAL_MESSAGE
13645 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
13646 expVal
, OString(aStrBuf
.getStr())
13648 CPPUNIT_ASSERT_EQUAL_MESSAGE
13650 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
13651 expVal
.getLength(), aStrBuf
.getLength()
13658 OStringBuffer
aStrBuf( arrOUS
[3] );
13659 OString
expVal( aStrBuf
.getStr() );
13660 sal_Int64 input
= kSInt64Max
;
13661 sal_Int16 radix
= 36;
13663 expVal
+= "1y2p0ij32e8e7"_ostr
;
13664 aStrBuf
.append( input
, radix
);
13666 CPPUNIT_ASSERT_EQUAL_MESSAGE
13668 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
13669 expVal
, OString(aStrBuf
.getStr())
13671 CPPUNIT_ASSERT_EQUAL_MESSAGE
13673 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[3]",
13674 expVal
.getLength(), aStrBuf
.getLength()
13681 OStringBuffer
aStrBuf( arrOUS
[4] );
13682 OString
expVal( aStrBuf
.getStr() );
13683 sal_Int64 input
= kSInt8Max
;
13684 sal_Int16 radix
= 2;
13686 expVal
+= "1111111"_ostr
;
13687 aStrBuf
.append( input
, radix
);
13689 CPPUNIT_ASSERT_EQUAL_MESSAGE
13691 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
13692 expVal
, OString(aStrBuf
.getStr())
13694 CPPUNIT_ASSERT_EQUAL_MESSAGE
13696 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
13697 expVal
.getLength(), aStrBuf
.getLength()
13704 OStringBuffer
aStrBuf( arrOUS
[4] );
13705 OString
expVal( aStrBuf
.getStr() );
13706 sal_Int64 input
= kSInt64Max
;
13707 sal_Int16 radix
= 2;
13709 expVal
+= "111111111111111111111111111111111111111111111111111111111111111"_ostr
;
13710 aStrBuf
.append( input
, radix
);
13712 CPPUNIT_ASSERT_EQUAL_MESSAGE
13714 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
13715 expVal
, OString(aStrBuf
.getStr())
13717 CPPUNIT_ASSERT_EQUAL_MESSAGE
13719 "append(sal_Int64, radix 2)_006_Bounderies_kRadixBinary for arrOUS[4]",
13720 expVal
.getLength(), aStrBuf
.getLength()
13727 OStringBuffer
aStrBuf( arrOUS
[4] );
13728 OString
expVal( aStrBuf
.getStr() );
13729 sal_Int64 input
= kSInt8Max
;
13730 sal_Int16 radix
= 8;
13732 expVal
+= "177"_ostr
;
13733 aStrBuf
.append( input
, radix
);
13735 CPPUNIT_ASSERT_EQUAL_MESSAGE
13737 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
13738 expVal
, OString(aStrBuf
.getStr())
13740 CPPUNIT_ASSERT_EQUAL_MESSAGE
13742 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
13743 expVal
.getLength(), aStrBuf
.getLength()
13750 OStringBuffer
aStrBuf( arrOUS
[4] );
13751 OString
expVal( aStrBuf
.getStr() );
13752 sal_Int64 input
= kSInt64Max
;
13753 sal_Int16 radix
= 8;
13755 expVal
+= "777777777777777777777"_ostr
;
13756 aStrBuf
.append( input
, radix
);
13758 CPPUNIT_ASSERT_EQUAL_MESSAGE
13760 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
13761 expVal
, OString(aStrBuf
.getStr())
13763 CPPUNIT_ASSERT_EQUAL_MESSAGE
13765 "append(sal_Int64, radix 8)_006_Bounderies_kRadixBinary for arrOUS[4]",
13766 expVal
.getLength(), aStrBuf
.getLength()
13773 OStringBuffer
aStrBuf( arrOUS
[4] );
13774 OString
expVal( aStrBuf
.getStr() );
13775 sal_Int64 input
= kSInt8Max
;
13776 sal_Int16 radix
= 10;
13778 expVal
+= "127"_ostr
;
13779 aStrBuf
.append( input
, radix
);
13781 CPPUNIT_ASSERT_EQUAL_MESSAGE
13783 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
13784 expVal
, OString(aStrBuf
.getStr())
13786 CPPUNIT_ASSERT_EQUAL_MESSAGE
13788 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
13789 expVal
.getLength(), aStrBuf
.getLength()
13796 OStringBuffer
aStrBuf( arrOUS
[4] );
13797 OString
expVal( aStrBuf
.getStr() );
13798 sal_Int64 input
= kSInt64Max
;
13799 sal_Int16 radix
= 10;
13801 expVal
+= "9223372036854775807"_ostr
;
13802 aStrBuf
.append( input
, radix
);
13804 CPPUNIT_ASSERT_EQUAL_MESSAGE
13806 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
13807 expVal
, OString(aStrBuf
.getStr())
13809 CPPUNIT_ASSERT_EQUAL_MESSAGE
13811 "append(sal_Int64, radix 10)_006_Bounderies_kRadixBinary for arrOUS[4]",
13812 expVal
.getLength(), aStrBuf
.getLength()
13819 OStringBuffer
aStrBuf( arrOUS
[4] );
13820 OString
expVal( aStrBuf
.getStr() );
13821 sal_Int64 input
= kSInt8Max
;
13822 sal_Int16 radix
= 16;
13824 expVal
+= "7f"_ostr
;
13825 aStrBuf
.append( input
, radix
);
13827 CPPUNIT_ASSERT_EQUAL_MESSAGE
13829 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
13830 expVal
, OString(aStrBuf
.getStr())
13832 CPPUNIT_ASSERT_EQUAL_MESSAGE
13834 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
13835 expVal
.getLength(), aStrBuf
.getLength()
13842 OStringBuffer
aStrBuf( arrOUS
[4] );
13843 OString
expVal( aStrBuf
.getStr() );
13844 sal_Int64 input
= kSInt64Max
;
13845 sal_Int16 radix
= 16;
13847 expVal
+= "7fffffffffffffff"_ostr
;
13848 aStrBuf
.append( input
, radix
);
13850 CPPUNIT_ASSERT_EQUAL_MESSAGE
13852 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
13853 expVal
, OString(aStrBuf
.getStr())
13855 CPPUNIT_ASSERT_EQUAL_MESSAGE
13857 "append(sal_Int64, radix 16)_006_Bounderies_kRadixBinary for arrOUS[4]",
13858 expVal
.getLength(), aStrBuf
.getLength()
13865 OStringBuffer
aStrBuf( arrOUS
[4] );
13866 OString
expVal( aStrBuf
.getStr() );
13867 sal_Int64 input
= kSInt8Max
;
13868 sal_Int16 radix
= 36;
13870 expVal
+= "3j"_ostr
;
13871 aStrBuf
.append( input
, radix
);
13873 CPPUNIT_ASSERT_EQUAL_MESSAGE
13875 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
13876 expVal
, OString(aStrBuf
.getStr())
13878 CPPUNIT_ASSERT_EQUAL_MESSAGE
13880 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
13881 expVal
.getLength(), aStrBuf
.getLength()
13888 OStringBuffer
aStrBuf( arrOUS
[4] );
13889 OString
expVal( aStrBuf
.getStr() );
13890 sal_Int64 input
= kSInt64Max
;
13891 sal_Int16 radix
= 36;
13893 expVal
+= "1y2p0ij32e8e7"_ostr
;
13894 aStrBuf
.append( input
, radix
);
13896 CPPUNIT_ASSERT_EQUAL_MESSAGE
13898 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
13899 expVal
, OString(aStrBuf
.getStr())
13901 CPPUNIT_ASSERT_EQUAL_MESSAGE
13903 "append(sal_Int64, radix 36)_006_Bounderies_kRadixBinary for arrOUS[4]",
13904 expVal
.getLength(), aStrBuf
.getLength()
13909 CPPUNIT_TEST_SUITE( append_007_Int64_Bounderies
);
13910 CPPUNIT_TEST( append_001
); CPPUNIT_TEST( append_002
);
13911 CPPUNIT_TEST( append_003
); CPPUNIT_TEST( append_004
);
13912 CPPUNIT_TEST( append_005
); CPPUNIT_TEST( append_006
);
13913 CPPUNIT_TEST( append_007
); CPPUNIT_TEST( append_008
);
13914 CPPUNIT_TEST( append_009
); CPPUNIT_TEST( append_010
);
13915 CPPUNIT_TEST( append_011
); CPPUNIT_TEST( append_012
);
13916 CPPUNIT_TEST( append_013
); CPPUNIT_TEST( append_014
);
13917 CPPUNIT_TEST( append_015
); CPPUNIT_TEST( append_016
);
13918 CPPUNIT_TEST( append_017
); CPPUNIT_TEST( append_018
);
13919 CPPUNIT_TEST( append_019
); CPPUNIT_TEST( append_020
);
13920 CPPUNIT_TEST( append_021
); CPPUNIT_TEST( append_022
);
13921 CPPUNIT_TEST( append_023
); CPPUNIT_TEST( append_024
);
13922 CPPUNIT_TEST( append_025
); CPPUNIT_TEST( append_026
);
13923 CPPUNIT_TEST( append_027
); CPPUNIT_TEST( append_028
);
13924 CPPUNIT_TEST( append_029
); CPPUNIT_TEST( append_030
);
13925 CPPUNIT_TEST( append_031
); CPPUNIT_TEST( append_032
);
13926 CPPUNIT_TEST( append_033
); CPPUNIT_TEST( append_034
);
13927 CPPUNIT_TEST( append_035
); CPPUNIT_TEST( append_036
);
13928 CPPUNIT_TEST( append_037
); CPPUNIT_TEST( append_038
);
13929 CPPUNIT_TEST( append_039
); CPPUNIT_TEST( append_040
);
13930 CPPUNIT_TEST( append_041
); CPPUNIT_TEST( append_042
);
13931 CPPUNIT_TEST( append_043
); CPPUNIT_TEST( append_044
);
13932 CPPUNIT_TEST( append_045
); CPPUNIT_TEST( append_046
);
13933 CPPUNIT_TEST( append_047
); CPPUNIT_TEST( append_048
);
13934 CPPUNIT_TEST( append_049
); CPPUNIT_TEST( append_050
);
13935 CPPUNIT_TEST_SUITE_END();
13938 // testing the method append( sal_Int64 i, sal_Int16 radix=2 )
13939 // for negative value
13940 // testing the method append( sal_Int64 i, sal_Int16 radix=8 )
13941 // for negative value
13942 // testing the method append( sal_Int64 i, sal_Int16 radix=10 )
13943 // for negative value
13944 // testing the method append( sal_Int64 i, sal_Int16 radix=16 )
13945 // for negative value
13946 // testing the method append( sal_Int64 i, sal_Int16 radix=36 )
13947 // for negative value
13949 class append_007_Int64_Negative
: public CppUnit::TestFixture
13954 void setUp() override
13956 arrOUS
[0] = OString( kTestStr7
);
13957 arrOUS
[1] = OString( );
13958 arrOUS
[2] = OString( kTestStr25
);
13959 arrOUS
[3] = ""_ostr
;
13960 arrOUS
[4] = OString( kTestStr28
);
13965 OStringBuffer
aStrBuf( arrOUS
[0] );
13966 OString
expVal( aStrBuf
.getStr() );
13967 sal_Int64 input
= -0;
13968 sal_Int16 radix
= 2;
13970 expVal
+= "0"_ostr
;
13971 aStrBuf
.append( input
, radix
);
13973 CPPUNIT_ASSERT_EQUAL_MESSAGE
13975 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
13976 expVal
, OString(aStrBuf
.getStr())
13978 CPPUNIT_ASSERT_EQUAL_MESSAGE
13980 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
13981 expVal
.getLength(), aStrBuf
.getLength()
13988 OStringBuffer
aStrBuf( arrOUS
[0] );
13989 OString
expVal( aStrBuf
.getStr() );
13990 sal_Int64 input
= -4;
13991 sal_Int16 radix
= 2;
13993 expVal
+= "-"_ostr
;
13994 expVal
+= "100"_ostr
;
13995 aStrBuf
.append( input
, radix
);
13997 CPPUNIT_ASSERT_EQUAL_MESSAGE
13999 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
14000 expVal
, OString(aStrBuf
.getStr())
14002 CPPUNIT_ASSERT_EQUAL_MESSAGE
14004 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
14005 expVal
.getLength(), aStrBuf
.getLength()
14012 OStringBuffer
aStrBuf( arrOUS
[0] );
14013 OString
expVal( aStrBuf
.getStr() );
14014 sal_Int64 input
= -8;
14015 sal_Int16 radix
= 2;
14017 expVal
+= "-"_ostr
;
14018 expVal
+= "1000"_ostr
;
14019 aStrBuf
.append( input
, radix
);
14021 CPPUNIT_ASSERT_EQUAL_MESSAGE
14023 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
14024 expVal
, OString(aStrBuf
.getStr())
14026 CPPUNIT_ASSERT_EQUAL_MESSAGE
14028 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
14029 expVal
.getLength(), aStrBuf
.getLength()
14036 OStringBuffer
aStrBuf( arrOUS
[0] );
14037 OString
expVal( aStrBuf
.getStr() );
14038 sal_Int64 input
= -15;
14039 sal_Int16 radix
= 2;
14041 expVal
+= "-"_ostr
;
14042 expVal
+= "1111"_ostr
;
14043 aStrBuf
.append( input
, radix
);
14045 CPPUNIT_ASSERT_EQUAL_MESSAGE
14047 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
14048 expVal
, OString(aStrBuf
.getStr())
14050 CPPUNIT_ASSERT_EQUAL_MESSAGE
14052 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[0]",
14053 expVal
.getLength(), aStrBuf
.getLength()
14060 OStringBuffer
aStrBuf( arrOUS
[0] );
14061 OString
expVal( aStrBuf
.getStr() );
14062 sal_Int64 input
= -0;
14063 sal_Int16 radix
= 8;
14065 expVal
+= "0"_ostr
;
14066 aStrBuf
.append( input
, radix
);
14068 CPPUNIT_ASSERT_EQUAL_MESSAGE
14070 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
14071 expVal
, OString(aStrBuf
.getStr())
14073 CPPUNIT_ASSERT_EQUAL_MESSAGE
14075 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
14076 expVal
.getLength(), aStrBuf
.getLength()
14083 OStringBuffer
aStrBuf( arrOUS
[0] );
14084 OString
expVal( aStrBuf
.getStr() );
14085 sal_Int64 input
= -4;
14086 sal_Int16 radix
= 8;
14088 expVal
+= "-"_ostr
;
14089 expVal
+= "4"_ostr
;
14090 aStrBuf
.append( input
, radix
);
14092 CPPUNIT_ASSERT_EQUAL_MESSAGE
14094 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
14095 expVal
, OString(aStrBuf
.getStr())
14097 CPPUNIT_ASSERT_EQUAL_MESSAGE
14099 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
14100 expVal
.getLength(), aStrBuf
.getLength()
14107 OStringBuffer
aStrBuf( arrOUS
[0] );
14108 OString
expVal( aStrBuf
.getStr() );
14109 sal_Int64 input
= -8;
14110 sal_Int16 radix
= 8;
14112 expVal
+= "-"_ostr
;
14113 expVal
+= "10"_ostr
;
14114 aStrBuf
.append( input
, radix
);
14116 CPPUNIT_ASSERT_EQUAL_MESSAGE
14118 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
14119 expVal
, OString(aStrBuf
.getStr())
14121 CPPUNIT_ASSERT_EQUAL_MESSAGE
14123 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
14124 expVal
.getLength(), aStrBuf
.getLength()
14131 OStringBuffer
aStrBuf( arrOUS
[0] );
14132 OString
expVal( aStrBuf
.getStr() );
14133 sal_Int64 input
= -15;
14134 sal_Int16 radix
= 8;
14136 expVal
+= "-"_ostr
;
14137 expVal
+= "17"_ostr
;
14138 aStrBuf
.append( input
, radix
);
14140 CPPUNIT_ASSERT_EQUAL_MESSAGE
14142 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
14143 expVal
, OString(aStrBuf
.getStr())
14145 CPPUNIT_ASSERT_EQUAL_MESSAGE
14147 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[0]",
14148 expVal
.getLength(), aStrBuf
.getLength()
14155 OStringBuffer
aStrBuf( arrOUS
[0] );
14156 OString
expVal( aStrBuf
.getStr() );
14157 sal_Int64 input
= -0;
14158 sal_Int16 radix
= 10;
14160 expVal
+= "0"_ostr
;
14161 aStrBuf
.append( input
, radix
);
14163 CPPUNIT_ASSERT_EQUAL_MESSAGE
14165 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
14166 expVal
, OString(aStrBuf
.getStr())
14168 CPPUNIT_ASSERT_EQUAL_MESSAGE
14170 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
14171 expVal
.getLength(), aStrBuf
.getLength()
14178 OStringBuffer
aStrBuf( arrOUS
[0] );
14179 OString
expVal( aStrBuf
.getStr() );
14180 sal_Int64 input
= -4;
14181 sal_Int16 radix
= 10;
14183 expVal
+= "-"_ostr
;
14184 expVal
+= "4"_ostr
;
14185 aStrBuf
.append( input
, radix
);
14187 CPPUNIT_ASSERT_EQUAL_MESSAGE
14189 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
14190 expVal
, OString(aStrBuf
.getStr())
14192 CPPUNIT_ASSERT_EQUAL_MESSAGE
14194 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
14195 expVal
.getLength(), aStrBuf
.getLength()
14202 OStringBuffer
aStrBuf( arrOUS
[0] );
14203 OString
expVal( aStrBuf
.getStr() );
14204 sal_Int64 input
= -8;
14205 sal_Int16 radix
= 10;
14207 expVal
+= "-"_ostr
;
14208 expVal
+= "8"_ostr
;
14209 aStrBuf
.append( input
, radix
);
14211 CPPUNIT_ASSERT_EQUAL_MESSAGE
14213 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
14214 expVal
, OString(aStrBuf
.getStr())
14216 CPPUNIT_ASSERT_EQUAL_MESSAGE
14218 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
14219 expVal
.getLength(), aStrBuf
.getLength()
14226 OStringBuffer
aStrBuf( arrOUS
[0] );
14227 OString
expVal( aStrBuf
.getStr() );
14228 sal_Int64 input
= -15;
14229 sal_Int16 radix
= 10;
14231 expVal
+= "-"_ostr
;
14232 expVal
+= "15"_ostr
;
14233 aStrBuf
.append( input
, radix
);
14235 CPPUNIT_ASSERT_EQUAL_MESSAGE
14237 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
14238 expVal
, OString(aStrBuf
.getStr())
14240 CPPUNIT_ASSERT_EQUAL_MESSAGE
14242 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[0]",
14243 expVal
.getLength(), aStrBuf
.getLength()
14250 OStringBuffer
aStrBuf( arrOUS
[0] );
14251 OString
expVal( aStrBuf
.getStr() );
14252 sal_Int64 input
= -0;
14253 sal_Int16 radix
= 16;
14255 expVal
+= "0"_ostr
;
14256 aStrBuf
.append( input
, radix
);
14258 CPPUNIT_ASSERT_EQUAL_MESSAGE
14260 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
14261 expVal
, OString(aStrBuf
.getStr())
14263 CPPUNIT_ASSERT_EQUAL_MESSAGE
14265 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
14266 expVal
.getLength(), aStrBuf
.getLength()
14273 OStringBuffer
aStrBuf( arrOUS
[0] );
14274 OString
expVal( aStrBuf
.getStr() );
14275 sal_Int64 input
= -4;
14276 sal_Int16 radix
= 16;
14278 expVal
+= "-"_ostr
;
14279 expVal
+= "4"_ostr
;
14280 aStrBuf
.append( input
, radix
);
14282 CPPUNIT_ASSERT_EQUAL_MESSAGE
14284 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
14285 expVal
, OString(aStrBuf
.getStr())
14287 CPPUNIT_ASSERT_EQUAL_MESSAGE
14289 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
14290 expVal
.getLength(), aStrBuf
.getLength()
14297 OStringBuffer
aStrBuf( arrOUS
[0] );
14298 OString
expVal( aStrBuf
.getStr() );
14299 sal_Int64 input
= -8;
14300 sal_Int16 radix
= 16;
14302 expVal
+= "-"_ostr
;
14303 expVal
+= "8"_ostr
;
14304 aStrBuf
.append( input
, radix
);
14306 CPPUNIT_ASSERT_EQUAL_MESSAGE
14308 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
14309 expVal
, OString(aStrBuf
.getStr())
14311 CPPUNIT_ASSERT_EQUAL_MESSAGE
14313 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
14314 expVal
.getLength(), aStrBuf
.getLength()
14321 OStringBuffer
aStrBuf( arrOUS
[0] );
14322 OString
expVal( aStrBuf
.getStr() );
14323 sal_Int64 input
= -15;
14324 sal_Int16 radix
= 16;
14326 expVal
+= "-"_ostr
;
14327 expVal
+= "f"_ostr
;
14328 aStrBuf
.append( input
, radix
);
14330 CPPUNIT_ASSERT_EQUAL_MESSAGE
14332 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
14333 expVal
, OString(aStrBuf
.getStr())
14335 CPPUNIT_ASSERT_EQUAL_MESSAGE
14337 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[0]",
14338 expVal
.getLength(), aStrBuf
.getLength()
14345 OStringBuffer
aStrBuf( arrOUS
[0] );
14346 OString
expVal( aStrBuf
.getStr() );
14347 sal_Int64 input
= -0;
14348 sal_Int16 radix
= 36;
14350 expVal
+= "0"_ostr
;
14351 aStrBuf
.append( input
, radix
);
14353 CPPUNIT_ASSERT_EQUAL_MESSAGE
14355 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
14356 expVal
, OString(aStrBuf
.getStr())
14358 CPPUNIT_ASSERT_EQUAL_MESSAGE
14360 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
14361 expVal
.getLength(), aStrBuf
.getLength()
14368 OStringBuffer
aStrBuf( arrOUS
[0] );
14369 OString
expVal( aStrBuf
.getStr() );
14370 sal_Int64 input
= -4;
14371 sal_Int16 radix
= 36;
14373 expVal
+= "-"_ostr
;
14374 expVal
+= "4"_ostr
;
14375 aStrBuf
.append( input
, radix
);
14377 CPPUNIT_ASSERT_EQUAL_MESSAGE
14379 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
14380 expVal
, OString(aStrBuf
.getStr())
14382 CPPUNIT_ASSERT_EQUAL_MESSAGE
14384 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
14385 expVal
.getLength(), aStrBuf
.getLength()
14392 OStringBuffer
aStrBuf( arrOUS
[0] );
14393 OString
expVal( aStrBuf
.getStr() );
14394 sal_Int64 input
= -8;
14395 sal_Int16 radix
= 36;
14397 expVal
+= "-"_ostr
;
14398 expVal
+= "8"_ostr
;
14399 aStrBuf
.append( input
, radix
);
14401 CPPUNIT_ASSERT_EQUAL_MESSAGE
14403 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
14404 expVal
, OString(aStrBuf
.getStr())
14406 CPPUNIT_ASSERT_EQUAL_MESSAGE
14408 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
14409 expVal
.getLength(), aStrBuf
.getLength()
14416 OStringBuffer
aStrBuf( arrOUS
[0] );
14417 OString
expVal( aStrBuf
.getStr() );
14418 sal_Int64 input
= -35;
14419 sal_Int16 radix
= 36;
14421 expVal
+= "-"_ostr
;
14422 expVal
+= "z"_ostr
;
14423 aStrBuf
.append( input
, radix
);
14425 CPPUNIT_ASSERT_EQUAL_MESSAGE
14427 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
14428 expVal
, OString(aStrBuf
.getStr())
14430 CPPUNIT_ASSERT_EQUAL_MESSAGE
14432 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[0]",
14433 expVal
.getLength(), aStrBuf
.getLength()
14440 OStringBuffer
aStrBuf( arrOUS
[1] );
14441 OString
expVal( aStrBuf
.getStr() );
14442 sal_Int64 input
= -0;
14443 sal_Int16 radix
= 2;
14445 expVal
+= "0"_ostr
;
14446 aStrBuf
.append( input
, radix
);
14448 CPPUNIT_ASSERT_EQUAL_MESSAGE
14450 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
14451 expVal
, OString(aStrBuf
.getStr())
14453 CPPUNIT_ASSERT_EQUAL_MESSAGE
14455 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
14456 expVal
.getLength(), aStrBuf
.getLength()
14463 OStringBuffer
aStrBuf( arrOUS
[1] );
14464 OString
expVal( aStrBuf
.getStr() );
14465 sal_Int64 input
= -4;
14466 sal_Int16 radix
= 2;
14468 expVal
+= "-"_ostr
;
14469 expVal
+= "100"_ostr
;
14470 aStrBuf
.append( input
, radix
);
14472 CPPUNIT_ASSERT_EQUAL_MESSAGE
14474 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
14475 expVal
, OString(aStrBuf
.getStr())
14477 CPPUNIT_ASSERT_EQUAL_MESSAGE
14479 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
14480 expVal
.getLength(), aStrBuf
.getLength()
14487 OStringBuffer
aStrBuf( arrOUS
[1] );
14488 OString
expVal( aStrBuf
.getStr() );
14489 sal_Int64 input
= -8;
14490 sal_Int16 radix
= 2;
14492 expVal
+= "-"_ostr
;
14493 expVal
+= "1000"_ostr
;
14494 aStrBuf
.append( input
, radix
);
14496 CPPUNIT_ASSERT_EQUAL_MESSAGE
14498 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
14499 expVal
, OString(aStrBuf
.getStr())
14501 CPPUNIT_ASSERT_EQUAL_MESSAGE
14503 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
14504 expVal
.getLength(), aStrBuf
.getLength()
14511 OStringBuffer
aStrBuf( arrOUS
[1] );
14512 OString
expVal( aStrBuf
.getStr() );
14513 sal_Int64 input
= -15;
14514 sal_Int16 radix
= 2;
14516 expVal
+= "-"_ostr
;
14517 expVal
+= "1111"_ostr
;
14518 aStrBuf
.append( input
, radix
);
14520 CPPUNIT_ASSERT_EQUAL_MESSAGE
14522 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
14523 expVal
, OString(aStrBuf
.getStr())
14525 CPPUNIT_ASSERT_EQUAL_MESSAGE
14527 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[1]",
14528 expVal
.getLength(), aStrBuf
.getLength()
14535 OStringBuffer
aStrBuf( arrOUS
[1] );
14536 OString
expVal( aStrBuf
.getStr() );
14537 sal_Int64 input
= -0;
14538 sal_Int16 radix
= 8;
14540 expVal
+= "0"_ostr
;
14541 aStrBuf
.append( input
, radix
);
14543 CPPUNIT_ASSERT_EQUAL_MESSAGE
14545 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
14546 expVal
, OString(aStrBuf
.getStr())
14548 CPPUNIT_ASSERT_EQUAL_MESSAGE
14550 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
14551 expVal
.getLength(), aStrBuf
.getLength()
14558 OStringBuffer
aStrBuf( arrOUS
[1] );
14559 OString
expVal( aStrBuf
.getStr() );
14560 sal_Int64 input
= -4;
14561 sal_Int16 radix
= 8;
14563 expVal
+= "-"_ostr
;
14564 expVal
+= "4"_ostr
;
14565 aStrBuf
.append( input
, radix
);
14567 CPPUNIT_ASSERT_EQUAL_MESSAGE
14569 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
14570 expVal
, OString(aStrBuf
.getStr())
14572 CPPUNIT_ASSERT_EQUAL_MESSAGE
14574 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
14575 expVal
.getLength(), aStrBuf
.getLength()
14582 OStringBuffer
aStrBuf( arrOUS
[1] );
14583 OString
expVal( aStrBuf
.getStr() );
14584 sal_Int64 input
= -8;
14585 sal_Int16 radix
= 8;
14587 expVal
+= "-"_ostr
;
14588 expVal
+= "10"_ostr
;
14589 aStrBuf
.append( input
, radix
);
14591 CPPUNIT_ASSERT_EQUAL_MESSAGE
14593 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
14594 expVal
, OString(aStrBuf
.getStr())
14596 CPPUNIT_ASSERT_EQUAL_MESSAGE
14598 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
14599 expVal
.getLength(), aStrBuf
.getLength()
14606 OStringBuffer
aStrBuf( arrOUS
[1] );
14607 OString
expVal( aStrBuf
.getStr() );
14608 sal_Int64 input
= -15;
14609 sal_Int16 radix
= 8;
14611 expVal
+= "-"_ostr
;
14612 expVal
+= "17"_ostr
;
14613 aStrBuf
.append( input
, radix
);
14615 CPPUNIT_ASSERT_EQUAL_MESSAGE
14617 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
14618 expVal
, OString(aStrBuf
.getStr())
14620 CPPUNIT_ASSERT_EQUAL_MESSAGE
14622 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[1]",
14623 expVal
.getLength(), aStrBuf
.getLength()
14630 OStringBuffer
aStrBuf( arrOUS
[1] );
14631 OString
expVal( aStrBuf
.getStr() );
14632 sal_Int64 input
= -0;
14633 sal_Int16 radix
= 10;
14635 expVal
+= "0"_ostr
;
14636 aStrBuf
.append( input
, radix
);
14638 CPPUNIT_ASSERT_EQUAL_MESSAGE
14640 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
14641 expVal
, OString(aStrBuf
.getStr())
14643 CPPUNIT_ASSERT_EQUAL_MESSAGE
14645 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
14646 expVal
.getLength(), aStrBuf
.getLength()
14653 OStringBuffer
aStrBuf( arrOUS
[1] );
14654 OString
expVal( aStrBuf
.getStr() );
14655 sal_Int64 input
= -4;
14656 sal_Int16 radix
= 10;
14658 expVal
+= "-"_ostr
;
14659 expVal
+= "4"_ostr
;
14660 aStrBuf
.append( input
, radix
);
14662 CPPUNIT_ASSERT_EQUAL_MESSAGE
14664 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
14665 expVal
, OString(aStrBuf
.getStr())
14667 CPPUNIT_ASSERT_EQUAL_MESSAGE
14669 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
14670 expVal
.getLength(), aStrBuf
.getLength()
14677 OStringBuffer
aStrBuf( arrOUS
[1] );
14678 OString
expVal( aStrBuf
.getStr() );
14679 sal_Int64 input
= -8;
14680 sal_Int16 radix
= 10;
14682 expVal
+= "-"_ostr
;
14683 expVal
+= "8"_ostr
;
14684 aStrBuf
.append( input
, radix
);
14686 CPPUNIT_ASSERT_EQUAL_MESSAGE
14688 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
14689 expVal
, OString(aStrBuf
.getStr())
14691 CPPUNIT_ASSERT_EQUAL_MESSAGE
14693 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
14694 expVal
.getLength(), aStrBuf
.getLength()
14701 OStringBuffer
aStrBuf( arrOUS
[1] );
14702 OString
expVal( aStrBuf
.getStr() );
14703 sal_Int64 input
= -15;
14704 sal_Int16 radix
= 10;
14706 expVal
+= "-"_ostr
;
14707 expVal
+= "15"_ostr
;
14708 aStrBuf
.append( input
, radix
);
14710 CPPUNIT_ASSERT_EQUAL_MESSAGE
14712 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
14713 expVal
, OString(aStrBuf
.getStr())
14715 CPPUNIT_ASSERT_EQUAL_MESSAGE
14717 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[1]",
14718 expVal
.getLength(), aStrBuf
.getLength()
14725 OStringBuffer
aStrBuf( arrOUS
[1] );
14726 OString
expVal( aStrBuf
.getStr() );
14727 sal_Int64 input
= -0;
14728 sal_Int16 radix
= 16;
14730 expVal
+= "0"_ostr
;
14731 aStrBuf
.append( input
, radix
);
14733 CPPUNIT_ASSERT_EQUAL_MESSAGE
14735 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
14736 expVal
, OString(aStrBuf
.getStr())
14738 CPPUNIT_ASSERT_EQUAL_MESSAGE
14740 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
14741 expVal
.getLength(), aStrBuf
.getLength()
14748 OStringBuffer
aStrBuf( arrOUS
[1] );
14749 OString
expVal( aStrBuf
.getStr() );
14750 sal_Int64 input
= -4;
14751 sal_Int16 radix
= 16;
14753 expVal
+= "-"_ostr
;
14754 expVal
+= "4"_ostr
;
14755 aStrBuf
.append( input
, radix
);
14757 CPPUNIT_ASSERT_EQUAL_MESSAGE
14759 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
14760 expVal
, OString(aStrBuf
.getStr())
14762 CPPUNIT_ASSERT_EQUAL_MESSAGE
14764 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
14765 expVal
.getLength(), aStrBuf
.getLength()
14772 OStringBuffer
aStrBuf( arrOUS
[1] );
14773 OString
expVal( aStrBuf
.getStr() );
14774 sal_Int64 input
= -8;
14775 sal_Int16 radix
= 16;
14777 expVal
+= "-"_ostr
;
14778 expVal
+= "8"_ostr
;
14779 aStrBuf
.append( input
, radix
);
14781 CPPUNIT_ASSERT_EQUAL_MESSAGE
14783 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
14784 expVal
, OString(aStrBuf
.getStr())
14786 CPPUNIT_ASSERT_EQUAL_MESSAGE
14788 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
14789 expVal
.getLength(), aStrBuf
.getLength()
14796 OStringBuffer
aStrBuf( arrOUS
[1] );
14797 OString
expVal( aStrBuf
.getStr() );
14798 sal_Int64 input
= -15;
14799 sal_Int16 radix
= 16;
14801 expVal
+= "-"_ostr
;
14802 expVal
+= "f"_ostr
;
14803 aStrBuf
.append( input
, radix
);
14805 CPPUNIT_ASSERT_EQUAL_MESSAGE
14807 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
14808 expVal
, OString(aStrBuf
.getStr())
14810 CPPUNIT_ASSERT_EQUAL_MESSAGE
14812 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[1]",
14813 expVal
.getLength(), aStrBuf
.getLength()
14820 OStringBuffer
aStrBuf( arrOUS
[1] );
14821 OString
expVal( aStrBuf
.getStr() );
14822 sal_Int64 input
= -0;
14823 sal_Int16 radix
= 36;
14825 expVal
+= "0"_ostr
;
14826 aStrBuf
.append( input
, radix
);
14828 CPPUNIT_ASSERT_EQUAL_MESSAGE
14830 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
14831 expVal
, OString(aStrBuf
.getStr())
14833 CPPUNIT_ASSERT_EQUAL_MESSAGE
14835 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
14836 expVal
.getLength(), aStrBuf
.getLength()
14843 OStringBuffer
aStrBuf( arrOUS
[1] );
14844 OString
expVal( aStrBuf
.getStr() );
14845 sal_Int64 input
= -4;
14846 sal_Int16 radix
= 36;
14848 expVal
+= "-"_ostr
;
14849 expVal
+= "4"_ostr
;
14850 aStrBuf
.append( input
, radix
);
14852 CPPUNIT_ASSERT_EQUAL_MESSAGE
14854 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
14855 expVal
, OString(aStrBuf
.getStr())
14857 CPPUNIT_ASSERT_EQUAL_MESSAGE
14859 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
14860 expVal
.getLength(), aStrBuf
.getLength()
14867 OStringBuffer
aStrBuf( arrOUS
[1] );
14868 OString
expVal( aStrBuf
.getStr() );
14869 sal_Int64 input
= -8;
14870 sal_Int16 radix
= 36;
14872 expVal
+= "-"_ostr
;
14873 expVal
+= "8"_ostr
;
14874 aStrBuf
.append( input
, radix
);
14876 CPPUNIT_ASSERT_EQUAL_MESSAGE
14878 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
14879 expVal
, OString(aStrBuf
.getStr())
14881 CPPUNIT_ASSERT_EQUAL_MESSAGE
14883 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
14884 expVal
.getLength(), aStrBuf
.getLength()
14891 OStringBuffer
aStrBuf( arrOUS
[1] );
14892 OString
expVal( aStrBuf
.getStr() );
14893 sal_Int64 input
= -35;
14894 sal_Int16 radix
= 36;
14896 expVal
+= "-"_ostr
;
14897 expVal
+= "z"_ostr
;
14898 aStrBuf
.append( input
, radix
);
14900 CPPUNIT_ASSERT_EQUAL_MESSAGE
14902 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
14903 expVal
, OString(aStrBuf
.getStr())
14905 CPPUNIT_ASSERT_EQUAL_MESSAGE
14907 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[1]",
14908 expVal
.getLength(), aStrBuf
.getLength()
14915 OStringBuffer
aStrBuf( arrOUS
[2] );
14916 OString
expVal( aStrBuf
.getStr() );
14917 sal_Int64 input
= -0;
14918 sal_Int16 radix
= 2;
14920 expVal
+= "0"_ostr
;
14921 aStrBuf
.append( input
, radix
);
14923 CPPUNIT_ASSERT_EQUAL_MESSAGE
14925 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
14926 expVal
, OString(aStrBuf
.getStr())
14928 CPPUNIT_ASSERT_EQUAL_MESSAGE
14930 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
14931 expVal
.getLength(), aStrBuf
.getLength()
14938 OStringBuffer
aStrBuf( arrOUS
[2] );
14939 OString
expVal( aStrBuf
.getStr() );
14940 sal_Int64 input
= -4;
14941 sal_Int16 radix
= 2;
14943 expVal
+= "-"_ostr
;
14944 expVal
+= "100"_ostr
;
14945 aStrBuf
.append( input
, radix
);
14947 CPPUNIT_ASSERT_EQUAL_MESSAGE
14949 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
14950 expVal
, OString(aStrBuf
.getStr())
14952 CPPUNIT_ASSERT_EQUAL_MESSAGE
14954 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
14955 expVal
.getLength(), aStrBuf
.getLength()
14962 OStringBuffer
aStrBuf( arrOUS
[2] );
14963 OString
expVal( aStrBuf
.getStr() );
14964 sal_Int64 input
= -8;
14965 sal_Int16 radix
= 2;
14967 expVal
+= "-"_ostr
;
14968 expVal
+= "1000"_ostr
;
14969 aStrBuf
.append( input
, radix
);
14971 CPPUNIT_ASSERT_EQUAL_MESSAGE
14973 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
14974 expVal
, OString(aStrBuf
.getStr())
14976 CPPUNIT_ASSERT_EQUAL_MESSAGE
14978 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
14979 expVal
.getLength(), aStrBuf
.getLength()
14986 OStringBuffer
aStrBuf( arrOUS
[2] );
14987 OString
expVal( aStrBuf
.getStr() );
14988 sal_Int64 input
= -15;
14989 sal_Int16 radix
= 2;
14991 expVal
+= "-"_ostr
;
14992 expVal
+= "1111"_ostr
;
14993 aStrBuf
.append( input
, radix
);
14995 CPPUNIT_ASSERT_EQUAL_MESSAGE
14997 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
14998 expVal
, OString(aStrBuf
.getStr())
15000 CPPUNIT_ASSERT_EQUAL_MESSAGE
15002 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[2]",
15003 expVal
.getLength(), aStrBuf
.getLength()
15010 OStringBuffer
aStrBuf( arrOUS
[2] );
15011 OString
expVal( aStrBuf
.getStr() );
15012 sal_Int64 input
= -0;
15013 sal_Int16 radix
= 8;
15015 expVal
+= "0"_ostr
;
15016 aStrBuf
.append( input
, radix
);
15018 CPPUNIT_ASSERT_EQUAL_MESSAGE
15020 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
15021 expVal
, OString(aStrBuf
.getStr())
15023 CPPUNIT_ASSERT_EQUAL_MESSAGE
15025 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
15026 expVal
.getLength(), aStrBuf
.getLength()
15033 OStringBuffer
aStrBuf( arrOUS
[2] );
15034 OString
expVal( aStrBuf
.getStr() );
15035 sal_Int64 input
= -4;
15036 sal_Int16 radix
= 8;
15038 expVal
+= "-"_ostr
;
15039 expVal
+= "4"_ostr
;
15040 aStrBuf
.append( input
, radix
);
15042 CPPUNIT_ASSERT_EQUAL_MESSAGE
15044 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
15045 expVal
, OString(aStrBuf
.getStr())
15047 CPPUNIT_ASSERT_EQUAL_MESSAGE
15049 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
15050 expVal
.getLength(), aStrBuf
.getLength()
15057 OStringBuffer
aStrBuf( arrOUS
[2] );
15058 OString
expVal( aStrBuf
.getStr() );
15059 sal_Int64 input
= -8;
15060 sal_Int16 radix
= 8;
15062 expVal
+= "-"_ostr
;
15063 expVal
+= "10"_ostr
;
15064 aStrBuf
.append( input
, radix
);
15066 CPPUNIT_ASSERT_EQUAL_MESSAGE
15068 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
15069 expVal
, OString(aStrBuf
.getStr())
15071 CPPUNIT_ASSERT_EQUAL_MESSAGE
15073 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
15074 expVal
.getLength(), aStrBuf
.getLength()
15081 OStringBuffer
aStrBuf( arrOUS
[2] );
15082 OString
expVal( aStrBuf
.getStr() );
15083 sal_Int64 input
= -15;
15084 sal_Int16 radix
= 8;
15086 expVal
+= "-"_ostr
;
15087 expVal
+= "17"_ostr
;
15088 aStrBuf
.append( input
, radix
);
15090 CPPUNIT_ASSERT_EQUAL_MESSAGE
15092 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
15093 expVal
, OString(aStrBuf
.getStr())
15095 CPPUNIT_ASSERT_EQUAL_MESSAGE
15097 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[2]",
15098 expVal
.getLength(), aStrBuf
.getLength()
15105 OStringBuffer
aStrBuf( arrOUS
[2] );
15106 OString
expVal( aStrBuf
.getStr() );
15107 sal_Int64 input
= -0;
15108 sal_Int16 radix
= 10;
15110 expVal
+= "0"_ostr
;
15111 aStrBuf
.append( input
, radix
);
15113 CPPUNIT_ASSERT_EQUAL_MESSAGE
15115 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
15116 expVal
, OString(aStrBuf
.getStr())
15118 CPPUNIT_ASSERT_EQUAL_MESSAGE
15120 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
15121 expVal
.getLength(), aStrBuf
.getLength()
15128 OStringBuffer
aStrBuf( arrOUS
[2] );
15129 OString
expVal( aStrBuf
.getStr() );
15130 sal_Int64 input
= -4;
15131 sal_Int16 radix
= 10;
15133 expVal
+= "-"_ostr
;
15134 expVal
+= "4"_ostr
;
15135 aStrBuf
.append( input
, radix
);
15137 CPPUNIT_ASSERT_EQUAL_MESSAGE
15139 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
15140 expVal
, OString(aStrBuf
.getStr())
15142 CPPUNIT_ASSERT_EQUAL_MESSAGE
15144 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
15145 expVal
.getLength(), aStrBuf
.getLength()
15152 OStringBuffer
aStrBuf( arrOUS
[2] );
15153 OString
expVal( aStrBuf
.getStr() );
15154 sal_Int64 input
= -8;
15155 sal_Int16 radix
= 10;
15157 expVal
+= "-"_ostr
;
15158 expVal
+= "8"_ostr
;
15159 aStrBuf
.append( input
, radix
);
15161 CPPUNIT_ASSERT_EQUAL_MESSAGE
15163 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
15164 expVal
, OString(aStrBuf
.getStr())
15166 CPPUNIT_ASSERT_EQUAL_MESSAGE
15168 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
15169 expVal
.getLength(), aStrBuf
.getLength()
15176 OStringBuffer
aStrBuf( arrOUS
[2] );
15177 OString
expVal( aStrBuf
.getStr() );
15178 sal_Int64 input
= -15;
15179 sal_Int16 radix
= 10;
15181 expVal
+= "-"_ostr
;
15182 expVal
+= "15"_ostr
;
15183 aStrBuf
.append( input
, radix
);
15185 CPPUNIT_ASSERT_EQUAL_MESSAGE
15187 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
15188 expVal
, OString(aStrBuf
.getStr())
15190 CPPUNIT_ASSERT_EQUAL_MESSAGE
15192 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[2]",
15193 expVal
.getLength(), aStrBuf
.getLength()
15200 OStringBuffer
aStrBuf( arrOUS
[2] );
15201 OString
expVal( aStrBuf
.getStr() );
15202 sal_Int64 input
= -0;
15203 sal_Int16 radix
= 16;
15205 expVal
+= "0"_ostr
;
15206 aStrBuf
.append( input
, radix
);
15208 CPPUNIT_ASSERT_EQUAL_MESSAGE
15210 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
15211 expVal
, OString(aStrBuf
.getStr())
15213 CPPUNIT_ASSERT_EQUAL_MESSAGE
15215 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
15216 expVal
.getLength(), aStrBuf
.getLength()
15223 OStringBuffer
aStrBuf( arrOUS
[2] );
15224 OString
expVal( aStrBuf
.getStr() );
15225 sal_Int64 input
= -4;
15226 sal_Int16 radix
= 16;
15228 expVal
+= "-"_ostr
;
15229 expVal
+= "4"_ostr
;
15230 aStrBuf
.append( input
, radix
);
15232 CPPUNIT_ASSERT_EQUAL_MESSAGE
15234 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
15235 expVal
, OString(aStrBuf
.getStr())
15237 CPPUNIT_ASSERT_EQUAL_MESSAGE
15239 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
15240 expVal
.getLength(), aStrBuf
.getLength()
15247 OStringBuffer
aStrBuf( arrOUS
[2] );
15248 OString
expVal( aStrBuf
.getStr() );
15249 sal_Int64 input
= -8;
15250 sal_Int16 radix
= 16;
15252 expVal
+= "-"_ostr
;
15253 expVal
+= "8"_ostr
;
15254 aStrBuf
.append( input
, radix
);
15256 CPPUNIT_ASSERT_EQUAL_MESSAGE
15258 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
15259 expVal
, OString(aStrBuf
.getStr())
15261 CPPUNIT_ASSERT_EQUAL_MESSAGE
15263 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
15264 expVal
.getLength(), aStrBuf
.getLength()
15271 OStringBuffer
aStrBuf( arrOUS
[2] );
15272 OString
expVal( aStrBuf
.getStr() );
15273 sal_Int64 input
= -15;
15274 sal_Int16 radix
= 16;
15276 expVal
+= "-"_ostr
;
15277 expVal
+= "f"_ostr
;
15278 aStrBuf
.append( input
, radix
);
15280 CPPUNIT_ASSERT_EQUAL_MESSAGE
15282 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
15283 expVal
, OString(aStrBuf
.getStr())
15285 CPPUNIT_ASSERT_EQUAL_MESSAGE
15287 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[2]",
15288 expVal
.getLength(), aStrBuf
.getLength()
15295 OStringBuffer
aStrBuf( arrOUS
[2] );
15296 OString
expVal( aStrBuf
.getStr() );
15297 sal_Int64 input
= -0;
15298 sal_Int16 radix
= 36;
15300 expVal
+= "0"_ostr
;
15301 aStrBuf
.append( input
, radix
);
15303 CPPUNIT_ASSERT_EQUAL_MESSAGE
15305 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
15306 expVal
, OString(aStrBuf
.getStr())
15308 CPPUNIT_ASSERT_EQUAL_MESSAGE
15310 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
15311 expVal
.getLength(), aStrBuf
.getLength()
15318 OStringBuffer
aStrBuf( arrOUS
[2] );
15319 OString
expVal( aStrBuf
.getStr() );
15320 sal_Int64 input
= -4;
15321 sal_Int16 radix
= 36;
15323 expVal
+= "-"_ostr
;
15324 expVal
+= "4"_ostr
;
15325 aStrBuf
.append( input
, radix
);
15327 CPPUNIT_ASSERT_EQUAL_MESSAGE
15329 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
15330 expVal
, OString(aStrBuf
.getStr())
15332 CPPUNIT_ASSERT_EQUAL_MESSAGE
15334 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
15335 expVal
.getLength(), aStrBuf
.getLength()
15342 OStringBuffer
aStrBuf( arrOUS
[2] );
15343 OString
expVal( aStrBuf
.getStr() );
15344 sal_Int64 input
= -8;
15345 sal_Int16 radix
= 36;
15347 expVal
+= "-"_ostr
;
15348 expVal
+= "8"_ostr
;
15349 aStrBuf
.append( input
, radix
);
15351 CPPUNIT_ASSERT_EQUAL_MESSAGE
15353 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
15354 expVal
, OString(aStrBuf
.getStr())
15356 CPPUNIT_ASSERT_EQUAL_MESSAGE
15358 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
15359 expVal
.getLength(), aStrBuf
.getLength()
15366 OStringBuffer
aStrBuf( arrOUS
[2] );
15367 OString
expVal( aStrBuf
.getStr() );
15368 sal_Int64 input
= -35;
15369 sal_Int16 radix
= 36;
15371 expVal
+= "-"_ostr
;
15372 expVal
+= "z"_ostr
;
15373 aStrBuf
.append( input
, radix
);
15375 CPPUNIT_ASSERT_EQUAL_MESSAGE
15377 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
15378 expVal
, OString(aStrBuf
.getStr())
15380 CPPUNIT_ASSERT_EQUAL_MESSAGE
15382 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[2]",
15383 expVal
.getLength(), aStrBuf
.getLength()
15390 OStringBuffer
aStrBuf( arrOUS
[3] );
15391 OString
expVal( aStrBuf
.getStr() );
15392 sal_Int64 input
= -0;
15393 sal_Int16 radix
= 2;
15395 expVal
+= "0"_ostr
;
15396 aStrBuf
.append( input
, radix
);
15398 CPPUNIT_ASSERT_EQUAL_MESSAGE
15400 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
15401 expVal
, OString(aStrBuf
.getStr())
15403 CPPUNIT_ASSERT_EQUAL_MESSAGE
15405 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
15406 expVal
.getLength(), aStrBuf
.getLength()
15413 OStringBuffer
aStrBuf( arrOUS
[3] );
15414 OString
expVal( aStrBuf
.getStr() );
15415 sal_Int64 input
= -4;
15416 sal_Int16 radix
= 2;
15418 expVal
+= "-"_ostr
;
15419 expVal
+= "100"_ostr
;
15420 aStrBuf
.append( input
, radix
);
15422 CPPUNIT_ASSERT_EQUAL_MESSAGE
15424 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
15425 expVal
, OString(aStrBuf
.getStr())
15427 CPPUNIT_ASSERT_EQUAL_MESSAGE
15429 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
15430 expVal
.getLength(), aStrBuf
.getLength()
15437 OStringBuffer
aStrBuf( arrOUS
[3] );
15438 OString
expVal( aStrBuf
.getStr() );
15439 sal_Int64 input
= -8;
15440 sal_Int16 radix
= 2;
15442 expVal
+= "-"_ostr
;
15443 expVal
+= "1000"_ostr
;
15444 aStrBuf
.append( input
, radix
);
15446 CPPUNIT_ASSERT_EQUAL_MESSAGE
15448 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
15449 expVal
, OString(aStrBuf
.getStr())
15451 CPPUNIT_ASSERT_EQUAL_MESSAGE
15453 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
15454 expVal
.getLength(), aStrBuf
.getLength()
15461 OStringBuffer
aStrBuf( arrOUS
[3] );
15462 OString
expVal( aStrBuf
.getStr() );
15463 sal_Int64 input
= -15;
15464 sal_Int16 radix
= 2;
15466 expVal
+= "-"_ostr
;
15467 expVal
+= "1111"_ostr
;
15468 aStrBuf
.append( input
, radix
);
15470 CPPUNIT_ASSERT_EQUAL_MESSAGE
15472 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
15473 expVal
, OString(aStrBuf
.getStr())
15475 CPPUNIT_ASSERT_EQUAL_MESSAGE
15477 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[3]",
15478 expVal
.getLength(), aStrBuf
.getLength()
15485 OStringBuffer
aStrBuf( arrOUS
[3] );
15486 OString
expVal( aStrBuf
.getStr() );
15487 sal_Int64 input
= -0;
15488 sal_Int16 radix
= 8;
15490 expVal
+= "0"_ostr
;
15491 aStrBuf
.append( input
, radix
);
15493 CPPUNIT_ASSERT_EQUAL_MESSAGE
15495 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
15496 expVal
, OString(aStrBuf
.getStr())
15498 CPPUNIT_ASSERT_EQUAL_MESSAGE
15500 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
15501 expVal
.getLength(), aStrBuf
.getLength()
15508 OStringBuffer
aStrBuf( arrOUS
[3] );
15509 OString
expVal( aStrBuf
.getStr() );
15510 sal_Int64 input
= -4;
15511 sal_Int16 radix
= 8;
15513 expVal
+= "-"_ostr
;
15514 expVal
+= "4"_ostr
;
15515 aStrBuf
.append( input
, radix
);
15517 CPPUNIT_ASSERT_EQUAL_MESSAGE
15519 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
15520 expVal
, OString(aStrBuf
.getStr())
15522 CPPUNIT_ASSERT_EQUAL_MESSAGE
15524 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
15525 expVal
.getLength(), aStrBuf
.getLength()
15532 OStringBuffer
aStrBuf( arrOUS
[3] );
15533 OString
expVal( aStrBuf
.getStr() );
15534 sal_Int64 input
= -8;
15535 sal_Int16 radix
= 8;
15537 expVal
+= "-"_ostr
;
15538 expVal
+= "10"_ostr
;
15539 aStrBuf
.append( input
, radix
);
15541 CPPUNIT_ASSERT_EQUAL_MESSAGE
15543 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
15544 expVal
, OString(aStrBuf
.getStr())
15546 CPPUNIT_ASSERT_EQUAL_MESSAGE
15548 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
15549 expVal
.getLength(), aStrBuf
.getLength()
15556 OStringBuffer
aStrBuf( arrOUS
[3] );
15557 OString
expVal( aStrBuf
.getStr() );
15558 sal_Int64 input
= -15;
15559 sal_Int16 radix
= 8;
15561 expVal
+= "-"_ostr
;
15562 expVal
+= "17"_ostr
;
15563 aStrBuf
.append( input
, radix
);
15565 CPPUNIT_ASSERT_EQUAL_MESSAGE
15567 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
15568 expVal
, OString(aStrBuf
.getStr())
15570 CPPUNIT_ASSERT_EQUAL_MESSAGE
15572 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[3]",
15573 expVal
.getLength(), aStrBuf
.getLength()
15580 OStringBuffer
aStrBuf( arrOUS
[3] );
15581 OString
expVal( aStrBuf
.getStr() );
15582 sal_Int64 input
= -0;
15583 sal_Int16 radix
= 10;
15585 expVal
+= "0"_ostr
;
15586 aStrBuf
.append( input
, radix
);
15588 CPPUNIT_ASSERT_EQUAL_MESSAGE
15590 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
15591 expVal
, OString(aStrBuf
.getStr())
15593 CPPUNIT_ASSERT_EQUAL_MESSAGE
15595 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
15596 expVal
.getLength(), aStrBuf
.getLength()
15603 OStringBuffer
aStrBuf( arrOUS
[3] );
15604 OString
expVal( aStrBuf
.getStr() );
15605 sal_Int64 input
= -4;
15606 sal_Int16 radix
= 10;
15608 expVal
+= "-"_ostr
;
15609 expVal
+= "4"_ostr
;
15610 aStrBuf
.append( input
, radix
);
15612 CPPUNIT_ASSERT_EQUAL_MESSAGE
15614 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
15615 expVal
, OString(aStrBuf
.getStr())
15617 CPPUNIT_ASSERT_EQUAL_MESSAGE
15619 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
15620 expVal
.getLength(), aStrBuf
.getLength()
15627 OStringBuffer
aStrBuf( arrOUS
[3] );
15628 OString
expVal( aStrBuf
.getStr() );
15629 sal_Int64 input
= -8;
15630 sal_Int16 radix
= 10;
15632 expVal
+= "-"_ostr
;
15633 expVal
+= "8"_ostr
;
15634 aStrBuf
.append( input
, radix
);
15636 CPPUNIT_ASSERT_EQUAL_MESSAGE
15638 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
15639 expVal
, OString(aStrBuf
.getStr())
15641 CPPUNIT_ASSERT_EQUAL_MESSAGE
15643 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
15644 expVal
.getLength(), aStrBuf
.getLength()
15651 OStringBuffer
aStrBuf( arrOUS
[3] );
15652 OString
expVal( aStrBuf
.getStr() );
15653 sal_Int64 input
= -15;
15654 sal_Int16 radix
= 10;
15656 expVal
+= "-"_ostr
;
15657 expVal
+= "15"_ostr
;
15658 aStrBuf
.append( input
, radix
);
15660 CPPUNIT_ASSERT_EQUAL_MESSAGE
15662 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
15663 expVal
, OString(aStrBuf
.getStr())
15665 CPPUNIT_ASSERT_EQUAL_MESSAGE
15667 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[3]",
15668 expVal
.getLength(), aStrBuf
.getLength()
15675 OStringBuffer
aStrBuf( arrOUS
[3] );
15676 OString
expVal( aStrBuf
.getStr() );
15677 sal_Int64 input
= -0;
15678 sal_Int16 radix
= 16;
15680 expVal
+= "0"_ostr
;
15681 aStrBuf
.append( input
, radix
);
15683 CPPUNIT_ASSERT_EQUAL_MESSAGE
15685 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
15686 expVal
, OString(aStrBuf
.getStr())
15688 CPPUNIT_ASSERT_EQUAL_MESSAGE
15690 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
15691 expVal
.getLength(), aStrBuf
.getLength()
15698 OStringBuffer
aStrBuf( arrOUS
[3] );
15699 OString
expVal( aStrBuf
.getStr() );
15700 sal_Int64 input
= -4;
15701 sal_Int16 radix
= 16;
15703 expVal
+= "-"_ostr
;
15704 expVal
+= "4"_ostr
;
15705 aStrBuf
.append( input
, radix
);
15707 CPPUNIT_ASSERT_EQUAL_MESSAGE
15709 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
15710 expVal
, OString(aStrBuf
.getStr())
15712 CPPUNIT_ASSERT_EQUAL_MESSAGE
15714 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
15715 expVal
.getLength(), aStrBuf
.getLength()
15722 OStringBuffer
aStrBuf( arrOUS
[3] );
15723 OString
expVal( aStrBuf
.getStr() );
15724 sal_Int64 input
= -8;
15725 sal_Int16 radix
= 16;
15727 expVal
+= "-"_ostr
;
15728 expVal
+= "8"_ostr
;
15729 aStrBuf
.append( input
, radix
);
15731 CPPUNIT_ASSERT_EQUAL_MESSAGE
15733 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
15734 expVal
, OString(aStrBuf
.getStr())
15736 CPPUNIT_ASSERT_EQUAL_MESSAGE
15738 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
15739 expVal
.getLength(), aStrBuf
.getLength()
15746 OStringBuffer
aStrBuf( arrOUS
[3] );
15747 OString
expVal( aStrBuf
.getStr() );
15748 sal_Int64 input
= -15;
15749 sal_Int16 radix
= 16;
15751 expVal
+= "-"_ostr
;
15752 expVal
+= "f"_ostr
;
15753 aStrBuf
.append( input
, radix
);
15755 CPPUNIT_ASSERT_EQUAL_MESSAGE
15757 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
15758 expVal
, OString(aStrBuf
.getStr())
15760 CPPUNIT_ASSERT_EQUAL_MESSAGE
15762 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[3]",
15763 expVal
.getLength(), aStrBuf
.getLength()
15770 OStringBuffer
aStrBuf( arrOUS
[3] );
15771 OString
expVal( aStrBuf
.getStr() );
15772 sal_Int64 input
= -0;
15773 sal_Int16 radix
= 36;
15775 expVal
+= "0"_ostr
;
15776 aStrBuf
.append( input
, radix
);
15778 CPPUNIT_ASSERT_EQUAL_MESSAGE
15780 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
15781 expVal
, OString(aStrBuf
.getStr())
15783 CPPUNIT_ASSERT_EQUAL_MESSAGE
15785 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
15786 expVal
.getLength(), aStrBuf
.getLength()
15793 OStringBuffer
aStrBuf( arrOUS
[3] );
15794 OString
expVal( aStrBuf
.getStr() );
15795 sal_Int64 input
= -4;
15796 sal_Int16 radix
= 36;
15798 expVal
+= "-"_ostr
;
15799 expVal
+= "4"_ostr
;
15800 aStrBuf
.append( input
, radix
);
15802 CPPUNIT_ASSERT_EQUAL_MESSAGE
15804 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
15805 expVal
, OString(aStrBuf
.getStr())
15807 CPPUNIT_ASSERT_EQUAL_MESSAGE
15809 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
15810 expVal
.getLength(), aStrBuf
.getLength()
15817 OStringBuffer
aStrBuf( arrOUS
[3] );
15818 OString
expVal( aStrBuf
.getStr() );
15819 sal_Int64 input
= -8;
15820 sal_Int16 radix
= 36;
15822 expVal
+= "-"_ostr
;
15823 expVal
+= "8"_ostr
;
15824 aStrBuf
.append( input
, radix
);
15826 CPPUNIT_ASSERT_EQUAL_MESSAGE
15828 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
15829 expVal
, OString(aStrBuf
.getStr())
15831 CPPUNIT_ASSERT_EQUAL_MESSAGE
15833 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
15834 expVal
.getLength(), aStrBuf
.getLength()
15841 OStringBuffer
aStrBuf( arrOUS
[3] );
15842 OString
expVal( aStrBuf
.getStr() );
15843 sal_Int64 input
= -35;
15844 sal_Int16 radix
= 36;
15846 expVal
+= "-"_ostr
;
15847 expVal
+= "z"_ostr
;
15848 aStrBuf
.append( input
, radix
);
15850 CPPUNIT_ASSERT_EQUAL_MESSAGE
15852 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
15853 expVal
, OString(aStrBuf
.getStr())
15855 CPPUNIT_ASSERT_EQUAL_MESSAGE
15857 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[3]",
15858 expVal
.getLength(), aStrBuf
.getLength()
15865 OStringBuffer
aStrBuf( arrOUS
[4] );
15866 OString
expVal( aStrBuf
.getStr() );
15867 sal_Int64 input
= -0;
15868 sal_Int16 radix
= 2;
15870 expVal
+= "0"_ostr
;
15871 aStrBuf
.append( input
, radix
);
15873 CPPUNIT_ASSERT_EQUAL_MESSAGE
15875 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
15876 expVal
, OString(aStrBuf
.getStr())
15878 CPPUNIT_ASSERT_EQUAL_MESSAGE
15880 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
15881 expVal
.getLength(), aStrBuf
.getLength()
15888 OStringBuffer
aStrBuf( arrOUS
[4] );
15889 OString
expVal( aStrBuf
.getStr() );
15890 sal_Int64 input
= -4;
15891 sal_Int16 radix
= 2;
15893 expVal
+= "-"_ostr
;
15894 expVal
+= "100"_ostr
;
15895 aStrBuf
.append( input
, radix
);
15897 CPPUNIT_ASSERT_EQUAL_MESSAGE
15899 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
15900 expVal
, OString(aStrBuf
.getStr())
15902 CPPUNIT_ASSERT_EQUAL_MESSAGE
15904 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
15905 expVal
.getLength(), aStrBuf
.getLength()
15912 OStringBuffer
aStrBuf( arrOUS
[4] );
15913 OString
expVal( aStrBuf
.getStr() );
15914 sal_Int64 input
= -8;
15915 sal_Int16 radix
= 2;
15917 expVal
+= "-"_ostr
;
15918 expVal
+= "1000"_ostr
;
15919 aStrBuf
.append( input
, radix
);
15921 CPPUNIT_ASSERT_EQUAL_MESSAGE
15923 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
15924 expVal
, OString(aStrBuf
.getStr())
15926 CPPUNIT_ASSERT_EQUAL_MESSAGE
15928 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
15929 expVal
.getLength(), aStrBuf
.getLength()
15936 OStringBuffer
aStrBuf( arrOUS
[4] );
15937 OString
expVal( aStrBuf
.getStr() );
15938 sal_Int64 input
= -15;
15939 sal_Int16 radix
= 2;
15941 expVal
+= "-"_ostr
;
15942 expVal
+= "1111"_ostr
;
15943 aStrBuf
.append( input
, radix
);
15945 CPPUNIT_ASSERT_EQUAL_MESSAGE
15947 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
15948 expVal
, OString(aStrBuf
.getStr())
15950 CPPUNIT_ASSERT_EQUAL_MESSAGE
15952 "append(sal_Int64, radix 2)_006_negative_kRadixBinary for arrOUS[4]",
15953 expVal
.getLength(), aStrBuf
.getLength()
15960 OStringBuffer
aStrBuf( arrOUS
[4] );
15961 OString
expVal( aStrBuf
.getStr() );
15962 sal_Int64 input
= -0;
15963 sal_Int16 radix
= 8;
15965 expVal
+= "0"_ostr
;
15966 aStrBuf
.append( input
, radix
);
15968 CPPUNIT_ASSERT_EQUAL_MESSAGE
15970 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
15971 expVal
, OString(aStrBuf
.getStr())
15973 CPPUNIT_ASSERT_EQUAL_MESSAGE
15975 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
15976 expVal
.getLength(), aStrBuf
.getLength()
15983 OStringBuffer
aStrBuf( arrOUS
[4] );
15984 OString
expVal( aStrBuf
.getStr() );
15985 sal_Int64 input
= -4;
15986 sal_Int16 radix
= 8;
15988 expVal
+= "-"_ostr
;
15989 expVal
+= "4"_ostr
;
15990 aStrBuf
.append( input
, radix
);
15992 CPPUNIT_ASSERT_EQUAL_MESSAGE
15994 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
15995 expVal
, OString(aStrBuf
.getStr())
15997 CPPUNIT_ASSERT_EQUAL_MESSAGE
15999 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
16000 expVal
.getLength(), aStrBuf
.getLength()
16007 OStringBuffer
aStrBuf( arrOUS
[4] );
16008 OString
expVal( aStrBuf
.getStr() );
16009 sal_Int64 input
= -8;
16010 sal_Int16 radix
= 8;
16012 expVal
+= "-"_ostr
;
16013 expVal
+= "10"_ostr
;
16014 aStrBuf
.append( input
, radix
);
16016 CPPUNIT_ASSERT_EQUAL_MESSAGE
16018 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
16019 expVal
, OString(aStrBuf
.getStr())
16021 CPPUNIT_ASSERT_EQUAL_MESSAGE
16023 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
16024 expVal
.getLength(), aStrBuf
.getLength()
16031 OStringBuffer
aStrBuf( arrOUS
[4] );
16032 OString
expVal( aStrBuf
.getStr() );
16033 sal_Int64 input
= -15;
16034 sal_Int16 radix
= 8;
16036 expVal
+= "-"_ostr
;
16037 expVal
+= "17"_ostr
;
16038 aStrBuf
.append( input
, radix
);
16040 CPPUNIT_ASSERT_EQUAL_MESSAGE
16042 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
16043 expVal
, OString(aStrBuf
.getStr())
16045 CPPUNIT_ASSERT_EQUAL_MESSAGE
16047 "append(sal_Int64, radix 8)_006_negative_kRadixOctol for arrOUS[4]",
16048 expVal
.getLength(), aStrBuf
.getLength()
16055 OStringBuffer
aStrBuf( arrOUS
[4] );
16056 OString
expVal( aStrBuf
.getStr() );
16057 sal_Int64 input
= -0;
16058 sal_Int16 radix
= 10;
16060 expVal
+= "0"_ostr
;
16061 aStrBuf
.append( input
, radix
);
16063 CPPUNIT_ASSERT_EQUAL_MESSAGE
16065 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
16066 expVal
, OString(aStrBuf
.getStr())
16068 CPPUNIT_ASSERT_EQUAL_MESSAGE
16070 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
16071 expVal
.getLength(), aStrBuf
.getLength()
16078 OStringBuffer
aStrBuf( arrOUS
[4] );
16079 OString
expVal( aStrBuf
.getStr() );
16080 sal_Int64 input
= -4;
16081 sal_Int16 radix
= 10;
16083 expVal
+= "-"_ostr
;
16084 expVal
+= "4"_ostr
;
16085 aStrBuf
.append( input
, radix
);
16087 CPPUNIT_ASSERT_EQUAL_MESSAGE
16089 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
16090 expVal
, OString(aStrBuf
.getStr())
16092 CPPUNIT_ASSERT_EQUAL_MESSAGE
16094 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
16095 expVal
.getLength(), aStrBuf
.getLength()
16102 OStringBuffer
aStrBuf( arrOUS
[4] );
16103 OString
expVal( aStrBuf
.getStr() );
16104 sal_Int64 input
= -8;
16105 sal_Int16 radix
= 10;
16107 expVal
+= "-"_ostr
;
16108 expVal
+= "8"_ostr
;
16109 aStrBuf
.append( input
, radix
);
16111 CPPUNIT_ASSERT_EQUAL_MESSAGE
16113 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
16114 expVal
, OString(aStrBuf
.getStr())
16116 CPPUNIT_ASSERT_EQUAL_MESSAGE
16118 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
16119 expVal
.getLength(), aStrBuf
.getLength()
16126 OStringBuffer
aStrBuf( arrOUS
[4] );
16127 OString
expVal( aStrBuf
.getStr() );
16128 sal_Int64 input
= -15;
16129 sal_Int16 radix
= 10;
16131 expVal
+= "-"_ostr
;
16132 expVal
+= "15"_ostr
;
16133 aStrBuf
.append( input
, radix
);
16135 CPPUNIT_ASSERT_EQUAL_MESSAGE
16137 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
16138 expVal
, OString(aStrBuf
.getStr())
16140 CPPUNIT_ASSERT_EQUAL_MESSAGE
16142 "append(sal_Int64, radix 10)_006_negative_kRadixDecimal for arrOUS[4]",
16143 expVal
.getLength(), aStrBuf
.getLength()
16150 OStringBuffer
aStrBuf( arrOUS
[4] );
16151 OString
expVal( aStrBuf
.getStr() );
16152 sal_Int64 input
= -0;
16153 sal_Int16 radix
= 16;
16155 expVal
+= "0"_ostr
;
16156 aStrBuf
.append( input
, radix
);
16158 CPPUNIT_ASSERT_EQUAL_MESSAGE
16160 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
16161 expVal
, OString(aStrBuf
.getStr())
16163 CPPUNIT_ASSERT_EQUAL_MESSAGE
16165 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
16166 expVal
.getLength(), aStrBuf
.getLength()
16173 OStringBuffer
aStrBuf( arrOUS
[4] );
16174 OString
expVal( aStrBuf
.getStr() );
16175 sal_Int64 input
= -4;
16176 sal_Int16 radix
= 16;
16178 expVal
+= "-"_ostr
;
16179 expVal
+= "4"_ostr
;
16180 aStrBuf
.append( input
, radix
);
16182 CPPUNIT_ASSERT_EQUAL_MESSAGE
16184 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
16185 expVal
, OString(aStrBuf
.getStr())
16187 CPPUNIT_ASSERT_EQUAL_MESSAGE
16189 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
16190 expVal
.getLength(), aStrBuf
.getLength()
16197 OStringBuffer
aStrBuf( arrOUS
[4] );
16198 OString
expVal( aStrBuf
.getStr() );
16199 sal_Int64 input
= -8;
16200 sal_Int16 radix
= 16;
16202 expVal
+= "-"_ostr
;
16203 expVal
+= "8"_ostr
;
16204 aStrBuf
.append( input
, radix
);
16206 CPPUNIT_ASSERT_EQUAL_MESSAGE
16208 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
16209 expVal
, OString(aStrBuf
.getStr())
16211 CPPUNIT_ASSERT_EQUAL_MESSAGE
16213 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
16214 expVal
.getLength(), aStrBuf
.getLength()
16221 OStringBuffer
aStrBuf( arrOUS
[4] );
16222 OString
expVal( aStrBuf
.getStr() );
16223 sal_Int64 input
= -15;
16224 sal_Int16 radix
= 16;
16226 expVal
+= "-"_ostr
;
16227 expVal
+= "f"_ostr
;
16228 aStrBuf
.append( input
, radix
);
16230 CPPUNIT_ASSERT_EQUAL_MESSAGE
16232 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
16233 expVal
, OString(aStrBuf
.getStr())
16235 CPPUNIT_ASSERT_EQUAL_MESSAGE
16237 "append(sal_Int64, radix 16)_006_negative_kRadixHexdecimal for arrOUS[4]",
16238 expVal
.getLength(), aStrBuf
.getLength()
16245 OStringBuffer
aStrBuf( arrOUS
[4] );
16246 OString
expVal( aStrBuf
.getStr() );
16247 sal_Int64 input
= -0;
16248 sal_Int16 radix
= 36;
16250 expVal
+= "0"_ostr
;
16251 aStrBuf
.append( input
, radix
);
16253 CPPUNIT_ASSERT_EQUAL_MESSAGE
16255 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
16256 expVal
, OString(aStrBuf
.getStr())
16258 CPPUNIT_ASSERT_EQUAL_MESSAGE
16260 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
16261 expVal
.getLength(), aStrBuf
.getLength()
16268 OStringBuffer
aStrBuf( arrOUS
[4] );
16269 OString
expVal( aStrBuf
.getStr() );
16270 sal_Int64 input
= -4;
16271 sal_Int16 radix
= 36;
16273 expVal
+= "-"_ostr
;
16274 expVal
+= "4"_ostr
;
16275 aStrBuf
.append( input
, radix
);
16277 CPPUNIT_ASSERT_EQUAL_MESSAGE
16279 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
16280 expVal
, OString(aStrBuf
.getStr())
16282 CPPUNIT_ASSERT_EQUAL_MESSAGE
16284 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
16285 expVal
.getLength(), aStrBuf
.getLength()
16292 OStringBuffer
aStrBuf( arrOUS
[4] );
16293 OString
expVal( aStrBuf
.getStr() );
16294 sal_Int64 input
= -8;
16295 sal_Int16 radix
= 36;
16297 expVal
+= "-"_ostr
;
16298 expVal
+= "8"_ostr
;
16299 aStrBuf
.append( input
, radix
);
16301 CPPUNIT_ASSERT_EQUAL_MESSAGE
16303 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
16304 expVal
, OString(aStrBuf
.getStr())
16306 CPPUNIT_ASSERT_EQUAL_MESSAGE
16308 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
16309 expVal
.getLength(), aStrBuf
.getLength()
16316 OStringBuffer
aStrBuf( arrOUS
[4] );
16317 OString
expVal( aStrBuf
.getStr() );
16318 sal_Int64 input
= -35;
16319 sal_Int16 radix
= 36;
16321 expVal
+= "-"_ostr
;
16322 expVal
+= "z"_ostr
;
16323 aStrBuf
.append( input
, radix
);
16325 CPPUNIT_ASSERT_EQUAL_MESSAGE
16327 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
16328 expVal
, OString(aStrBuf
.getStr())
16330 CPPUNIT_ASSERT_EQUAL_MESSAGE
16332 "append(sal_Int64, radix 36)_006_negative_kRadixBase36 for arrOUS[4]",
16333 expVal
.getLength(), aStrBuf
.getLength()
16338 CPPUNIT_TEST_SUITE( append_007_Int64_Negative
);
16339 CPPUNIT_TEST( append_001
); CPPUNIT_TEST( append_002
);
16340 CPPUNIT_TEST( append_003
); CPPUNIT_TEST( append_004
);
16341 CPPUNIT_TEST( append_005
); CPPUNIT_TEST( append_006
);
16342 CPPUNIT_TEST( append_007
); CPPUNIT_TEST( append_008
);
16343 CPPUNIT_TEST( append_009
); CPPUNIT_TEST( append_010
);
16344 CPPUNIT_TEST( append_011
); CPPUNIT_TEST( append_012
);
16345 CPPUNIT_TEST( append_013
); CPPUNIT_TEST( append_014
);
16346 CPPUNIT_TEST( append_015
); CPPUNIT_TEST( append_016
);
16347 CPPUNIT_TEST( append_017
); CPPUNIT_TEST( append_018
);
16348 CPPUNIT_TEST( append_019
); CPPUNIT_TEST( append_020
);
16349 CPPUNIT_TEST( append_021
); CPPUNIT_TEST( append_022
);
16350 CPPUNIT_TEST( append_023
); CPPUNIT_TEST( append_024
);
16351 CPPUNIT_TEST( append_025
); CPPUNIT_TEST( append_026
);
16352 CPPUNIT_TEST( append_027
); CPPUNIT_TEST( append_028
);
16353 CPPUNIT_TEST( append_029
); CPPUNIT_TEST( append_030
);
16354 CPPUNIT_TEST( append_031
); CPPUNIT_TEST( append_032
);
16355 CPPUNIT_TEST( append_033
); CPPUNIT_TEST( append_034
);
16356 CPPUNIT_TEST( append_035
); CPPUNIT_TEST( append_036
);
16357 CPPUNIT_TEST( append_037
); CPPUNIT_TEST( append_038
);
16358 CPPUNIT_TEST( append_039
); CPPUNIT_TEST( append_040
);
16359 CPPUNIT_TEST( append_041
); CPPUNIT_TEST( append_042
);
16360 CPPUNIT_TEST( append_043
); CPPUNIT_TEST( append_044
);
16361 CPPUNIT_TEST( append_045
); CPPUNIT_TEST( append_046
);
16362 CPPUNIT_TEST( append_047
); CPPUNIT_TEST( append_048
);
16363 CPPUNIT_TEST( append_049
); CPPUNIT_TEST( append_050
);
16364 CPPUNIT_TEST( append_051
); CPPUNIT_TEST( append_052
);
16365 CPPUNIT_TEST( append_053
); CPPUNIT_TEST( append_054
);
16366 CPPUNIT_TEST( append_055
); CPPUNIT_TEST( append_056
);
16367 CPPUNIT_TEST( append_057
); CPPUNIT_TEST( append_058
);
16368 CPPUNIT_TEST( append_059
); CPPUNIT_TEST( append_060
);
16369 CPPUNIT_TEST( append_061
); CPPUNIT_TEST( append_062
);
16370 CPPUNIT_TEST( append_063
); CPPUNIT_TEST( append_064
);
16371 CPPUNIT_TEST( append_065
); CPPUNIT_TEST( append_066
);
16372 CPPUNIT_TEST( append_067
); CPPUNIT_TEST( append_068
);
16373 CPPUNIT_TEST( append_069
); CPPUNIT_TEST( append_070
);
16374 CPPUNIT_TEST( append_071
); CPPUNIT_TEST( append_072
);
16375 CPPUNIT_TEST( append_073
); CPPUNIT_TEST( append_074
);
16376 CPPUNIT_TEST( append_075
); CPPUNIT_TEST( append_076
);
16377 CPPUNIT_TEST( append_077
); CPPUNIT_TEST( append_078
);
16378 CPPUNIT_TEST( append_079
); CPPUNIT_TEST( append_080
);
16379 CPPUNIT_TEST( append_081
); CPPUNIT_TEST( append_082
);
16380 CPPUNIT_TEST( append_083
); CPPUNIT_TEST( append_084
);
16381 CPPUNIT_TEST( append_085
); CPPUNIT_TEST( append_086
);
16382 CPPUNIT_TEST( append_087
); CPPUNIT_TEST( append_088
);
16383 CPPUNIT_TEST( append_089
); CPPUNIT_TEST( append_090
);
16384 CPPUNIT_TEST( append_091
); CPPUNIT_TEST( append_092
);
16385 CPPUNIT_TEST( append_093
); CPPUNIT_TEST( append_094
);
16386 CPPUNIT_TEST( append_095
); CPPUNIT_TEST( append_096
);
16387 CPPUNIT_TEST( append_097
); CPPUNIT_TEST( append_098
);
16388 CPPUNIT_TEST( append_099
); CPPUNIT_TEST( append_100
);
16389 CPPUNIT_TEST_SUITE_END();
16392 class append_007_Int64_defaultParam
: public CppUnit::TestFixture
16397 void setUp() override
16399 arrOUS
[0] = OString( kTestStr7
);
16400 arrOUS
[1] = OString( );
16401 arrOUS
[2] = OString( kTestStr25
);
16402 arrOUS
[3] = ""_ostr
;
16403 arrOUS
[4] = OString( kTestStr28
);
16408 OStringBuffer
aStrBuf( arrOUS
[0] );
16409 OString
expVal( kTestStr59
);
16410 sal_Int64 input
= 11;
16412 aStrBuf
.append( input
);
16414 CPPUNIT_ASSERT_EQUAL_MESSAGE
16416 "input Int64 11 and return OStringBuffer[0]+11",
16417 expVal
, aStrBuf
.toString()
16419 CPPUNIT_ASSERT_EQUAL_MESSAGE
16421 "input Int64 11 and return OStringBuffer[0]+11",
16422 expVal
.getLength(), aStrBuf
.getLength()
16429 OStringBuffer
aStrBuf( arrOUS
[0] );
16430 OString
expVal( kTestStr62
);
16431 sal_Int64 input
= 0;
16433 aStrBuf
.append( input
);
16435 CPPUNIT_ASSERT_EQUAL_MESSAGE
16437 "input Int64 0 and return OStringBuffer[0]+0",
16438 expVal
, aStrBuf
.toString()
16440 CPPUNIT_ASSERT_EQUAL_MESSAGE
16442 "input Int64 0 and return OStringBuffer[0]+0",
16443 expVal
.getLength(), aStrBuf
.getLength()
16450 OStringBuffer
aStrBuf( arrOUS
[0] );
16451 OString
expVal( kTestStr63
);
16452 sal_Int64 input
= -11;
16454 aStrBuf
.append( input
);
16456 CPPUNIT_ASSERT_EQUAL_MESSAGE
16458 "input Int64 -11 and return OStringBuffer[0]+(-11)",
16459 expVal
, aStrBuf
.toString()
16461 CPPUNIT_ASSERT_EQUAL_MESSAGE
16463 "input Int64 -11 and return OStringBuffer[0]+(-11)",
16464 expVal
.getLength(), aStrBuf
.getLength()
16471 OStringBuffer
aStrBuf( arrOUS
[0] );
16472 OString
expVal( kTestStr116
);
16473 sal_Int64 input
= SAL_CONST_INT64(9223372036854775807);
16474 aStrBuf
.append( input
);
16476 CPPUNIT_ASSERT_EQUAL_MESSAGE
16478 "input Int64 9223372036854775807 and return OStringBuffer[0]+9223372036854775807",
16479 expVal
, aStrBuf
.toString()
16481 CPPUNIT_ASSERT_EQUAL_MESSAGE
16483 "input Int64 9223372036854775807 and return OStringBuffer[0]+9223372036854775807",
16484 expVal
.getLength(), aStrBuf
.getLength()
16491 OStringBuffer
aStrBuf( arrOUS
[0] );
16492 OString
expVal( kTestStr117
);
16493 sal_Int64 input
= SAL_MIN_INT64
/*-9223372036854775808*/; // LLA: this is not the same :-( kNonSInt64Max;
16495 aStrBuf
.append( input
);
16497 bool bRes
= expVal
== aStrBuf
.getStr();
16498 CPPUNIT_ASSERT_MESSAGE
16500 "input Int64 -9223372036854775808 and return OStringBuffer[0]+(-9223372036854775808)",
16503 CPPUNIT_ASSERT_EQUAL_MESSAGE
16505 "input Int64 -9223372036854775808 and return OStringBuffer[0]+(-9223372036854775808)",
16506 expVal
.getLength(), aStrBuf
.getLength()
16513 OStringBuffer
aStrBuf( arrOUS
[1] );
16514 OString
expVal( kTestStr60
);
16515 sal_Int64 input
= 11;
16517 aStrBuf
.append( input
);
16519 CPPUNIT_ASSERT_EQUAL_MESSAGE
16521 "input Int64 11 and return OStringBuffer[1]+11",
16522 expVal
, aStrBuf
.toString()
16524 CPPUNIT_ASSERT_EQUAL_MESSAGE
16526 "input Int64 11 and return OStringBuffer[1]+11",
16527 expVal
.getLength(), aStrBuf
.getLength()
16534 OStringBuffer
aStrBuf( arrOUS
[1] );
16535 OString
expVal( kTestStr66
);
16536 sal_Int64 input
= 0;
16538 aStrBuf
.append( input
);
16540 CPPUNIT_ASSERT_EQUAL_MESSAGE
16542 "input Int64 0 and return OStringBuffer[1]+0",
16543 expVal
, aStrBuf
.toString()
16545 CPPUNIT_ASSERT_EQUAL_MESSAGE
16547 "input Int64 0 and return OStringBuffer[1]+0",
16548 expVal
.getLength(), aStrBuf
.getLength()
16555 OStringBuffer
aStrBuf( arrOUS
[1] );
16556 OString
expVal( kTestStr67
);
16557 sal_Int64 input
= -11;
16559 aStrBuf
.append( input
);
16561 CPPUNIT_ASSERT_EQUAL_MESSAGE
16563 "input Int64 -11 and return OStringBuffer[1]+(-11)",
16564 expVal
, aStrBuf
.toString()
16566 CPPUNIT_ASSERT_EQUAL_MESSAGE
16568 "input Int64 -11 and return OStringBuffer[1]+(-11)",
16569 expVal
.getLength(), aStrBuf
.getLength()
16576 OStringBuffer
aStrBuf( arrOUS
[1] );
16577 OString
expVal( kTestStr118
);
16578 sal_Int64 input
= SAL_CONST_INT64(9223372036854775807);
16579 aStrBuf
.append( input
);
16581 CPPUNIT_ASSERT_EQUAL_MESSAGE
16583 "input Int64 9223372036854775807 and return OStringBuffer[1]+9223372036854775807",
16584 expVal
, aStrBuf
.toString()
16586 CPPUNIT_ASSERT_EQUAL_MESSAGE
16588 "input Int64 9223372036854775807 and return OStringBuffer[1]+9223372036854775807",
16589 expVal
.getLength(), aStrBuf
.getLength()
16596 OStringBuffer
aStrBuf( arrOUS
[1] );
16597 OString
expVal( kTestStr119
);
16598 sal_Int64 input
= SAL_MIN_INT64
; // LLA: this is not the same :-( kNonSInt64Max;
16600 aStrBuf
.append( input
);
16602 CPPUNIT_ASSERT_EQUAL_MESSAGE
16604 "input Int64 -9223372036854775808 and return OStringBuffer[1]+(-9223372036854775808)",
16605 expVal
, aStrBuf
.toString()
16607 CPPUNIT_ASSERT_EQUAL_MESSAGE
16609 "input Int64 -9223372036854775808 and return OStringBuffer[1]+(-9223372036854775808)",
16610 expVal
.getLength(), aStrBuf
.getLength()
16617 OStringBuffer
aStrBuf( arrOUS
[2] );
16618 OString
expVal( kTestStr60
);
16619 sal_Int64 input
= 11;
16621 aStrBuf
.append( input
);
16623 CPPUNIT_ASSERT_EQUAL_MESSAGE
16625 "input Int64 11 and return OStringBuffer[2]+11",
16626 expVal
, aStrBuf
.toString()
16628 CPPUNIT_ASSERT_EQUAL_MESSAGE
16630 "input Int64 11 and return OStringBuffer[2]+11",
16631 expVal
.getLength(), aStrBuf
.getLength()
16638 OStringBuffer
aStrBuf( arrOUS
[2] );
16639 OString
expVal( kTestStr66
);
16640 sal_Int64 input
= 0;
16642 aStrBuf
.append( input
);
16644 CPPUNIT_ASSERT_EQUAL_MESSAGE
16646 "input Int64 0 and return OUStringBuffer[2]+0",
16647 expVal
, aStrBuf
.toString()
16649 CPPUNIT_ASSERT_EQUAL_MESSAGE
16651 "input Int64 0 and return OUStringBuffer[2]+0",
16652 expVal
.getLength(), aStrBuf
.getLength()
16659 OStringBuffer
aStrBuf( arrOUS
[2] );
16660 OString
expVal( kTestStr67
);
16661 sal_Int64 input
= -11;
16663 aStrBuf
.append( input
);
16665 CPPUNIT_ASSERT_EQUAL_MESSAGE
16667 "input Int64 -11 and return OUStringBuffer[2]+(-11)",
16668 expVal
, aStrBuf
.toString()
16670 CPPUNIT_ASSERT_EQUAL_MESSAGE
16672 "input Int64 -11 and return OUStringBuffer[2]+(-11)",
16673 expVal
.getLength(), aStrBuf
.getLength()
16680 OStringBuffer
aStrBuf( arrOUS
[2] );
16681 OString
expVal( kTestStr118
);
16682 sal_Int64 input
= SAL_CONST_INT64(9223372036854775807);
16683 aStrBuf
.append( input
);
16685 CPPUNIT_ASSERT_EQUAL_MESSAGE
16687 "input Int64 9223372036854775807 and return OStringBuffer[2]+9223372036854775807",
16688 expVal
, aStrBuf
.toString()
16690 CPPUNIT_ASSERT_EQUAL_MESSAGE
16692 "input Int64 9223372036854775807 and return OStringBuffer[2]+9223372036854775807",
16693 expVal
.getLength(), aStrBuf
.getLength()
16700 OStringBuffer
aStrBuf( arrOUS
[2] );
16701 OString
expVal( kTestStr119
);
16702 sal_Int64 input
= SAL_MIN_INT64
; // LLA: this is not the same :-( kNonSInt64Max;
16704 aStrBuf
.append( input
);
16706 CPPUNIT_ASSERT_EQUAL_MESSAGE
16708 "input Int64 -9223372036854775808 and return OStringBuffer[2]+(-9223372036854775808)",
16709 expVal
, aStrBuf
.toString()
16711 CPPUNIT_ASSERT_EQUAL_MESSAGE
16713 "input Int64 -9223372036854775808 and return OStringBuffer[2]+(-9223372036854775808)",
16714 expVal
.getLength(), aStrBuf
.getLength()
16721 OStringBuffer
aStrBuf( arrOUS
[3] );
16722 OString
expVal( kTestStr60
);
16723 sal_Int64 input
= 11;
16725 aStrBuf
.append( input
);
16727 CPPUNIT_ASSERT_EQUAL_MESSAGE
16729 "input Int64 11 and return OStringBuffer[3]+11",
16730 expVal
, aStrBuf
.toString()
16732 CPPUNIT_ASSERT_EQUAL_MESSAGE
16734 "input Int64 11 and return OStringBuffer[3]+11",
16735 expVal
.getLength(), aStrBuf
.getLength()
16742 OStringBuffer
aStrBuf( arrOUS
[3] );
16743 OString
expVal( kTestStr66
);
16744 sal_Int64 input
= 0;
16746 aStrBuf
.append( input
);
16748 CPPUNIT_ASSERT_EQUAL_MESSAGE
16750 "input Int64 0 and return OStringBuffer[3]+0",
16751 expVal
, aStrBuf
.toString()
16753 CPPUNIT_ASSERT_EQUAL_MESSAGE
16755 "input Int64 0 and return OStringBuffer[3]+0",
16756 expVal
.getLength(), aStrBuf
.getLength()
16763 OStringBuffer
aStrBuf( arrOUS
[3] );
16764 OString
expVal( kTestStr67
);
16765 sal_Int64 input
= -11;
16767 aStrBuf
.append( input
);
16769 CPPUNIT_ASSERT_EQUAL_MESSAGE
16771 "input Int64 -11 and return OStringBuffer[3]+(-11)",
16772 expVal
, aStrBuf
.toString()
16774 CPPUNIT_ASSERT_EQUAL_MESSAGE
16776 "input Int64 -11 and return OStringBuffer[3]+(-11)",
16777 expVal
.getLength(), aStrBuf
.getLength()
16784 OStringBuffer
aStrBuf( arrOUS
[3] );
16785 OString
expVal( kTestStr118
);
16786 sal_Int64 input
= SAL_CONST_INT64(9223372036854775807);
16787 aStrBuf
.append( input
);
16789 CPPUNIT_ASSERT_EQUAL_MESSAGE
16791 "input Int64 9223372036854775807 and return OStringBuffer[3]+9223372036854775807",
16792 expVal
, aStrBuf
.toString()
16794 CPPUNIT_ASSERT_EQUAL_MESSAGE
16796 "input Int64 9223372036854775807 and return OStringBuffer[3]+9223372036854775807",
16797 expVal
.getLength(), aStrBuf
.getLength()
16804 OStringBuffer
aStrBuf( arrOUS
[3] );
16805 OString
expVal( kTestStr119
);
16806 sal_Int64 input
= SAL_MIN_INT64
; // LLA: this is not the same :-( kNonSInt64Max;
16808 aStrBuf
.append( input
);
16810 CPPUNIT_ASSERT_EQUAL_MESSAGE
16812 "input Int64 -9223372036854775808 and return OStringBuffer[3]+(-9223372036854775808)",
16813 expVal
, aStrBuf
.toString()
16815 CPPUNIT_ASSERT_EQUAL_MESSAGE
16817 "input Int64 -9223372036854775808 and return OStringBuffer[3]+(-9223372036854775808)",
16818 expVal
.getLength(), aStrBuf
.getLength()
16825 OStringBuffer
aStrBuf( arrOUS
[4] );
16826 OString
expVal( kTestStr61
);
16827 sal_Int64 input
= 11;
16829 aStrBuf
.append( input
);
16831 CPPUNIT_ASSERT_EQUAL_MESSAGE
16833 "input Int64 11 and return OStringBuffer[4]+11",
16834 expVal
, aStrBuf
.toString()
16836 CPPUNIT_ASSERT_EQUAL_MESSAGE
16838 "input Int64 11 and return OStringBuffer[4]+11",
16839 expVal
.getLength(), aStrBuf
.getLength()
16846 OStringBuffer
aStrBuf( arrOUS
[4] );
16847 OString
expVal( kTestStr70
);
16848 sal_Int64 input
= 0;
16850 aStrBuf
.append( input
);
16852 CPPUNIT_ASSERT_EQUAL_MESSAGE
16854 "input Int64 0 and return OStringBuffer[4]+0",
16855 expVal
, aStrBuf
.toString()
16857 CPPUNIT_ASSERT_EQUAL_MESSAGE
16859 "input Int64 0 and return OStringBuffer[4]+0",
16860 expVal
.getLength(), aStrBuf
.getLength()
16867 OStringBuffer
aStrBuf( arrOUS
[4] );
16868 OString
expVal( kTestStr71
);
16869 sal_Int64 input
= -11;
16871 aStrBuf
.append( input
);
16873 CPPUNIT_ASSERT_EQUAL_MESSAGE
16875 "input Int64 -11 and return OStringBuffer[4]+(-11)",
16876 expVal
, aStrBuf
.toString()
16878 CPPUNIT_ASSERT_EQUAL_MESSAGE
16880 "input Int64 -11 and return OStringBuffer[4]+(-11)",
16881 expVal
.getLength(), aStrBuf
.getLength()
16888 OStringBuffer
aStrBuf( arrOUS
[4] );
16889 OString
expVal( kTestStr120
);
16890 sal_Int64 input
= SAL_CONST_INT64(9223372036854775807);
16891 aStrBuf
.append( input
);
16893 CPPUNIT_ASSERT_EQUAL_MESSAGE
16895 "input Int64 9223372036854775807 and return OStringBuffer[4]+9223372036854775807",
16896 expVal
, aStrBuf
.toString()
16898 CPPUNIT_ASSERT_EQUAL_MESSAGE
16900 "input Int64 9223372036854775807 and return OStringBuffer[4]+9223372036854775807",
16901 expVal
.getLength(), aStrBuf
.getLength()
16908 OStringBuffer
aStrBuf( arrOUS
[4] );
16909 OString
expVal( kTestStr121
);
16910 sal_Int64 input
= SAL_MIN_INT64
; // LLA: this is not the same :-( kNonSInt64Max;
16912 aStrBuf
.append( input
);
16914 CPPUNIT_ASSERT_EQUAL_MESSAGE
16916 "input Int64 -9223372036854775808 and return OStringBuffer[4]+(-9223372036854775808)",
16917 expVal
, aStrBuf
.toString()
16919 CPPUNIT_ASSERT_EQUAL_MESSAGE
16921 "input Int64 -9223372036854775808 and return OStringBuffer[4]+(-9223372036854775808)",
16922 expVal
.getLength(), aStrBuf
.getLength()
16929 OStringBuffer
aStrBuf( kSInt64Max
);
16930 OString
expVal( kTestStr60
);
16931 sal_Int64 input
= 11;
16933 aStrBuf
.append( input
);
16935 CPPUNIT_ASSERT_MESSAGE
16937 "input Int64 11 and return OStringBuffer(kSInt64Max)+11",
16938 (aStrBuf
.toString() == expVal
&&
16939 aStrBuf
.getLength() == expVal
.getLength())
16946 OStringBuffer
aStrBuf( kSInt64Max
);
16947 OString
expVal( kTestStr66
);
16948 sal_Int64 input
= 0;
16950 aStrBuf
.append( input
);
16952 CPPUNIT_ASSERT_MESSAGE
16954 "input Int64 0 and return OStringBuffer(kSInt64Max)+0",
16955 (aStrBuf
.toString() == expVal
&&
16956 aStrBuf
.getLength() == expVal
.getLength())
16963 OStringBuffer
aStrBuf( kSInt64Max
);
16964 OString
expVal( kTestStr67
);
16965 sal_Int64 input
= -11;
16967 aStrBuf
.append( input
);
16969 CPPUNIT_ASSERT_MESSAGE
16971 "input Int64 -11 and return OStringBuffer(kSInt64Max)+(-11)",
16972 (aStrBuf
.toString() == expVal
&&
16973 aStrBuf
.getLength() == expVal
.getLength())
16980 OStringBuffer
aStrBuf( kSInt64Max
);
16981 OString
expVal( kTestStr118
);
16982 sal_Int64 input
= 9223372036854775807;
16984 aStrBuf
.append( input
);
16986 CPPUNIT_ASSERT_MESSAGE
16988 "input Int64 9223372036854775807 and return OStringBuffer(kSInt64Max)+9223372036854775807",
16989 (aStrBuf
.toString() == expVal
&&
16990 aStrBuf
.getLength() == expVal
.getLength())
16997 OStringBuffer
aStrBuf( kSInt64Max
);
16998 OString
expVal( kTestStr119
);
16999 sal_Int64 input
= SAL_MIN_INT64
; // LLA: this is not the same :-( kNonSInt64Max;
17001 aStrBuf
.append( input
);
17003 CPPUNIT_ASSERT_MESSAGE
17005 "input Int64 -9223372036854775808 and return OStringBuffer(kSInt64Max)+(-9223372036854775808)",
17006 (aStrBuf
.toString() == expVal
&&
17007 aStrBuf
.getLength() == expVal
.getLength())
17013 CPPUNIT_TEST_SUITE( append_007_Int64_defaultParam
);
17014 CPPUNIT_TEST( append_001
);
17015 CPPUNIT_TEST( append_002
);
17016 CPPUNIT_TEST( append_003
);
17017 CPPUNIT_TEST( append_004
);
17018 CPPUNIT_TEST( append_005
);
17019 CPPUNIT_TEST( append_006
);
17020 CPPUNIT_TEST( append_007
);
17021 CPPUNIT_TEST( append_008
);
17022 CPPUNIT_TEST( append_009
);
17023 CPPUNIT_TEST( append_010
);
17024 CPPUNIT_TEST( append_011
);
17025 CPPUNIT_TEST( append_012
);
17026 CPPUNIT_TEST( append_013
);
17027 CPPUNIT_TEST( append_014
);
17028 CPPUNIT_TEST( append_015
);
17029 CPPUNIT_TEST( append_016
);
17030 CPPUNIT_TEST( append_017
);
17031 CPPUNIT_TEST( append_018
);
17032 CPPUNIT_TEST( append_019
);
17033 CPPUNIT_TEST( append_020
);
17034 CPPUNIT_TEST( append_021
);
17035 CPPUNIT_TEST( append_022
);
17036 CPPUNIT_TEST( append_023
);
17037 CPPUNIT_TEST( append_024
);
17038 CPPUNIT_TEST( append_025
);
17040 CPPUNIT_TEST( append_026
);
17041 CPPUNIT_TEST( append_027
);
17042 CPPUNIT_TEST( append_028
);
17043 CPPUNIT_TEST( append_029
);
17044 CPPUNIT_TEST( append_030
);
17046 CPPUNIT_TEST_SUITE_END();
17049 // testing the method append( float f )
17051 class checkfloat
: public CppUnit::TestFixture
17054 bool checkIfStrBufContainAtPosTheFloat(OStringBuffer
const& _sStrBuf
, sal_Int32 _nLen
, float _nFloat
)
17056 OString sFloatValue
= OString::number(_nFloat
);
17058 OString
sBufferString(_sStrBuf
.getStr());
17059 sal_Int32 nPos
= sBufferString
.indexOf(sFloatValue
);
17060 return nPos
>= 0 && nPos
== _nLen
;
17064 class append_008_float
: public checkfloat
17069 void setUp() override
17071 arrOUS
[0] = OString( kTestStr7
);
17072 arrOUS
[1] = OString( );
17073 arrOUS
[2] = OString( kTestStr25
);
17074 arrOUS
[3] = ""_ostr
;
17075 arrOUS
[4] = OString( kTestStr28
);
17080 OStringBuffer
aStrBuf( arrOUS
[0] );
17081 float input
= static_cast<float>(atof("3.0"));
17084 // the complex problem is here, that a float value is not really what we write.
17085 // So a 3.0 could also be 3 or 3.0 or 3.0000001 or 2.9999999
17086 // this has to be checked.
17087 sal_Int32 nLen
= aStrBuf
.getLength();
17088 aStrBuf
.append( input
);
17090 CPPUNIT_ASSERT_MESSAGE
17092 "arrOUS[0] append 3.0",
17093 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17100 OStringBuffer
aStrBuf( arrOUS
[0] );
17101 float input
= static_cast<float>(atof("3.5"));
17103 sal_Int32 nLen
= aStrBuf
.getLength();
17104 aStrBuf
.append( input
);
17106 CPPUNIT_ASSERT_MESSAGE
17108 "arrOUS[0] append 3.5",
17109 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17116 OStringBuffer
aStrBuf( arrOUS
[0] );
17117 float input
= static_cast<float>(atof("3.0625"));
17119 sal_Int32 nLen
= aStrBuf
.getLength();
17120 aStrBuf
.append( input
);
17122 CPPUNIT_ASSERT_MESSAGE
17124 "arrOUS[0] append 3.0625",
17125 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17132 OStringBuffer
aStrBuf( arrOUS
[0] );
17133 float input
= static_cast<float>(atof("3.502525"));
17135 sal_Int32 nLen
= aStrBuf
.getLength();
17136 aStrBuf
.append( input
);
17138 CPPUNIT_ASSERT_MESSAGE
17140 "arrOUS[0] append 3.502525",
17141 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17148 OStringBuffer
aStrBuf( arrOUS
[0] );
17149 float input
= static_cast<float>(atof("3.141592"));
17151 sal_Int32 nLen
= aStrBuf
.getLength();
17152 aStrBuf
.append( input
);
17154 CPPUNIT_ASSERT_MESSAGE
17156 "arrOUS[0] append 3.141592",
17157 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17164 OStringBuffer
aStrBuf( arrOUS
[0] );
17165 float input
= static_cast<float>(atof("3.5025255"));
17167 sal_Int32 nLen
= aStrBuf
.getLength();
17168 aStrBuf
.append( input
);
17170 CPPUNIT_ASSERT_MESSAGE
17172 "arrOUS[0] append 3.5025255",
17173 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17180 OStringBuffer
aStrBuf( arrOUS
[0] );
17181 float input
= static_cast<float>(atof("3.00390625"));
17183 sal_Int32 nLen
= aStrBuf
.getLength();
17184 aStrBuf
.append( input
);
17186 CPPUNIT_ASSERT_MESSAGE
17188 "arrOUS[0] append 3.0039062",
17189 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17196 OStringBuffer
aStrBuf( arrOUS
[1] );
17197 float input
= static_cast<float>(atof("3.0"));
17199 sal_Int32 nLen
= aStrBuf
.getLength();
17200 aStrBuf
.append( input
);
17202 CPPUNIT_ASSERT_MESSAGE
17204 "arrOUS[1] append 3.0",
17205 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17212 OStringBuffer
aStrBuf( arrOUS
[1] );
17213 float input
= static_cast<float>(atof("3.5"));
17215 sal_Int32 nLen
= aStrBuf
.getLength();
17216 aStrBuf
.append( input
);
17218 CPPUNIT_ASSERT_MESSAGE
17220 "arrOUS[1] append 3.5",
17221 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17228 OStringBuffer
aStrBuf( arrOUS
[1] );
17229 float input
= static_cast<float>(atof("3.0625"));
17231 sal_Int32 nLen
= aStrBuf
.getLength();
17232 aStrBuf
.append( input
);
17234 CPPUNIT_ASSERT_MESSAGE
17236 "arrOUS[1] append 3.0625",
17237 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17244 OStringBuffer
aStrBuf( arrOUS
[1] );
17245 float input
= static_cast<float>(atof("3.502525"));
17247 sal_Int32 nLen
= aStrBuf
.getLength();
17248 aStrBuf
.append( input
);
17250 CPPUNIT_ASSERT_MESSAGE
17252 "arrOUS[1] append 3.502525",
17253 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17260 OStringBuffer
aStrBuf( arrOUS
[1] );
17261 float input
= static_cast<float>(atof("3.141592"));
17263 sal_Int32 nLen
= aStrBuf
.getLength();
17264 aStrBuf
.append( input
);
17266 CPPUNIT_ASSERT_MESSAGE
17268 "arrOUS[1] append 3.141592",
17269 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17276 OStringBuffer
aStrBuf( arrOUS
[1] );
17277 float input
= static_cast<float>(atof("3.5025255"));
17279 sal_Int32 nLen
= aStrBuf
.getLength();
17280 aStrBuf
.append( input
);
17282 CPPUNIT_ASSERT_MESSAGE
17284 "arrOUS[1] append 3.5025255",
17285 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17292 OStringBuffer
aStrBuf( arrOUS
[1] );
17293 float input
= static_cast<float>(atof("3.00390625"));
17295 sal_Int32 nLen
= aStrBuf
.getLength();
17296 aStrBuf
.append( input
);
17298 CPPUNIT_ASSERT_MESSAGE
17300 "arrOUS[1] append 3.0039062",
17301 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17308 OStringBuffer
aStrBuf( arrOUS
[2] );
17309 float input
= static_cast<float>(atof("3.0"));
17311 sal_Int32 nLen
= aStrBuf
.getLength();
17312 aStrBuf
.append( input
);
17314 CPPUNIT_ASSERT_MESSAGE
17316 "arrOUS[2] append 3.0",
17317 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17324 OStringBuffer
aStrBuf( arrOUS
[2] );
17325 float input
= static_cast<float>(atof("3.5"));
17327 sal_Int32 nLen
= aStrBuf
.getLength();
17328 aStrBuf
.append( input
);
17330 CPPUNIT_ASSERT_MESSAGE
17332 "arrOUS[2] append 3.5",
17333 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17340 OStringBuffer
aStrBuf( arrOUS
[2] );
17341 float input
= static_cast<float>(atof("3.0625"));
17343 sal_Int32 nLen
= aStrBuf
.getLength();
17344 aStrBuf
.append( input
);
17346 CPPUNIT_ASSERT_MESSAGE
17348 "arrOUS[2] append 3.0625",
17349 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17356 OStringBuffer
aStrBuf( arrOUS
[2] );
17357 float input
= static_cast<float>(atof("3.502525"));
17359 sal_Int32 nLen
= aStrBuf
.getLength();
17360 aStrBuf
.append( input
);
17362 CPPUNIT_ASSERT_MESSAGE
17364 "arrOUS[2] append 3.502525",
17365 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17372 OStringBuffer
aStrBuf( arrOUS
[2] );
17373 float input
= static_cast<float>(atof("3.141592"));
17375 sal_Int32 nLen
= aStrBuf
.getLength();
17376 aStrBuf
.append( input
);
17378 CPPUNIT_ASSERT_MESSAGE
17380 "arrOUS[2] append 3.141592",
17381 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17388 OStringBuffer
aStrBuf( arrOUS
[2] );
17389 float input
= static_cast<float>(atof("3.5025255"));
17391 sal_Int32 nLen
= aStrBuf
.getLength();
17392 aStrBuf
.append( input
);
17394 CPPUNIT_ASSERT_MESSAGE
17396 "arrOUS[2] append 3.5025255",
17397 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17404 OStringBuffer
aStrBuf( arrOUS
[2] );
17405 float input
= static_cast<float>(atof("3.00390625"));
17407 sal_Int32 nLen
= aStrBuf
.getLength();
17408 aStrBuf
.append( input
);
17410 CPPUNIT_ASSERT_MESSAGE
17412 "arrOUS[2] append 3.0039062",
17413 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17420 OStringBuffer
aStrBuf( arrOUS
[3] );
17421 float input
= static_cast<float>(atof("3.0"));
17423 sal_Int32 nLen
= aStrBuf
.getLength();
17424 aStrBuf
.append( input
);
17426 CPPUNIT_ASSERT_MESSAGE
17428 "arrOUS[3] append 3.0",
17429 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17436 OStringBuffer
aStrBuf( arrOUS
[3] );
17437 float input
= static_cast<float>(atof("3.5"));
17439 sal_Int32 nLen
= aStrBuf
.getLength();
17440 aStrBuf
.append( input
);
17442 CPPUNIT_ASSERT_MESSAGE
17444 "arrOUS[3] append 3.5",
17445 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17452 OStringBuffer
aStrBuf( arrOUS
[3] );
17453 float input
= static_cast<float>(atof("3.0625"));
17455 sal_Int32 nLen
= aStrBuf
.getLength();
17456 aStrBuf
.append( input
);
17458 CPPUNIT_ASSERT_MESSAGE
17460 "arrOUS[3] append 3.0625",
17461 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17468 OStringBuffer
aStrBuf( arrOUS
[3] );
17469 float input
= static_cast<float>(atof("3.502525"));
17471 sal_Int32 nLen
= aStrBuf
.getLength();
17472 aStrBuf
.append( input
);
17474 CPPUNIT_ASSERT_MESSAGE
17476 "arrOUS[3] append 3.502525",
17477 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17485 OStringBuffer
aStrBuf( kSInt32Max
);
17486 float input
= (float)atof("3.0");
17488 sal_Int32 nLen
= aStrBuf
.getLength();
17489 aStrBuf
.append( input
);
17491 CPPUNIT_ASSERT_MESSAGE
17493 "OStringBuffer( kSInt32Max ) append 3.0",
17494 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17501 OStringBuffer
aStrBuf( kSInt32Max
);
17502 float input
= (float)atof("3.5");
17504 sal_Int32 nLen
= aStrBuf
.getLength();
17505 aStrBuf
.append( input
);
17507 CPPUNIT_ASSERT_MESSAGE
17509 "OStringBuffer( kSInt32Max ) append 3.5",
17510 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17517 OStringBuffer
aStrBuf( kSInt32Max
);
17518 float input
= (float)atof("3.0625");
17520 sal_Int32 nLen
= aStrBuf
.getLength();
17521 aStrBuf
.append( input
);
17523 CPPUNIT_ASSERT_MESSAGE
17525 "OStringBuffer( kSInt32Max ) append 3.0625",
17526 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17533 OStringBuffer
aStrBuf( kSInt32Max
);
17534 float input
= (float)atof("3.502525");
17536 sal_Int32 nLen
= aStrBuf
.getLength();
17537 aStrBuf
.append( input
);
17539 CPPUNIT_ASSERT_MESSAGE
17541 "OStringBuffer( kSInt32Max ) append 3.502525",
17542 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17549 OStringBuffer
aStrBuf( kSInt32Max
);
17550 float input
= (float)atof("3.141592");
17552 sal_Int32 nLen
= aStrBuf
.getLength();
17553 aStrBuf
.append( input
);
17555 CPPUNIT_ASSERT_MESSAGE
17557 "OStringBuffer( kSInt32Max ) append 3.141592",
17558 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17565 OStringBuffer
aStrBuf( kSInt32Max
);
17566 float input
= (float)atof("3.5025255");
17568 sal_Int32 nLen
= aStrBuf
.getLength();
17569 aStrBuf
.append( input
);
17571 CPPUNIT_ASSERT_MESSAGE
17573 "OStringBuffer( kSInt32Max ) append 3.5025255",
17574 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17581 OStringBuffer
aStrBuf( kSInt32Max
);
17582 float input
= (float)atof("3.00390625");
17584 sal_Int32 nLen
= aStrBuf
.getLength();
17585 aStrBuf
.append( input
);
17587 CPPUNIT_ASSERT_MESSAGE
17589 "OStringBuffer( kSInt32Max ) append 3.0039062",
17590 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17596 CPPUNIT_TEST_SUITE( append_008_float
);
17597 CPPUNIT_TEST( append_001
);
17598 CPPUNIT_TEST( append_002
);
17599 CPPUNIT_TEST( append_003
);
17600 CPPUNIT_TEST( append_004
);
17601 CPPUNIT_TEST( append_005
);
17602 CPPUNIT_TEST( append_006
);
17603 CPPUNIT_TEST( append_007
);
17604 CPPUNIT_TEST( append_008
);
17605 CPPUNIT_TEST( append_009
);
17606 CPPUNIT_TEST( append_010
);
17607 CPPUNIT_TEST( append_011
);
17608 CPPUNIT_TEST( append_012
);
17609 CPPUNIT_TEST( append_013
);
17610 CPPUNIT_TEST( append_014
);
17611 CPPUNIT_TEST( append_015
);
17612 CPPUNIT_TEST( append_016
);
17613 CPPUNIT_TEST( append_017
);
17614 CPPUNIT_TEST( append_018
);
17615 CPPUNIT_TEST( append_019
);
17616 CPPUNIT_TEST( append_020
);
17617 CPPUNIT_TEST( append_021
);
17618 CPPUNIT_TEST( append_022
);
17619 CPPUNIT_TEST( append_023
);
17620 CPPUNIT_TEST( append_024
);
17621 CPPUNIT_TEST( append_025
);
17623 CPPUNIT_TEST( append_026
);
17624 CPPUNIT_TEST( append_027
);
17625 CPPUNIT_TEST( append_028
);
17626 CPPUNIT_TEST( append_029
);
17627 CPPUNIT_TEST( append_030
);
17629 CPPUNIT_TEST_SUITE_END();
17632 // testing the method append( float f ) for negative value
17634 class append_008_Float_Negative
: public checkfloat
17639 void setUp() override
17641 arrOUS
[0] = OString( kTestStr7
);
17642 arrOUS
[1] = OString( );
17643 arrOUS
[2] = OString( kTestStr25
);
17644 arrOUS
[3] = ""_ostr
;
17645 arrOUS
[4] = OString( kTestStr28
);
17650 OStringBuffer
aStrBuf( arrOUS
[0] );
17651 float input
= static_cast<float>(atof("-3.0"));
17653 sal_Int32 nLen
= aStrBuf
.getLength();
17654 aStrBuf
.append( input
);
17656 CPPUNIT_ASSERT_MESSAGE
17658 "arrOUS[0] append -3.0",
17659 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17666 OStringBuffer
aStrBuf( arrOUS
[0] );
17667 float input
= static_cast<float>(atof("-3.5"));
17669 sal_Int32 nLen
= aStrBuf
.getLength();
17670 aStrBuf
.append( input
);
17672 CPPUNIT_ASSERT_MESSAGE
17674 "arrOUS[0] append -3.5",
17675 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17682 OStringBuffer
aStrBuf( arrOUS
[0] );
17683 float input
= static_cast<float>(atof("-3.0625"));
17685 sal_Int32 nLen
= aStrBuf
.getLength();
17686 aStrBuf
.append( input
);
17688 CPPUNIT_ASSERT_MESSAGE
17690 "arrOUS[0] append -3.0625",
17691 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17698 OStringBuffer
aStrBuf( arrOUS
[0] );
17699 float input
= static_cast<float>(atof("-3.502525"));
17701 sal_Int32 nLen
= aStrBuf
.getLength();
17702 aStrBuf
.append( input
);
17704 CPPUNIT_ASSERT_MESSAGE
17706 "arrOUS[0] append -3.502525",
17707 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17714 OStringBuffer
aStrBuf( arrOUS
[0] );
17715 float input
= static_cast<float>(atof("-3.141592"));
17717 sal_Int32 nLen
= aStrBuf
.getLength();
17718 aStrBuf
.append( input
);
17720 CPPUNIT_ASSERT_MESSAGE
17722 "arrOUS[0] append -3.141592",
17723 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17730 OStringBuffer
aStrBuf( arrOUS
[0] );
17731 float input
= static_cast<float>(atof("-3.5025255"));
17733 sal_Int32 nLen
= aStrBuf
.getLength();
17734 aStrBuf
.append( input
);
17736 CPPUNIT_ASSERT_MESSAGE
17738 "arrOUS[0] append -3.5025255",
17739 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17746 OStringBuffer
aStrBuf( arrOUS
[0] );
17747 float input
= static_cast<float>(atof("-3.00390625"));
17749 sal_Int32 nLen
= aStrBuf
.getLength();
17750 aStrBuf
.append( input
);
17752 CPPUNIT_ASSERT_MESSAGE
17754 "arrOUS[0] append -3.0039062",
17755 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17762 OStringBuffer
aStrBuf( arrOUS
[1] );
17763 float input
= static_cast<float>(atof("-3.0"));
17765 sal_Int32 nLen
= aStrBuf
.getLength();
17766 aStrBuf
.append( input
);
17768 CPPUNIT_ASSERT_MESSAGE
17770 "arrOUS[1] append -3.0",
17771 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17778 OStringBuffer
aStrBuf( arrOUS
[1] );
17779 float input
= static_cast<float>(atof("-3.5"));
17781 sal_Int32 nLen
= aStrBuf
.getLength();
17782 aStrBuf
.append( input
);
17784 CPPUNIT_ASSERT_MESSAGE
17786 "arrOUS[1] append -3.5",
17787 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17794 OStringBuffer
aStrBuf( arrOUS
[1] );
17795 float input
= static_cast<float>(atof("-3.0625"));
17797 sal_Int32 nLen
= aStrBuf
.getLength();
17798 aStrBuf
.append( input
);
17800 CPPUNIT_ASSERT_MESSAGE
17802 "arrOUS[1] append -3.0625",
17803 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17810 OStringBuffer
aStrBuf( arrOUS
[1] );
17811 float input
= static_cast<float>(atof("-3.502525"));
17813 sal_Int32 nLen
= aStrBuf
.getLength();
17814 aStrBuf
.append( input
);
17816 CPPUNIT_ASSERT_MESSAGE
17818 "arrOUS[1] append -3.502525",
17819 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17826 OStringBuffer
aStrBuf( arrOUS
[1] );
17827 float input
= static_cast<float>(atof("-3.141592"));
17829 sal_Int32 nLen
= aStrBuf
.getLength();
17830 aStrBuf
.append( input
);
17832 CPPUNIT_ASSERT_MESSAGE
17834 "arrOUS[1] append -3.141592",
17835 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17842 OStringBuffer
aStrBuf( arrOUS
[1] );
17843 float input
= static_cast<float>(atof("-3.5025255"));
17845 sal_Int32 nLen
= aStrBuf
.getLength();
17846 aStrBuf
.append( input
);
17848 CPPUNIT_ASSERT_MESSAGE
17850 "arrOUS[1] append -3.5025255",
17851 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17858 OStringBuffer
aStrBuf( arrOUS
[1] );
17859 float input
= static_cast<float>(atof("-3.00390625"));
17861 sal_Int32 nLen
= aStrBuf
.getLength();
17862 aStrBuf
.append( input
);
17864 CPPUNIT_ASSERT_MESSAGE
17866 "arrOUS[1] append -3.0039062",
17867 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17874 OStringBuffer
aStrBuf( arrOUS
[2] );
17875 float input
= static_cast<float>(atof("-3.0"));
17877 sal_Int32 nLen
= aStrBuf
.getLength();
17878 aStrBuf
.append( input
);
17880 CPPUNIT_ASSERT_MESSAGE
17882 "arrOUS[2] append -3.0",
17883 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17890 OStringBuffer
aStrBuf( arrOUS
[2] );
17891 float input
= static_cast<float>(atof("-3.5"));
17893 sal_Int32 nLen
= aStrBuf
.getLength();
17894 aStrBuf
.append( input
);
17896 CPPUNIT_ASSERT_MESSAGE
17898 "arrOUS[2] append -3.5",
17899 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17906 OStringBuffer
aStrBuf( arrOUS
[2] );
17907 float input
= static_cast<float>(atof("-3.0625"));
17909 sal_Int32 nLen
= aStrBuf
.getLength();
17910 aStrBuf
.append( input
);
17912 CPPUNIT_ASSERT_MESSAGE
17914 "arrOUS[2] append -3.0625",
17915 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17922 OStringBuffer
aStrBuf( arrOUS
[2] );
17923 float input
= static_cast<float>(atof("-3.502525"));
17925 sal_Int32 nLen
= aStrBuf
.getLength();
17926 aStrBuf
.append( input
);
17928 CPPUNIT_ASSERT_MESSAGE
17930 "arrOUS[2] append -3.502525",
17931 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17938 OStringBuffer
aStrBuf( arrOUS
[2] );
17939 float input
= static_cast<float>(atof("-3.141592"));
17941 sal_Int32 nLen
= aStrBuf
.getLength();
17942 aStrBuf
.append( input
);
17944 CPPUNIT_ASSERT_MESSAGE
17946 "arrOUS[2] append -3.141592",
17947 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17954 OStringBuffer
aStrBuf( arrOUS
[2] );
17955 float input
= static_cast<float>(atof("-3.5025255"));
17957 sal_Int32 nLen
= aStrBuf
.getLength();
17958 aStrBuf
.append( input
);
17960 CPPUNIT_ASSERT_MESSAGE
17962 "arrOUS[2] append -3.5025255",
17963 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17970 OStringBuffer
aStrBuf( arrOUS
[2] );
17971 float input
= static_cast<float>(atof("-3.00390625"));
17973 sal_Int32 nLen
= aStrBuf
.getLength();
17974 aStrBuf
.append( input
);
17976 CPPUNIT_ASSERT_MESSAGE
17978 "arrOUS[2] append -3.0039062",
17979 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
17986 OStringBuffer
aStrBuf( arrOUS
[3] );
17987 float input
= static_cast<float>(atof("-3.0"));
17989 sal_Int32 nLen
= aStrBuf
.getLength();
17990 aStrBuf
.append( input
);
17992 CPPUNIT_ASSERT_MESSAGE
17994 "arrOUS[3] append -3.0",
17995 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
18002 OStringBuffer
aStrBuf( arrOUS
[3] );
18003 float input
= static_cast<float>(atof("-3.5"));
18005 sal_Int32 nLen
= aStrBuf
.getLength();
18006 aStrBuf
.append( input
);
18008 CPPUNIT_ASSERT_MESSAGE
18010 "arrOUS[3] append -3.5",
18011 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
18018 OStringBuffer
aStrBuf( arrOUS
[3] );
18019 float input
= static_cast<float>(atof("-3.0625"));
18021 sal_Int32 nLen
= aStrBuf
.getLength();
18022 aStrBuf
.append( input
);
18024 CPPUNIT_ASSERT_MESSAGE
18026 "arrOUS[3] append -3.0625",
18027 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
18034 OStringBuffer
aStrBuf( arrOUS
[3] );
18035 float input
= static_cast<float>(atof("-3.502525"));
18037 sal_Int32 nLen
= aStrBuf
.getLength();
18038 aStrBuf
.append( input
);
18040 CPPUNIT_ASSERT_MESSAGE
18042 "arrOUS[3] append -3.502525",
18043 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
18051 OStringBuffer
aStrBuf( kSInt32Max
);
18052 float input
= (float)atof("-3.0");
18054 sal_Int32 nLen
= aStrBuf
.getLength();
18055 aStrBuf
.append( input
);
18057 CPPUNIT_ASSERT_MESSAGE
18059 "OStringBuffer( kSInt32Max ) append -3.0",
18060 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
18067 OStringBuffer
aStrBuf( kSInt32Max
);
18068 float input
= (float)atof("-3.5");
18070 sal_Int32 nLen
= aStrBuf
.getLength();
18071 aStrBuf
.append( input
);
18073 CPPUNIT_ASSERT_MESSAGE
18075 "OStringBuffer( kSInt32Max ) append -3.5",
18076 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
18083 OStringBuffer
aStrBuf( kSInt32Max
);
18084 float input
= (float)atof("-3.0625");
18086 sal_Int32 nLen
= aStrBuf
.getLength();
18087 aStrBuf
.append( input
);
18089 CPPUNIT_ASSERT_MESSAGE
18091 "OStringBuffer( kSInt32Max ) append -3.0625",
18092 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
18099 OStringBuffer
aStrBuf( kSInt32Max
);
18100 float input
= (float)atof("-3.502525");
18102 sal_Int32 nLen
= aStrBuf
.getLength();
18103 aStrBuf
.append( input
);
18105 CPPUNIT_ASSERT_MESSAGE
18107 "OStringBuffer( kSInt32Max ) append -3.502525",
18108 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
18115 OStringBuffer
aStrBuf( kSInt32Max
);
18116 float input
= (float)atof("-3.141592");
18118 sal_Int32 nLen
= aStrBuf
.getLength();
18119 aStrBuf
.append( input
);
18121 CPPUNIT_ASSERT_MESSAGE
18123 "OStringBuffer( kSInt32Max ) append -3.141592",
18124 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
18131 OStringBuffer
aStrBuf( kSInt32Max
);
18132 float input
= (float)atof("-3.5025255");
18134 sal_Int32 nLen
= aStrBuf
.getLength();
18135 aStrBuf
.append( input
);
18137 CPPUNIT_ASSERT_MESSAGE
18139 "OStringBuffer( kSInt32Max ) append -3.5025255",
18140 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
18147 OStringBuffer
aStrBuf( kSInt32Max
);
18148 float input
= (float)atof("-3.00390625");
18150 sal_Int32 nLen
= aStrBuf
.getLength();
18151 aStrBuf
.append( input
);
18153 CPPUNIT_ASSERT_MESSAGE
18155 "OStringBuffer( kSInt32Max ) append -3.0039062",
18156 checkIfStrBufContainAtPosTheFloat(aStrBuf
, nLen
, input
)
18162 CPPUNIT_TEST_SUITE( append_008_Float_Negative
);
18163 CPPUNIT_TEST( append_001
);
18164 CPPUNIT_TEST( append_002
);
18165 CPPUNIT_TEST( append_003
);
18166 CPPUNIT_TEST( append_004
);
18167 CPPUNIT_TEST( append_005
);
18168 CPPUNIT_TEST( append_006
);
18169 CPPUNIT_TEST( append_007
);
18170 CPPUNIT_TEST( append_008
);
18171 CPPUNIT_TEST( append_009
);
18172 CPPUNIT_TEST( append_010
);
18173 CPPUNIT_TEST( append_011
);
18174 CPPUNIT_TEST( append_012
);
18175 CPPUNIT_TEST( append_013
);
18176 CPPUNIT_TEST( append_014
);
18177 CPPUNIT_TEST( append_015
);
18178 CPPUNIT_TEST( append_016
);
18179 CPPUNIT_TEST( append_017
);
18180 CPPUNIT_TEST( append_018
);
18181 CPPUNIT_TEST( append_019
);
18182 CPPUNIT_TEST( append_020
);
18183 CPPUNIT_TEST( append_021
);
18184 CPPUNIT_TEST( append_022
);
18185 CPPUNIT_TEST( append_023
);
18186 CPPUNIT_TEST( append_024
);
18187 CPPUNIT_TEST( append_025
);
18189 CPPUNIT_TEST( append_026
);
18190 CPPUNIT_TEST( append_027
);
18191 CPPUNIT_TEST( append_028
);
18192 CPPUNIT_TEST( append_029
);
18193 CPPUNIT_TEST( append_030
);
18195 CPPUNIT_TEST_SUITE_END();
18198 // testing the method append( double d )
18200 class checkdouble
: public CppUnit::TestFixture
18203 bool checkIfStrBufContainAtPosTheDouble(OStringBuffer
const& _sStrBuf
, sal_Int32 _nLen
, double _nDouble
)
18205 OString sDoubleValue
= OString::number(_nDouble
);
18207 OString
sBufferString(_sStrBuf
.getStr());
18208 sal_Int32 nPos
= sBufferString
.indexOf(sDoubleValue
);
18209 return nPos
>= 0 && nPos
== _nLen
;
18213 class append_009_double
: public checkdouble
18218 void setUp() override
18220 arrOUS
[0] = OString( kTestStr7
);
18221 arrOUS
[1] = OString( );
18222 arrOUS
[2] = OString( kTestStr25
);
18223 arrOUS
[3] = ""_ostr
;
18224 arrOUS
[4] = OString( kTestStr28
);
18229 OStringBuffer
aStrBuf( arrOUS
[0] );
18230 double input
= atof("3.0");
18232 sal_Int32 nLen
= aStrBuf
.getLength();
18233 aStrBuf
.append( input
);
18235 CPPUNIT_ASSERT_MESSAGE
18237 "arrOUS[0] append 3.0",
18238 checkIfStrBufContainAtPosTheDouble(aStrBuf
, nLen
, input
)
18245 OStringBuffer
aStrBuf( arrOUS
[4] );
18246 double input
= atof("3.141592653589793238462643");
18248 sal_Int32 nLen
= aStrBuf
.getLength();
18249 aStrBuf
.append( input
);
18251 CPPUNIT_ASSERT_MESSAGE
18253 "arrOUS[4] append 3.141592653589793238462643",
18254 checkIfStrBufContainAtPosTheDouble(aStrBuf
, nLen
, input
)
18259 CPPUNIT_TEST_SUITE( append_009_double
);
18260 CPPUNIT_TEST( append_001
);
18261 CPPUNIT_TEST( append_035
);
18262 CPPUNIT_TEST_SUITE_END();
18265 // testing the method append( double f ) for negative value
18267 class append_009_Double_Negative
: public checkdouble
18272 void setUp() override
18274 arrOUS
[0] = OString( kTestStr7
);
18275 arrOUS
[1] = OString( );
18276 arrOUS
[2] = OString( kTestStr25
);
18277 arrOUS
[3] = ""_ostr
;
18278 arrOUS
[4] = OString( kTestStr28
);
18283 OStringBuffer
aStrBuf( arrOUS
[0] );
18284 double input
= atof("-3.0");
18286 sal_Int32 nLen
= aStrBuf
.getLength();
18287 aStrBuf
.append( input
);
18289 CPPUNIT_ASSERT_MESSAGE
18291 "arrOUS[0] append -3.0",
18292 checkIfStrBufContainAtPosTheDouble(aStrBuf
, nLen
, input
)
18299 OStringBuffer
aStrBuf( arrOUS
[4] );
18300 double input
= atof("-3.141592653589793238462643");
18302 sal_Int32 nLen
= aStrBuf
.getLength();
18303 aStrBuf
.append( input
);
18305 CPPUNIT_ASSERT_MESSAGE
18307 "arrOUS[4] append -3.141592653589793238462643",
18308 checkIfStrBufContainAtPosTheDouble(aStrBuf
, nLen
, input
)
18313 CPPUNIT_TEST_SUITE( append_009_Double_Negative
);
18314 CPPUNIT_TEST( append_001
);
18315 CPPUNIT_TEST( append_035
);
18316 CPPUNIT_TEST_SUITE_END();
18319 class AppendUninitialized
: public CppUnit::TestFixture
{
18323 void testNonEmpty();
18327 CPPUNIT_TEST_SUITE(AppendUninitialized
);
18328 CPPUNIT_TEST(testEmpty
);
18329 CPPUNIT_TEST(testNonEmpty
);
18330 CPPUNIT_TEST(testZero
);
18331 CPPUNIT_TEST_SUITE_END();
18334 void AppendUninitialized::testEmpty() {
18336 CPPUNIT_ASSERT_EQUAL(sal_Int32(0), s
.getLength());
18337 char * p
= s
.appendUninitialized(5);
18338 CPPUNIT_ASSERT_EQUAL(
18339 static_cast<void const *>(s
.getStr()),
18340 static_cast<void const *>(p
));
18341 CPPUNIT_ASSERT_EQUAL(sal_Int32(5), s
.getLength());
18344 void AppendUninitialized::testNonEmpty() {
18345 OStringBuffer
s("ab");
18346 CPPUNIT_ASSERT_EQUAL(sal_Int32(2), s
.getLength());
18347 char * p
= s
.appendUninitialized(5);
18348 CPPUNIT_ASSERT_EQUAL(
18349 static_cast<void const *>(s
.getStr() + 2),
18350 static_cast<void const *>(p
));
18351 CPPUNIT_ASSERT_EQUAL(sal_Int32(7), s
.getLength());
18354 void AppendUninitialized::testZero() {
18356 char * p
= s
.appendUninitialized(0);
18357 CPPUNIT_ASSERT_EQUAL(
18358 static_cast<void const *>(s
.getStr()),
18359 static_cast<void const *>(p
));
18360 CPPUNIT_ASSERT_EQUAL(sal_Int32(0), s
.getLength());
18362 } // namespace rtl_OStringBuffer
18364 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::ctors
);
18365 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::makeStringAndClear
);
18366 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::getLength
);
18367 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::getCapacity
);
18368 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::ensureCapacity
);
18369 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::setLength
);
18370 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::csuc
);
18371 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::getStr
);
18372 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_001
);
18373 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_002
);
18374 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_003
);
18375 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_004
);
18376 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_005
);
18377 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_006_Int32
);
18378 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_006_Int32_Bounderies
);
18379 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_006_Int32_Negative
);
18380 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_006_Int32_defaultParam
);
18381 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_007_Int64
);
18382 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_007_Int64_Bounderies
);
18383 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_007_Int64_Negative
);
18384 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_007_Int64_defaultParam
);
18385 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_008_float
);
18386 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_008_Float_Negative
);
18387 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_009_double
);
18388 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::append_009_Double_Negative
);
18389 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::AppendUninitialized
);
18390 CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::remove
);
18392 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */