Searched refs:surrogate (Results 1 - 14 of 14) sorted by relevance

/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/
H A DActionScriptTarget.java64 * 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/
H A DCollationIteratorTest.java281 // setting offset in the middle of a surrogate pair
282 String surrogate = "\ud800\udc00str";
283 iter = tailored.getCollationElementIterator(surrogate);
285 iter.setOffset(1); // sets offset in the middle of surrogate
288 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");
290 surrogate = "simple\ud800\udc00str";
291 iter = tailored.getCollationElementIterator(surrogate);
294 iter.setOffset(7); // sets offset in the middle of surrogate
297 errln("Error: setting offset in the middle of a surrogate pai
[all...]
/external/icu/icu4c/source/test/intltest/
H A Ditercoll.cpp252 // 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 pai
[all...]
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
H A DCollationIteratorTest.java280 // setting offset in the middle of a surrogate pair
281 String surrogate = "\ud800\udc00str";
282 iter = tailored.getCollationElementIterator(surrogate);
284 iter.setOffset(1); // sets offset in the middle of surrogate
287 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");
289 surrogate = "simple\ud800\udc00str";
290 iter = tailored.getCollationElementIterator(surrogate);
293 iter.setOffset(7); // sets offset in the middle of surrogate
296 errln("Error: setting offset in the middle of a surrogate pai
[all...]
/external/clang/test/SemaCXX/
H A Denable_if.cpp4 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
/external/python/cpython2/Lib/test/
H A Dtest_memoryio.py639 surrogate = unichr(0xd800)
640 memio = self.ioclass(surrogate)
641 self.assertEqual(memio.read(), surrogate)
644 memio.write(surrogate)
645 self.assertEqual(memio.getvalue(), surrogate)
H A Dtest_unicode.py235 # Non surrogate below surrogate value, no fixup required
238 # Non surrogate above surrogate value, fixup required
784 (u'\U000abcde', '+2m/c3g-'), # surrogate pairs
913 for cb, surrogate in zip(map(chr, range(0xA0, 0xC0)),
916 self.assertEqual(encoded.decode('utf-8'), surrogate)
917 self.assertEqual(surrogate.encode('utf-8'), encoded)
1111 # a surrogate pair (\udbff\udc00), which gets converted back
/external/icu/icu4c/source/i18n/
H A Drematch.cpp368 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
405 surrogate[
[all...]
/external/python/cpython2/Objects/
H A Dunicodeobject.c550 * 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. */
1644 * surrogate). */
1663 Py_UNICODE surrogate = 0; local
1695 if (surrogate) {
1696 /* expecting a second surrogate */
1699 *p++ = (((surrogate & 0x3FF)<<10)
1702 *p++ = surrogate;
1705 surrogate
[all...]
/external/flatbuffers/src/
H A Didl_parser.cpp275 "illegal Unicode sequence (unpaired high surrogate)");
308 "illegal Unicode sequence (unpaired low surrogate)");
319 "illegal Unicode sequence (unpaired high surrogate)");
330 "illegal Unicode sequence (unpaired high surrogate)");
337 "illegal Unicode sequence (unpaired high surrogate)");
/external/python/cpython2/Lib/pydoc_data/
H A Dtopics.py67 'strings': u'\nString literals\n***************\n\nString literals are described by the following lexical definitions:\n\n stringliteral ::= [stringprefix](shortstring | longstring)\n stringprefix ::= "r" | "u" | "ur" | "R" | "U" | "UR" | "Ur" | "uR"\n | "b" | "B" | "br" | "Br" | "bR" | "BR"\n shortstring ::= "\'" shortstringitem* "\'" | \'"\' shortstringitem* \'"\'\n longstring ::= "\'\'\'" longstringitem* "\'\'\'"\n | \'"""\' longstringitem* \'"""\'\n shortstringitem ::= shortstringchar | escapeseq\n longstringitem ::= longstringchar | escapeseq\n shortstringchar ::= <any source character except "\\" or newline or the quote>\n longstringchar ::= <any source character except "\\">\n escapeseq ::= "\\" <any ASCII character>\n\nOne syntactic restriction not indicated by these productions is that\nwhitespace is not allowed between the "stringprefix" and the rest of\nthe string literal. The source character set is defined by the\nencoding declaration; it is ASCII if no encoding declaration is given\nin the source file; see section Encoding declarations.\n\nIn plain English: String literals can be enclosed in matching single\nquotes ("\'") or double quotes ("""). They can also be enclosed in\nmatching groups of three single or double quotes (these are generally\nreferred to as *triple-quoted strings*). The backslash ("\\")\ncharacter is used to escape characters that otherwise have a special\nmeaning, such as newline, backslash itself, or the quote character.\nString literals may optionally be prefixed with a letter "\'r\'" or\n"\'R\'"; such strings are called *raw strings* and use different rules\nfor interpreting backslash escape sequences. A prefix of "\'u\'" or\n"\'U\'" makes the string a Unicode string. Unicode strings use the\nUnicode character set as defined by the Unicode Consortium and ISO\n10646. Some additional escape sequences, described below, are\navailable in Unicode strings. A prefix of "\'b\'" or "\'B\'" is ignored in\nPython 2; it indicates that the literal should become a bytes literal\nin Python 3 (e.g. when code is automatically converted with 2to3). A\n"\'u\'" or "\'b\'" prefix may be followed by an "\'r\'" prefix.\n\nIn triple-quoted strings, unescaped newlines and quotes are allowed\n(and are retained), except that three unescaped quotes in a row\nterminate the string. (A "quote" is the character used to open the\nstring, i.e. either "\'" or """.)\n\nUnless an "\'r\'" or "\'R\'" prefix is present, escape sequences in\nstrings are interpreted according to rules similar to those used by\nStandard C. The recognized escape sequences are:\n\n+-------------------+-----------------------------------+---------+\n| Escape Sequence | Meaning | Notes |\n+===================+===================================+=========+\n| "\\newline" | Ignored | |\n+-------------------+-----------------------------------+---------+\n| "\\\\" | Backslash ("\\") | |\n+-------------------+-----------------------------------+---------+\n| "\\\'" | Single quote ("\'") | |\n+-------------------+-----------------------------------+---------+\n| "\\"" | Double quote (""") | |\n+-------------------+-----------------------------------+---------+\n| "\\a" | ASCII Bell (BEL) | |\n+-------------------+-----------------------------------+---------+\n| "\\b" | ASCII Backspace (BS) | |\n+-------------------+-----------------------------------+---------+\n| "\\f" | ASCII Formfeed (FF) | |\n+-------------------+-----------------------------------+---------+\n| "\\n" | ASCII Linefeed (LF) | |\n+-------------------+-----------------------------------+---------+\n| "\\N{name}" | Character named *name* in the | |\n| | Unicode database (Unicode only) | |\n+-------------------+-----------------------------------+---------+\n| "\\r" | ASCII Carriage Return (CR) | |\n+-------------------+-----------------------------------+---------+\n| "\\t" | ASCII Horizontal Tab (TAB) | |\n+-------------------+-----------------------------------+---------+\n| "\\uxxxx" | Character with 16-bit hex value | (1) |\n| | *xxxx* (Unicode only) | |\n+-------------------+-----------------------------------+---------+\n| "\\Uxxxxxxxx" | Character with 32-bit hex value | (2) |\n| | *xxxxxxxx* (Unicode only) | |\n+-------------------+-----------------------------------+---------+\n| "\\v" | ASCII Vertical Tab (VT) | |\n+-------------------+-----------------------------------+---------+\n| "\\ooo" | Character with octal value *ooo* | (3,5) |\n+-------------------+-----------------------------------+---------+\n| "\\xhh" | Character with hex value *hh* | (4,5) |\n+-------------------+-----------------------------------+---------+\n\nNotes:\n\n1. Individual code units which form parts of a surrogate pair can\n be encoded using this escape sequence.\n\n2. Any Unicode character can be encoded this way, but characters\n outside the Basic Multilingual Plane (BMP) will be encoded using a\n surrogate pair if Python is compiled to use 16-bit code units (the\n default).\n\n3. As in Standard C, up to three octal digits are accepted.\n\n4. Unlike in Standard C, exactly two hex digits are required.\n\n5. In a string literal, hexadecimal and octal escapes denote the\n byte with the given value; it is not necessary that the byte\n encodes a character in the source character set. In a Unicode\n literal, these escapes denote a Unicode character with the given\n value.\n\nUnlike Standard C, all unrecognized escape sequences are left in the\nstring unchanged, i.e., *the backslash is left in the string*. (This\nbehavior is useful when debugging: if an escape sequence is mistyped,\nthe resulting output is more easily recognized as broken.) It is also\nimportant to note that the escape sequences marked as "(Unicode only)"\nin the table above fall into the category of unrecognized escapes for\nnon-Unicode string literals.\n\nWhen an "\'r\'" or "\'R\'" prefix is present, a character following a\nbackslash is included in the string without change, and *all\nbackslashes are left in the string*. For example, the string literal\n"r"\\n"" consists of two characters: a backslash and a lowercase "\'n\'".\nString quotes can be escaped with a backslash, but the backslash\nremains in the string; for example, "r"\\""" is a valid string literal\nconsisting of two characters: a backslash and a double quote; "r"\\""\nis not a valid string literal (even a raw string cannot end in an odd\nnumber of backslashes). Specifically, *a raw string cannot end in a\nsingle backslash* (since the backslash would escape the following\nquote character). Note also that a single backslash followed by a\nnewline is interpreted as those two characters as part of the string,\n*not* as a line continuation.\n\nWhen an "\'r\'" or "\'R\'" prefix is used in conjunction with a "\'u\'" or\n"\'U\'" prefix, then the "\\uXXXX" and "\\UXXXXXXXX" escape sequences are\nprocessed while *all other backslashes are left in the string*. For\nexample, the string literal "ur"\\u0062\\n"" consists of three Unicode\ncharacters: \'LATIN SMALL LETTER B\', \'REVERSE SOLIDUS\', and \'LATIN\nSMALL LETTER N\'. Backslashes can be escaped with a preceding\nbackslash; however, both remain in the string. As a result, "\\uXXXX"\nescape sequences are only recognized when there are an odd number of\nbackslashes.\n',
/external/icu/icu4c/source/test/cintltst/
H A Dccapitst.c1971 * a high surrogate in the last position of the Unicode intermediate buffer. Apparently no
1992 /* this happens when surrogate pair straddles the intermediate buffer in
3506 static const UChar surrogate[1]={ 0xd900 }; local
3523 length=ucnv_fromUChars(cnv, buffer, (int32_t)sizeof(buffer), surrogate, 1, &errorCode);
3538 length=ucnv_fromUChars(cnv, buffer, (int32_t)sizeof(buffer), surrogate, 1, &errorCode);
/external/robolectric/v1/lib/test/
H A Dmockito-core-1.8.5.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/mockito/ org/mockito/asm/ org/mockito/asm/signature/ ...
/external/dagger2/lib/
H A Dgoogle-java-format-0.1-20151017.042846-2.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/googlejavaformat/ com/google/googlejavaformat/CloseOp ...

Completed in 490 milliseconds