Lines Matching full:unicode
42 hb_codepoint_t *unicode, in next()
100 *unicode = c; in next()
104 *unicode = replacement; in next()
111 hb_codepoint_t *unicode, in prev()
118 if (likely (next (text, end, unicode, replacement) == end)) in prev()
121 *unicode = replacement; in prev()
130 encode_len (hb_codepoint_t unicode) in encode_len()
132 if (unicode < 0x0080u) return 1; in encode_len()
133 if (unicode < 0x0800u) return 2; in encode_len()
134 if (unicode < 0x10000u) return 3; in encode_len()
135 if (unicode < 0x110000u) return 4; in encode_len()
142 hb_codepoint_t unicode) in encode()
144 if (unlikely (unicode >= 0xD800u && (unicode <= 0xDFFFu || unicode > 0x10FFFFu))) in encode()
145 unicode = 0xFFFDu; in encode()
146 if (unicode < 0x0080u) in encode()
147 *text++ = unicode; in encode()
148 else if (unicode < 0x0800u) in encode()
152 *text++ = 0xC0u + (0x1Fu & (unicode >> 6)); in encode()
153 *text++ = 0x80u + (0x3Fu & (unicode )); in encode()
156 else if (unicode < 0x10000u) in encode()
160 *text++ = 0xE0u + (0x0Fu & (unicode >> 12)); in encode()
161 *text++ = 0x80u + (0x3Fu & (unicode >> 6)); in encode()
162 *text++ = 0x80u + (0x3Fu & (unicode )); in encode()
169 *text++ = 0xF0u + (0x07u & (unicode >> 18)); in encode()
170 *text++ = 0x80u + (0x3Fu & (unicode >> 12)); in encode()
171 *text++ = 0x80u + (0x3Fu & (unicode >> 6)); in encode()
172 *text++ = 0x80u + (0x3Fu & (unicode )); in encode()
189 hb_codepoint_t *unicode, in next()
196 *unicode = c; in next()
207 *unicode = (c << 10) + l - ((0xD800u << 10) - 0x10000u + 0xDC00u); in next()
214 *unicode = replacement; in next()
221 hb_codepoint_t *unicode, in prev()
228 *unicode = c; in prev()
239 *unicode = (h << 10) + c - ((0xD800u << 10) - 0x10000u + 0xDC00u); in prev()
246 *unicode = replacement; in prev()
260 encode_len (hb_codepoint_t unicode) in encode_len()
262 return unicode < 0x10000 ? 1 : 2; in encode_len()
268 hb_codepoint_t unicode) in encode()
270 if (unlikely (unicode >= 0xD800u && (unicode <= 0xDFFFu || unicode > 0x10FFFFu))) in encode()
271 unicode = 0xFFFDu; in encode()
272 if (unicode < 0x10000u) in encode()
273 *text++ = unicode; in encode()
276 unicode -= 0x10000u; in encode()
277 *text++ = 0xD800u + (unicode >> 10); in encode()
278 *text++ = 0xDC00u + (unicode & 0x03FFu); in encode()
297 hb_codepoint_t *unicode, in next()
300 hb_codepoint_t c = *unicode = *text++; in next()
302 *unicode = replacement; in next()
309 hb_codepoint_t *unicode, in prev()
312 hb_codepoint_t c = *unicode = *--text; in prev()
314 *unicode = replacement; in prev()
327 encode_len (hb_codepoint_t unicode HB_UNUSED) in encode_len()
335 hb_codepoint_t unicode) in encode()
337 if (validate && unlikely (unicode >= 0xD800u && (unicode <= 0xDFFFu || unicode > 0x10FFFFu))) in encode()
338 unicode = 0xFFFDu; in encode()
339 *text++ = unicode; in encode()
355 hb_codepoint_t *unicode, in next()
358 *unicode = *text++; in next()
365 hb_codepoint_t *unicode, in prev()
368 *unicode = *--text; in prev()
381 encode_len (hb_codepoint_t unicode HB_UNUSED) in encode_len()
389 hb_codepoint_t unicode) in encode()
391 if (unlikely (unicode >= 0x0100u)) in encode()
392 unicode = '?'; in encode()
393 *text++ = unicode; in encode()
406 hb_codepoint_t *unicode, in next()
409 *unicode = *text++; in next()
410 if (*unicode >= 0x0080u) in next()
411 *unicode = replacement; in next()
418 hb_codepoint_t *unicode, in prev()
421 *unicode = *--text; in prev()
422 if (*unicode >= 0x0080u) in prev()
423 *unicode = replacement; in prev()
436 encode_len (hb_codepoint_t unicode HB_UNUSED) in encode_len()
444 hb_codepoint_t unicode) in encode()
446 if (unlikely (unicode >= 0x0080u)) in encode()
447 unicode = '?'; in encode()
448 *text++ = unicode; in encode()