HomeSort by relevance Sort by last modified time
    Searched refs:surrogate (Results 1 - 25 of 50) sorted by null

1 2

  /prebuilts/go/darwin-x86/src/unicode/utf16/
utf16.go 29 // can appear in a surrogate pair.
34 // DecodeRune returns the UTF-16 decoding of a surrogate pair.
35 // If the pair is not a valid UTF-16 surrogate pair, DecodeRune returns
44 // EncodeRune returns the UTF-16 surrogate pair r1, r2 for the given rune.
73 // needs surrogate sequence
98 // valid surrogate sequence
102 // invalid surrogate sequence
  /prebuilts/go/linux-x86/src/unicode/utf16/
utf16.go 29 // can appear in a surrogate pair.
34 // DecodeRune returns the UTF-16 decoding of a surrogate pair.
35 // If the pair is not a valid UTF-16 surrogate pair, DecodeRune returns
44 // EncodeRune returns the UTF-16 surrogate pair r1, r2 for the given rune.
73 // needs surrogate sequence
98 // valid surrogate sequence
102 // invalid surrogate sequence
  /prebuilts/go/darwin-x86/test/
string_lit.go 97 // test large and surrogate-half runes. perhaps not the most logical place for these tests.
107 assert(s, "\xef\xbf\xbd", "surrogate rune min")
110 assert(s, "\xef\xbf\xbd", "surrogate rune max")
122 assert(s, "\xef\xbf\xbd", "surrogate rune min constant")
124 assert(s, "\xef\xbf\xbd", "surrogate rune max constant")
char_lit1.go 13 // check that surrogate pair elements are invalid
stringrange.go 62 fmt.Printf("surrogate UTF-8 does not error: %U\n", c)
  /prebuilts/go/linux-x86/test/
