Home | History | Annotate | Download | only in intltest

Lines Matching refs:UChar32

120     test3.append((UChar32)0x20402);
122 errln((UnicodeString)"append failed for UChar32, expected \"\\\\ud841\\\\udc02\", got " + prettify(test3));
125 errln(UnicodeString("append or length failed for UChar32, expected 2, got ") + test3.length());
127 test3.append((UChar32)0x0074);
129 errln((UnicodeString)"append failed for UChar32, expected \"\\\\uD841\\\\uDC02t\", got " + prettify(test3));
132 errln((UnicodeString)"append or length failed for UChar32, expected 2, got " + test3.length());
135 // test some UChar32 overloads
136 if( test3.setTo((UChar32)0x10330).length() != 2 ||
137 test3.insert(0, (UChar32)0x20100).length() != 4 ||
138 test3.replace(2, 2, (UChar32)0xe0061).length() != 4 ||
139 (test3 = (UChar32)0x14001).length() != 2
141 errln((UnicodeString)"simple UChar32 overloads for replace, insert, setTo or = failed");
702 UChar32 testChar32 = 0x20402;
742 //using UChar32 string
782 //testing for UChar32
834 //testing UChar32
855 // test that indexOf(UChar32) and lastIndexOf(UChar32)
859 if(test3.indexOf((UChar32)0xd841) != 4 || test3.indexOf((UChar32)0xdc02) != 3) {
860 errln("error: UnicodeString::indexOf(UChar32 surrogate) finds a partial supplementary code point");
863 UnicodeString(test3, 0, 17).lastIndexOf((UChar32)0xd841, 2) != 4 ||
864 test3.lastIndexOf((UChar32)0xd841, 0, 17) != 4 || test3.lastIndexOf((UChar32)0xdc02, 0, 17) != 16
866 errln("error: UnicodeString::lastIndexOf(UChar32 surrogate) finds a partial supplementary code point");
1289 // test the UChar32 constructor
1290 UnicodeString c32Test((UChar32)0x10ff2a);
1294 errln("The UnicodeString(UChar32) constructor does not work with a 0x10ff2a filler");
1298 UnicodeString capTest(5, (UChar32)0x2a, 5);
1306 capTest = UnicodeString(5, (UChar32)0x10ff2a, 5);
1314 capTest = UnicodeString(5, (UChar32)0, 0);
1331 OUT.append((UChar32)0x00101234);
1333 OUT.append((UChar32)1).append((UChar32)0x5289).append((UChar)0x1b);
1548 if(!test3.isBogus() || test3.setTo((UChar32)0x1d157).isBogus() || test3!=UnicodeString((UChar32)0x1d157)) {
1549 errln("bogus.setTo(UChar32) failed");
1593 if(!test3.isBogus() || test3.setTo((UChar32)-1).isBogus() || !test3.isEmpty()) {
1594 errln("bogus.setTo((UChar32)-1) failed");
1616 test2.setTo((UChar32)0x10005);
1824 static const UChar32 utf32[] = {
1841 static const UChar32 expected_utf32[] = {
1844 UChar32 result32[16];