Lines Matching refs:surrogates
2387 hasSurrogates=TRUE; // Contains unpaired surrogates.
3268 // Convert with substitution: Turn unpaired surrogates into U+FFFD.
3319 // contains(U+FFFD) is inconsistent with contains(some surrogates),
3320 // or the set contains strings with unpaired surrogates which don't translate to valid UTF-8:
3321 // Skip the UTF-8 part of the test - if the string contains surrogates -
3363 0xd7a4, 0xdc05, 0xd900, 0x2028, // unassigned, surrogates in wrong order, LS
3510 // Cause: contains(U+FFFD) is inconsistent with contains(some surrogates),
3511 // or the set contains strings with unpaired surrogates
3651 // Test with strings containing unpaired surrogates.
3904 UnicodeSet surrogates;
3905 surrogates.add(0xd83a); // a lead surrogate
3906 surrogates.add(0xdc00, 0xdfff); // a range of trail surrogates
3908 surrogates.toPattern(pat, FALSE); // bad: [ 0xd83a, 0xdc00, 0x2d, 0xdfff ]
3916 errln("FAIL: surrogates to/from pattern - %s", u_errorName(errorCode));
3918 checkEqual(surrogates, s2, "surrogates to/from pattern");