Lines Matching refs:text

4  *  This is part of HarfBuzz, a text shaping library.
41 next (const uint8_t *text,
50 hb_codepoint_t c = *text++;
57 if (likely (text < end &&
58 (t1 = text[0] - 0x80u) <= 0x3Fu))
61 text++;
69 if (likely (1 < end - text &&
70 (t1 = text[0] - 0x80u) <= 0x3Fu &&
71 (t2 = text[1] - 0x80u) <= 0x3Fu))
76 text += 2;
84 if (likely (2 < end - text &&
85 (t1 = text[0] - 0x80u) <= 0x3Fu &&
86 (t2 = text[1] - 0x80u) <= 0x3Fu &&
87 (t3 = text[2] - 0x80u) <= 0x3Fu))
92 text += 3;
102 return text;
106 return text;
110 prev (const uint8_t *text,
115 const uint8_t *end = text--;
116 while (start < text && (*text & 0xc0) == 0x80 && end - text < 4)
117 text--;
119 if (likely (next (text, end, unicode, replacement) == end))
120 return text;
127 strlen (const uint8_t *text)
129 return ::strlen ((const char *) text);
140 next (const uint16_t *text,
145 hb_codepoint_t c = *text++;
150 return text;
157 if (text < end && ((l = *text), likely (hb_in_range (l, 0xDC00u, 0xDFFFu))))
161 text++;
162 return text;
168 return text;
172 prev (const uint16_t *text,
177 const uint16_t *end = text--;
178 hb_codepoint_t c = *text;
183 return text;
186 if (likely (start < text && hb_in_range (c, 0xDC00u, 0xDFFFu)))
187 text--;
189 if (likely (next (text, end, unicode, replacement) == end))
190 return text;
198 strlen (const uint16_t *text)
201 while (*text++) l++;
213 next (const uint32_t *text,
218 hb_codepoint_t c = *text++;
222 return text;
226 return text;
230 prev (const uint32_t *text,
235 next (text - 1, text, unicode, replacement);
236 return text - 1;
240 strlen (const uint32_t *text)
243 while (*text++) l++;