Home
last modified time | relevance | path

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

/lvgl-latest/src/drivers/uefi/
Dlv_uefi_private.c164 size_t lv_uefi_ucs2_to_ascii(const CHAR16 * ucs2, char * ascii, size_t ascii_len) in lv_uefi_ucs2_to_ascii() argument
169 if(ucs2 == NULL || ascii == NULL || ascii_len == 0) { in lv_uefi_ucs2_to_ascii()
175 …for(string_index = 0; ucs2[string_index] != 0x0000 && string_index < ascii_len - 1; string_index++… in lv_uefi_ucs2_to_ascii()
176 if(ucs2[string_index] < 0x20 || ucs2[string_index] > 0x7E) { in lv_uefi_ucs2_to_ascii()
179 ascii[string_index] = (char) ucs2[string_index]; in lv_uefi_ucs2_to_ascii()
197 size_t lv_uefi_ascii_to_ucs2(const char * ascii, CHAR16 * ucs2, size_t ucs2_len) in lv_uefi_ascii_to_ucs2() argument
202 if(ascii == NULL || ucs2 == NULL || ucs2_len == 0) { in lv_uefi_ascii_to_ucs2()
212 ucs2[string_index] = (CHAR16) ascii[string_index]; in lv_uefi_ascii_to_ucs2()
216 ucs2[string_index] = 0x0000; in lv_uefi_ascii_to_ucs2()
Dlv_uefi_private.h84 size_t lv_uefi_ucs2_to_ascii(const CHAR16 * ucs2, char * ascii, size_t ascii_len);
95 size_t lv_uefi_ascii_to_ucs2(const char * ascii, CHAR16 * ucs2, size_t ucs2_len);