Home
last modified time | relevance | path

Searched refs:surrogates (Results 1 - 4 of 4) sorted by relevance

/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
H A DUnicodeSetTest.java2757 UnicodeSet surrogates = new UnicodeSet(); in TestPatternWithSurrogates()
2758 surrogates.add(0xd000, 0xd82f); // a range ending with a lead surrogate code point in TestPatternWithSurrogates()
2759 surrogates.add(0xd83a); // a lead surrogate in TestPatternWithSurrogates()
2760 surrogates.add(0xdc00, 0xdfff); // a range of trail surrogates in TestPatternWithSurrogates()
2761 String pat = surrogates.toPattern(false); // bad if U+D83A is immediately followed by U+DC00 in TestPatternWithSurrogates()
2765 checkEqual(surrogates, s2, "surrogates (1) to/from pattern"); in TestPatternWithSurrogates()
2768 surrogates.add(0xdbff).remove(0xdc01, 0xdc03); in TestPatternWithSurrogates()
2769 // add a beyond-surrogates rang in TestPatternWithSurrogates()
[all...]
/third_party/icu/icu4c/source/test/intltest/
H A Dusettest.cpp2429 hasSurrogates=true; // Contains unpaired surrogates. in UnicodeSetWithStrings()
3310 // Convert with substitution: Turn unpaired surrogates into U+FFFD. in testSpanBothUTFs()
3361 // contains(U+FFFD) is inconsistent with contains(some surrogates), in testSpanContents()
3362 // or the set contains strings with unpaired surrogates which don't translate to valid UTF-8: in testSpanContents()
3363 // Skip the UTF-8 part of the test - if the string contains surrogates - in testSpanContents()
3405 0xd7a4, 0xdc05, 0xd900, 0x2028, // unassigned, surrogates in wrong order, LS in testSpanUTF16String()
3552 // Cause: contains(U+FFFD) is inconsistent with contains(some surrogates), in TestSpan()
3553 // or the set contains strings with unpaired surrogates in TestSpan()
3693 // Test with strings containing unpaired surrogates. in TestSpan()
3915 UnicodeSet surrogates; in TestPatternWithSurrogates() local
[all...]
/third_party/icu/icu4c/source/test/cintltst/
H A Dbocu1tst.c945 static const UChar surrogates[]={ 0xdc00, 0xd800 }; /* single surrogates, unmatched! */ variable
965 { surrogates, UPRV_LENGTHOF(surrogates) },
/third_party/node/deps/simdutf/
H A Dsimdutf.cpp4406 counter += static_cast<size_t>(word > 0x7F); // non-ASCII is at least 2 bytes, surrogates are 2*2 == 4 bytes in utf8_length_from_utf16()
12715 // Check for surrogates in arm_detect_encodings()
12719 // Can still be either UTF-16LE or UTF-32 depending on the positions of the surrogates in arm_detect_encodings()
12796 // Must start checking for surrogates in arm_detect_encodings()
12906 // 2. We have some surrogates that have to be distinguished: in arm_validate_utf16()
12907 // - low surrogates: 0b1101'10xx'yyyy'yyyy (0xD800..0xDBFF) in arm_validate_utf16()
12908 // - high surrogates: 0b1101'11xx'yyyy'yyyy (0xDC00..0xDFFF) in arm_validate_utf16()
12916 // H - word-mask for high surrogates: the six highest bits are 0b1101'11 in arm_validate_utf16()
12920 // L - word mask for low surrogates in arm_validate_utf16()
12977 // 2. We have some surrogates tha in arm_validate_utf16_with_errors()
13424 uint32x4_t surrogates = vreinterpretq_u32_u16(vaddq_u16(masked_pair, magic)); convert_masked_utf8_to_utf16() local
[all...]

Completed in 54 milliseconds