Lines Matching +full:0 +full:xd800
94 ((c) >= 0xd800 && (c) < 0xdc00)
96 ((c) >= 0xdc00 && (c) < 0xe000)
98 (((((leading) - 0xd800) << 10) | ((trailing) - 0xdc00)) + 0x10000)
99 #define REPLACEMENT_CHARACTER 0x0FFFD
108 if (utf_8_len == 0) { in utf_16le_to_utf_8_truncated()
110 * Not even enough room for a trailing '\0'. in utf_16le_to_utf_8_truncated()
116 while ((c = *utf_16++) != '\0') { in utf_16le_to_utf_8_truncated()
123 if (c2 == '\0') { in utf_16le_to_utf_8_truncated()
131 * '\0' and quit. in utf_16le_to_utf_8_truncated()
148 * 0x100000 and 0x10ffff, in utf_16le_to_utf_8_truncated()
187 if (uc < 0x0080) { in utf_16le_to_utf_8_truncated()
192 * plus a trailing '\0'. in utf_16le_to_utf_8_truncated()
198 } else if (uc < 0x0800) { in utf_16le_to_utf_8_truncated()
203 * plus a trailing '\0'. in utf_16le_to_utf_8_truncated()
207 *utf_8++ = ((uc >> 6) & 0x3F) | 0xC0; in utf_16le_to_utf_8_truncated()
208 *utf_8++ = ((uc >> 0) & 0x3F) | 0x80; in utf_16le_to_utf_8_truncated()
210 } else if (uc < 0x010000) { in utf_16le_to_utf_8_truncated()
215 * plus a trailing '\0'. in utf_16le_to_utf_8_truncated()
219 *utf_8++ = ((uc >> 12) & 0x0F) | 0xE0; in utf_16le_to_utf_8_truncated()
220 *utf_8++ = ((uc >> 6) & 0x3F) | 0x80; in utf_16le_to_utf_8_truncated()
221 *utf_8++ = ((uc >> 0) & 0x3F) | 0x80; in utf_16le_to_utf_8_truncated()
228 * plus a trailing '\0'. in utf_16le_to_utf_8_truncated()
232 *utf_8++ = ((uc >> 18) & 0x03) | 0xF0; in utf_16le_to_utf_8_truncated()
233 *utf_8++ = ((uc >> 12) & 0x3F) | 0x80; in utf_16le_to_utf_8_truncated()
234 *utf_8++ = ((uc >> 6) & 0x3F) | 0x80; in utf_16le_to_utf_8_truncated()
235 *utf_8++ = ((uc >> 0) & 0x3F) | 0x80; in utf_16le_to_utf_8_truncated()
241 * OK, we have enough room for (at least) a trailing '\0'. in utf_16le_to_utf_8_truncated()
245 * to put into the buffer *plus* a trailing '\0', in utf_16le_to_utf_8_truncated()
248 * '\0'.) in utf_16le_to_utf_8_truncated()
252 *utf_8 = '\0'; in utf_16le_to_utf_8_truncated()
255 * Return a pointer to the terminating '\0', in case we in utf_16le_to_utf_8_truncated()
290 * Including the terminating '\0', that's 3 bytes. in pcapint_vfmt_errmsg_for_errno()
300 *p = '\0'; in pcapint_vfmt_errmsg_for_errno()
313 if (err != 0) { in pcapint_vfmt_errmsg_for_errno()
376 * Including the terminating '\0', that's 3 bytes. in pcapint_vfmt_errmsg_for_win32_err()
386 *p = '\0'; in pcapint_vfmt_errmsg_for_win32_err()
409 if (retval == 0) { in pcapint_vfmt_errmsg_for_win32_err()
428 if (utf_8_len == 0) { in pcapint_vfmt_errmsg_for_win32_err()