Home | History | Annotate | Download | only in intltest

Lines Matching full:uchar32

121     test3.append((UChar32)0x20402);
123 errln((UnicodeString)"append failed for UChar32, expected \"\\\\ud841\\\\udc02\", got " + prettify(test3));
126 errln(UnicodeString("append or length failed for UChar32, expected 2, got ") + test3.length());
128 test3.append((UChar32)0x0074);
130 errln((UnicodeString)"append failed for UChar32, expected \"\\\\uD841\\\\uDC02t\", got " + prettify(test3));
133 errln((UnicodeString)"append or length failed for UChar32, expected 2, got " + test3.length());
136 // test some UChar32 overloads
137 if( test3.setTo((UChar32)0x10330).length() != 2 ||
138 test3.insert(0, (UChar32)0x20100).length() != 4 ||
139 test3.replace(2, 2, (UChar32)0xe0061).length() != 4 ||
140 (test3 = (UChar32)0x14001).length() != 2
142 errln((UnicodeString)"simple UChar32 overloads for replace, insert, setTo or = failed");
703 UChar32 testChar32 = 0x20402;
743 //using UChar32 string
783 //testing for UChar32
835 //testing UChar32
856 // test that indexOf(UChar32) and lastIndexOf(UChar32)
860 if(test3.indexOf((UChar32)0xd841) != 4 || test3.indexOf((UChar32)0xdc02) != 3) {
861 errln("error: UnicodeString::indexOf(UChar32 surrogate) finds a partial supplementary code point");
864 UnicodeString(test3, 0, 17).lastIndexOf((UChar32)0xd841, 2) != 4 ||
865 test3.lastIndexOf((UChar32)0xd841, 0, 17) != 4 || test3.lastIndexOf((UChar32)0xdc02, 0, 17) != 16
867 errln("error: UnicodeString::lastIndexOf(UChar32 surrogate) finds a partial supplementary code point");
1292 // test the UChar32 constructor
1293 UnicodeString c32Test((UChar32)0x10ff2a);
1297 errln("The UnicodeString(UChar32) constructor does not work with a 0x10ff2a filler");
1301 UnicodeString capTest(5, (UChar32)0x2a, 5);
1309 capTest = UnicodeString(5, (UChar32)0x10ff2a, 5);
1317 capTest = UnicodeString(5, (UChar32)0, 0);
1334 OUT.append((UChar32)0x00101234);
1336 OUT.append((UChar32)1).append((UChar32)0x5289).append((UChar)0x1b);
1551 if(!test3.isBogus() || test3.setTo((UChar32)0x1d157).isBogus() || test3!=UnicodeString((UChar32)0x1d157)) {
1552 errln("bogus.setTo(UChar32) failed");
1593 if(!test3.isBogus() || test3.setTo((UChar32)-1).isBogus() || !test3.isEmpty()) {
1594 errln("bogus.setTo((UChar32
1616 test2.setTo((UChar32)0x10005);
1824 static const UChar32 utf32[] = {
1841 static const UChar32 expected_utf32[] = {
1844 UChar32 result32[16];