Searched refs:code_point (Results 1 – 2 of 2) sorted by relevance
39 pair<uint8_t,uint8_t> utf8encode2bytes( uint16_t code_point ) in utf8encode2bytes() argument41 uint8_t cp_low = static_cast<uint8_t>(code_point & 0xFF); in utf8encode2bytes()42 uint8_t cp_hi = static_cast<uint8_t>((code_point & 0xFF00) >> 8); in utf8encode2bytes()49 vector<uint8_t> utf8encodeMultiBytes( uint32_t code_point ) in utf8encodeMultiBytes() argument53 if ( code_point <= 0xFFFF ) { in utf8encodeMultiBytes()54 uint8_t lead = static_cast<uint8_t>( 0xE0 | ( ( code_point & 0xF000 ) >> 12 ) ); in utf8encodeMultiBytes()56 bytes.push_back( 0x80 | ( code_point & 0x0FC0 ) >> 6 ); in utf8encodeMultiBytes()57 bytes.push_back( 0x80 | ( code_point & 0x3F ) ); in utf8encodeMultiBytes()59 else if ( code_point <= 0x1FFFFF ) { in utf8encodeMultiBytes()60 uint8_t lead = static_cast<uint8_t>( 0xF0 | ( ( code_point & 0x1C0000 ) >> 18 ) ); in utf8encodeMultiBytes()[all …]