Home | History | Annotate | Download | only in gptfdisk

Lines Matching defs:uni

88       uint32_t uni ;
90 uni = cp ;
94 uni = ( (uint32_t)( cp & 0x3ff ) ) << 10 ;
105 uni |= cp & 0x3ff ;
106 uni += 0x10000 ;
113 if ( uni < 0x80 ) {
114 utf8 += (char) uni ;
116 else if ( uni < 0x800 ) {
117 utf8 += (char) ( 0xc0 | ( uni >> 6 ) ) ;
118 utf8 += (char) ( 0x80 | ( uni & 0x3f ) ) ;
120 else if ( uni < 0x10000 ) {
121 utf8 += (char) ( 0xe0 | ( uni >> 12 ) ) ;
122 utf8 += (char) ( 0x80 | ( ( uni >> 6 ) & 0x3f ) ) ;
123 utf8 += (char) ( 0x80 | ( uni & 0x3f ) ) ;
126 utf8 += (char) ( 0xf0 | ( uni >> 18 ) ) ;
127 utf8 += (char) ( 0xe0 | ( ( uni >> 12 ) & 0x3f ) ) ;
128 utf8 += (char) ( 0x80 | ( ( uni >> 6 ) & 0x3f ) ) ;
129 utf8 += (char) ( 0x80 | ( uni & 0x3f ) ) ;
197 uint32_t uni ;
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 ;