Lines Matching +full:0 +full:xd800

55  * Plane (hex 0..D7FF and E000..FFFF) are encoded as-is in two bytes.
67 static unsigned char mask[] = { 0, 0x7f, 0x1f, 0x0f, 0x07, 0x03, 0x01 };
69 /* A high surrogate is ten bits masked with 0xD800. */
70 #define IS_HIGH_SURROGATE(c) ((c) >= 0xD800 && (c) <= 0xDBFF)
72 /* A low surrogate is ten bits masked with 0xDC00. */
73 #define IS_LOW_SURROGATE(c) ((c) >= 0xDC00 && (c) <= 0xDFFF)
75 /* A valid Unicode code point is in the range 0..10FFFF and is not a surrogate
77 #define IS_SURROGATE(c) ((c) >= 0xD800 && (c) <= 0xDFFF)
78 #define IS_VALID_UNICODE(c) ((c) <= 0x10FFFF && !IS_SURROGATE(c))
80 /* A Basic Multilingual Plane character is in the range 0..FFFF and is not a
82 #define IS_BMP(c) ((c) <= 0xFFFF && !IS_SURROGATE(c))
86 #define BASE 0x10000
87 #define HIGH_SURROGATE(c) (0xD800 | (((c) - BASE) >> 10))
88 #define LOW_SURROGATE(c) (0xDC00 | (((c) - BASE) & 0x3FF))
89 #define COMPOSE(c1, c2) (BASE + ((((c1) & 0x3FF) << 10) | ((c2) & 0x3FF)))
99 *nbytes_out = 0; in k5_utf8_to_utf16le()
106 while (*utf8 != '\0') { in k5_utf8_to_utf16le()
109 if (chlen == 0) in k5_utf8_to_utf16le()
113 ch = (krb5_ucs4)(utf8[0] & mask[chlen]); in k5_utf8_to_utf16le()
117 if ((utf8[i] & 0xc0) != 0x80) in k5_utf8_to_utf16le()
122 ch |= (krb5_ucs4)(utf8[i] & 0x3f); in k5_utf8_to_utf16le()
132 /* 0x10000 is subtracted from ch; then the high ten bits plus in k5_utf8_to_utf16le()
133 * 0xD800 and the low ten bits plus 0xDC00 are the surrogates. */ in k5_utf8_to_utf16le()
144 return 0; in k5_utf8_to_utf16le()
163 if (nbytes % 2 != 0) in k5_utf16le_to_utf8()
168 while (!in.status && in.len > 0) { in k5_utf16le_to_utf8()
195 return (*utf8_out == NULL) ? ENOMEM : 0; in k5_utf16le_to_utf8()