Lines Matching refs:surrogate
1479 will decode surrogate pairs, the other conversions are implemented as macros
1734 /* Find the maximum code point and count the number of surrogate pairs so a
3227 /* encode surrogate pair in this case */
4696 * surrogate). */
4714 Py_UCS4 surrogate = 0;
4747 if (surrogate) {
4748 /* expecting a second surrogate */
4750 Py_UCS4 ch2 = Py_UNICODE_JOIN_SURROGATES(surrogate, outCh);
4753 surrogate = 0;
4757 if (_PyUnicodeWriter_WriteCharInline(&writer, surrogate) < 0)
4759 surrogate = 0;
4763 /* first surrogate */
4764 surrogate = outCh;
4790 if (surrogate && DECODE_DIRECT(ch)) {
4791 if (_PyUnicodeWriter_WriteCharInline(&writer, surrogate) < 0)
4794 surrogate = 0;
4817 surrogate = 0;
4850 if (surrogate ||
4972 /* code first surrogate */
4979 /* prepare second surrogate */
5169 /* Truncated surrogate code in range D800-DFFF */
5314 /* write a surrogate pair */
5398 surrogate character into *error_pos (if error_pos is set) and the decoding
5753 errmsg = "code point in surrogate code point range(0xd800, 0xe000)";
5907 /* four bytes are reserved for each surrogate */
6083 errmsg = "illegal UTF-16 surrogate";
6246 /* two bytes are reserved for each surrogate */
7145 /* Not a UTF-8b surrogate */
7496 represented as a surrogate pair */