Lines Matching refs:uni
88 uint32_t uni ; in GetDescription() local
90 uni = cp ; in GetDescription()
94 uni = ( (uint32_t)( cp & 0x3ff ) ) << 10 ; in GetDescription()
105 uni |= cp & 0x3ff ; in GetDescription()
106 uni += 0x10000 ; in GetDescription()
113 if ( uni < 0x80 ) { in GetDescription()
114 utf8 += (char) uni ; in GetDescription()
116 else if ( uni < 0x800 ) { in GetDescription()
117 utf8 += (char) ( 0xc0 | ( uni >> 6 ) ) ; in GetDescription()
118 utf8 += (char) ( 0x80 | ( uni & 0x3f ) ) ; in GetDescription()
120 else if ( uni < 0x10000 ) { in GetDescription()
121 utf8 += (char) ( 0xe0 | ( uni >> 12 ) ) ; in GetDescription()
122 utf8 += (char) ( 0x80 | ( ( uni >> 6 ) & 0x3f ) ) ; in GetDescription()
123 utf8 += (char) ( 0x80 | ( uni & 0x3f ) ) ; in GetDescription()
126 utf8 += (char) ( 0xf0 | ( uni >> 18 ) ) ; in GetDescription()
127 utf8 += (char) ( 0xe0 | ( ( uni >> 12 ) & 0x3f ) ) ; in GetDescription()
128 utf8 += (char) ( 0x80 | ( ( uni >> 6 ) & 0x3f ) ) ; in GetDescription()
129 utf8 += (char) ( 0x80 | ( uni & 0x3f ) ) ; in GetDescription()
197 uint32_t uni ; local
201 uni = cp ;
209 uni = cp & 0x1f ;
213 uni = cp & 0x0f ;
217 uni = cp & 0x7 ;
230 uni <<= 6 ;
231 uni |= cp & 0x3f ;
235 if ( uni < 0x10000 ) {
236 name[ pos ] = (uint16_t) uni ;
245 uni -= 0x10000 ;
246 name[ pos ] = (uint16_t)( uni >> 10 ) | 0xd800 ;
249 name[ pos ] = (uint16_t)( uni & 0x3ff ) | 0xdc00 ;