Home
last modified time | relevance | path

Searched refs:unic (Results 1 – 2 of 2) sorted by relevance

/OK3568_Linux_fs/app/forlinx/flapp/src/plugins/allwinner/camera/CameraUI/
H A Dunicodeandutf8.cpp92 int enc_unicode_to_utf8_one(unsigned long unic, unsigned char *pOutput, in enc_unicode_to_utf8_one() argument
98 if ( unic <= 0x0000007F ) in enc_unicode_to_utf8_one()
100 *pOutput = (unic & 0x7F); in enc_unicode_to_utf8_one()
103 else if ( unic >= 0x00000080 && unic <= 0x000007FF ) in enc_unicode_to_utf8_one()
105 *(pOutput+1) = (unic & 0x3F) | 0x80; in enc_unicode_to_utf8_one()
106 *pOutput = ((unic >> 6) & 0x1F) | 0xC0; in enc_unicode_to_utf8_one()
109 else if ( unic >= 0x00000800 && unic <= 0x0000FFFF ) in enc_unicode_to_utf8_one()
111 *(pOutput+2) = (unic & 0x3F) | 0x80; in enc_unicode_to_utf8_one()
112 *(pOutput+1) = ((unic >> 6) & 0x3F) | 0x80; in enc_unicode_to_utf8_one()
113 *pOutput = ((unic >> 12) & 0x0F) | 0xE0; in enc_unicode_to_utf8_one()
[all …]
H A Dunicodeandutf8.h12 int enc_unicode_to_utf8_one(unsigned long unic, unsigned char *pOutput,int outSize);