Lines Matching refs:codepoint
183 _zip_unicode_to_utf8_len(zip_uint32_t codepoint) in _zip_unicode_to_utf8_len() argument
185 if (codepoint < 0x0080) in _zip_unicode_to_utf8_len()
187 if (codepoint < 0x0800) in _zip_unicode_to_utf8_len()
189 if (codepoint < 0x10000) in _zip_unicode_to_utf8_len()
197 _zip_unicode_to_utf8(zip_uint32_t codepoint, zip_uint8_t *buf) in _zip_unicode_to_utf8() argument
199 if (codepoint < 0x0080) { in _zip_unicode_to_utf8()
200 buf[0] = codepoint & 0xff; in _zip_unicode_to_utf8()
203 if (codepoint < 0x0800) { in _zip_unicode_to_utf8()
204 buf[0] = UTF_8_LEN_2_MATCH | ((codepoint >> 6) & 0x1f); in _zip_unicode_to_utf8()
205 buf[1] = UTF_8_CONTINUE_MATCH | (codepoint & 0x3f); in _zip_unicode_to_utf8()
208 if (codepoint < 0x10000) { in _zip_unicode_to_utf8()
209 buf[0] = UTF_8_LEN_3_MATCH | ((codepoint >> 12) & 0x0f); in _zip_unicode_to_utf8()
210 buf[1] = UTF_8_CONTINUE_MATCH | ((codepoint >> 6) & 0x3f); in _zip_unicode_to_utf8()
211 buf[2] = UTF_8_CONTINUE_MATCH | (codepoint & 0x3f); in _zip_unicode_to_utf8()
214 buf[0] = UTF_8_LEN_4_MATCH | ((codepoint >> 18) & 0x07); in _zip_unicode_to_utf8()
215 buf[1] = UTF_8_CONTINUE_MATCH | ((codepoint >> 12) & 0x3f); in _zip_unicode_to_utf8()
216 buf[2] = UTF_8_CONTINUE_MATCH | ((codepoint >> 6) & 0x3f); in _zip_unicode_to_utf8()
217 buf[3] = UTF_8_CONTINUE_MATCH | (codepoint & 0x3f); in _zip_unicode_to_utf8()