Lines Matching refs:codepoint
179 _zip_unicode_to_utf8_len(zip_uint32_t codepoint) in _zip_unicode_to_utf8_len() argument
181 if (codepoint < 0x0080) in _zip_unicode_to_utf8_len()
183 if (codepoint < 0x0800) in _zip_unicode_to_utf8_len()
185 if (codepoint < 0x10000) in _zip_unicode_to_utf8_len()
192 _zip_unicode_to_utf8(zip_uint32_t codepoint, zip_uint8_t *buf) in _zip_unicode_to_utf8() argument
194 if (codepoint < 0x0080) { in _zip_unicode_to_utf8()
195 buf[0] = codepoint & 0xff; in _zip_unicode_to_utf8()
198 if (codepoint < 0x0800) { in _zip_unicode_to_utf8()
199 buf[0] = (zip_uint8_t)(UTF_8_LEN_2_MATCH | ((codepoint >> 6) & 0x1f)); in _zip_unicode_to_utf8()
200 buf[1] = (zip_uint8_t)(UTF_8_CONTINUE_MATCH | (codepoint & 0x3f)); in _zip_unicode_to_utf8()
203 if (codepoint < 0x10000) { in _zip_unicode_to_utf8()
204 buf[0] = (zip_uint8_t)(UTF_8_LEN_3_MATCH | ((codepoint >> 12) & 0x0f)); in _zip_unicode_to_utf8()
205 buf[1] = (zip_uint8_t)(UTF_8_CONTINUE_MATCH | ((codepoint >> 6) & 0x3f)); in _zip_unicode_to_utf8()
206 buf[2] = (zip_uint8_t)(UTF_8_CONTINUE_MATCH | (codepoint & 0x3f)); in _zip_unicode_to_utf8()
209 buf[0] = (zip_uint8_t)(UTF_8_LEN_4_MATCH | ((codepoint >> 18) & 0x07)); in _zip_unicode_to_utf8()
210 buf[1] = (zip_uint8_t)(UTF_8_CONTINUE_MATCH | ((codepoint >> 12) & 0x3f)); in _zip_unicode_to_utf8()
211 buf[2] = (zip_uint8_t)(UTF_8_CONTINUE_MATCH | ((codepoint >> 6) & 0x3f)); in _zip_unicode_to_utf8()
212 buf[3] = (zip_uint8_t)(UTF_8_CONTINUE_MATCH | (codepoint & 0x3f)); in _zip_unicode_to_utf8()