Lines Matching refs:letter_uni
32 static uint32_t lv_txt_unicode_to_utf8(uint32_t letter_uni);
41 static uint32_t lv_txt_unicode_to_iso8859_1(uint32_t letter_uni);
527 static uint32_t lv_txt_unicode_to_utf8(uint32_t letter_uni) in lv_txt_unicode_to_utf8() argument
529 if(letter_uni < 128) return letter_uni; in lv_txt_unicode_to_utf8()
532 if(letter_uni < 0x0800) { in lv_txt_unicode_to_utf8()
533 bytes[0] = ((letter_uni >> 6) & 0x1F) | 0xC0; in lv_txt_unicode_to_utf8()
534 bytes[1] = ((letter_uni >> 0) & 0x3F) | 0x80; in lv_txt_unicode_to_utf8()
538 else if(letter_uni < 0x010000) { in lv_txt_unicode_to_utf8()
539 bytes[0] = ((letter_uni >> 12) & 0x0F) | 0xE0; in lv_txt_unicode_to_utf8()
540 bytes[1] = ((letter_uni >> 6) & 0x3F) | 0x80; in lv_txt_unicode_to_utf8()
541 bytes[2] = ((letter_uni >> 0) & 0x3F) | 0x80; in lv_txt_unicode_to_utf8()
544 else if(letter_uni < 0x110000) { in lv_txt_unicode_to_utf8()
545 bytes[0] = ((letter_uni >> 18) & 0x07) | 0xF0; in lv_txt_unicode_to_utf8()
546 bytes[1] = ((letter_uni >> 12) & 0x3F) | 0x80; in lv_txt_unicode_to_utf8()
547 bytes[2] = ((letter_uni >> 6) & 0x3F) | 0x80; in lv_txt_unicode_to_utf8()
548 bytes[3] = ((letter_uni >> 0) & 0x3F) | 0x80; in lv_txt_unicode_to_utf8()
772 static uint32_t lv_txt_unicode_to_iso8859_1(uint32_t letter_uni) in lv_txt_unicode_to_iso8859_1() argument
774 if(letter_uni < 256) in lv_txt_unicode_to_iso8859_1()
775 return letter_uni; in lv_txt_unicode_to_iso8859_1()