Lines Matching full:ordinal
45 cffi_char32_t ordinal; in _my_PyUnicode_FromChar32() local
53 ordinal = *w++; in _my_PyUnicode_FromChar32()
54 ordinal -= 0x10000; in _my_PyUnicode_FromChar32()
55 *u++ = 0xD800 | (ordinal >> 10); in _my_PyUnicode_FromChar32()
56 *u++ = 0xDC00 | (ordinal & 0x3FF); in _my_PyUnicode_FromChar32()
207 cffi_char16_t ordinal = u[i]; in _my_PyUnicode_AsChar16() local
209 cffi_char32_t ordinal = u[i]; in _my_PyUnicode_AsChar16()
210 if (ordinal > 0xFFFF) { in _my_PyUnicode_AsChar16()
211 if (ordinal > 0x10FFFF) { in _my_PyUnicode_AsChar16()
214 "conversion to char16_t: 0x%x", (int)ordinal); in _my_PyUnicode_AsChar16()
217 ordinal -= 0x10000; in _my_PyUnicode_AsChar16()
218 *result++ = 0xD800 | (ordinal >> 10); in _my_PyUnicode_AsChar16()
219 *result++ = 0xDC00 | (ordinal & 0x3FF); in _my_PyUnicode_AsChar16()
223 *result++ = ordinal; in _my_PyUnicode_AsChar16()
235 cffi_char32_t ordinal = *u; in _my_PyUnicode_AsChar32() local
238 ordinal = AS_SURROGATE(u); in _my_PyUnicode_AsChar32()
242 result[i] = ordinal; in _my_PyUnicode_AsChar32()