string_lit.go 97 // test large and surrogate-half runes. perhaps not the most logical place for these tests.
107 assert(s, "\xef\xbf\xbd", "surrogate rune min")
110 assert(s, "\xef\xbf\xbd", "surrogate rune max")
122 assert(s, "\xef\xbf\xbd", "surrogate rune min constant")
124 assert(s, "\xef\xbf\xbd", "surrogate rune max constant")
char_lit1.go 13 // check that surrogate pair elements are invalid
stringrange.go 62 fmt.Printf("surrogate UTF-8 does not error: %U\n", c)
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
UTF16CharsetEncoderTest.java 42 surrogate = new byte[] { -2, -1 };
78 // surrogate char for unicode
81 // valid surrogate pair
83 // invalid surrogate pair
CharsetEncoderTest.java 62 byte[] surrogate = new byte[0]; field in class:CharsetEncoderTest
251 // surrogate char for unicode
255 // valid surrogate pair
528 // surrogate char for unicode
531 // valid surrogate pair
533 // invalid surrogate pair
578 // assertByteArray(out, surrogate);
597 if (surrogate.length > 0) {
598 byte[] temp = new byte[surrogate.length + expected.length];
599 System.arraycopy(surrogate, 0, temp, 0, surrogate.length)
    [all...]
  /prebuilts/go/darwin-x86/src/unicode/utf8/
utf8_test.go 62 {0xd7ff, "\xed\x9f\xbf"}, // last code point before surrogate half.
63 {0xe000, "\xee\x80\x80"}, // first code point after surrogate half.
75 {0xd800, "\xed\xa0\x80"}, // surrogate min decodes to (RuneError, 1)
76 {0xdfff, "\xed\xbf\xbf"}, // surrogate max decodes to (RuneError, 1)
236 "\xed\xa0\x80\x80", // surrogate min
237 "\xed\xbf\xbf\x80", // surrogate max
466 {string("\xed\xa0\x80"), false}, // U+D800 high surrogate (sic)
467 {string("\xed\xbf\xbf"), false}, // U+DFFF low surrogate (sic)
  /prebuilts/go/linux-x86/src/unicode/utf8/
utf8_test.go 62 {0xd7ff, "\xed\x9f\xbf"}, // last code point before surrogate half.
63 {0xe000, "\xee\x80\x80"}, // first code point after surrogate half.
75 {0xd800, "\xed\xa0\x80"}, // surrogate min decodes to (RuneError, 1)
76 {0xdfff, "\xed\xbf\xbf"}, // surrogate max decodes to (RuneError, 1)
236 "\xed\xa0\x80\x80", // surrogate min
237 "\xed\xbf\xbf\x80", // surrogate max
466 {string("\xed\xa0\x80"), false}, // U+D800 high surrogate (sic)
467 {string("\xed\xbf\xbf"), false}, // U+DFFF low surrogate (sic)
  /external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/
ActionScriptTarget.java 64 * or are in the surrogate pair ranges. For example "/uffff" will not encode properly
  /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
CollationIteratorTest.java 286 // setting offset in the middle of a surrogate pair
287 String surrogate = "\ud800\udc00str"; local
288 iter = tailored.getCollationElementIterator(surrogate);
290 iter.setOffset(1); // sets offset in the middle of surrogate
293 errln("Error: setting offset in the middle of a surrogate pair should be the same as setting it to the start of the surrogate pair");
295 surrogate = "simple\ud800\udc00str";
296 iter = tailored.getCollationElementIterator(surrogate);
299 iter.setOffset(7); // sets offset in the middle of surrogate
302 errln("Error: setting offset in the middle of a surrogate pair should be the same as setting it to the start of the surrogate pair")
    [all...]
  /external/icu/icu4c/source/test/intltest/
itercoll.cpp 252 // setting offset in the middle of a surrogate pair
253 UnicodeString surrogate = UNICODE_STRING_SIMPLE("\\ud800\\udc00str").unescape(); local
254 iter = tailored.createCollationElementIterator(surrogate);
256 iter->setOffset(1, status); // sets offset in the middle of surrogate
259 errln("Error: setting offset in the middle of a surrogate pair should be the same as setting it to the start of the surrogate pair");
264 surrogate = UNICODE_STRING_SIMPLE("simple\\ud800\\udc00str").unescape();
265 iter = tailored.createCollationElementIterator(surrogate);
268 iter->setOffset(7, status); // sets offset in the middle of surrogate
271 errln("Error: setting offset in the middle of a surrogate pair should be the same as setting it to the start of the surrogate pair")
    [all...]
  /external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
CollationIteratorTest.java 283 // setting offset in the middle of a surrogate pair
284 String surrogate = "\ud800\udc00str"; local
285 iter = tailored.getCollationElementIterator(surrogate);
287 iter.setOffset(1); // sets offset in the middle of surrogate
290 errln("Error: setting offset in the middle of a surrogate pair should be the same as setting it to the start of the surrogate pair");
292 surrogate = "simple\ud800\udc00str";
293 iter = tailored.getCollationElementIterator(surrogate);
296 iter.setOffset(7); // sets offset in the middle of surrogate
299 errln("Error: setting offset in the middle of a surrogate pair should be the same as setting it to the start of the surrogate pair")
    [all...]
  /external/clang/test/SemaCXX/
enable_if.cpp 4 int surrogate(int);
31 operator fp() __attribute__((enable_if(false, "never enabled"))) { return surrogate; } // expected-note{{conversion candidate of type 'int (*)(int)'}} // FIXME: the message is not displayed
  /prebuilts/go/darwin-x86/src/runtime/
utf8.go 14 // Code points in the surrogate range are not valid for UTF-8.
  /prebuilts/go/linux-x86/src/runtime/
utf8.go 14 // Code points in the surrogate range are not valid for UTF-8.
  /external/python/cpython2/Lib/test/
test_memoryio.py 639 surrogate = unichr(0xd800)
640 memio = self.ioclass(surrogate)
641 self.assertEqual(memio.read(), surrogate)
644 memio.write(surrogate)
645 self.assertEqual(memio.getvalue(), surrogate)
  /external/icu/icu4c/source/i18n/
rematch.cpp 349 // Note: Surrogate pairs don't need any special handling
368 UChar surrogate[2]; local
369 surrogate[0] = U16_LEAD(escapedChar);
370 surrogate[1] = U16_TRAIL(escapedChar);
372 destLen += utext_replace(dest, destLen, destLen, surrogate, 2, &status);
390 UChar surrogate[2]; local
391 surrogate[0] = U16_LEAD(c);
392 surrogate[1] = U16_TRAIL(c);
394 destLen += utext_replace(dest, destLen, destLen, surrogate, 2, &status);
404 UChar surrogate[2] local
    [all...]
  /prebuilts/go/darwin-x86/src/encoding/gob/
decoder.go 43 // We use the ability to read bytes as a plausible surrogate for buffering.
  /prebuilts/go/linux-x86/src/encoding/gob/
decoder.go 43 // We use the ability to read bytes as a plausible surrogate for buffering.
  /external/python/cpython2/Objects/
unicodeobject.c 550 * by 'ptr', possibly combining surrogate pairs on narrow builds.
553 * ('end' is used on narrow builds to detect a lone surrogate at the
565 /* Join two surrogate characters and return a single Py_UCS4 value. */
1663 Py_UNICODE surrogate = 0; local
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
unicodeobject.c 551 * by 'ptr', possibly combining surrogate pairs on narrow builds.
554 * ('end' is used on narrow builds to detect a lone surrogate at the
566 /* Join two surrogate characters and return a single Py_UCS4 value. */
1658 Py_UNICODE surrogate = 0; local
    [all...]

Completed in 639 milliseconds

1 2