09 Sep, 2016
1 commit
-
No need to calculate the string length on every loop iteration.
Signed-off-by: Lukas Wunner
Cc: Peter Jones
Signed-off-by: Matt Fleming
16 Feb, 2016
1 commit
-
The comparisons should be >= since 0x800 and 0x80 require an additional bit
to store.For the 3 byte case, the existing shift would drop off 2 more bits than
intended.For the 2 byte case, there should be 5 bits bits in byte 1, and 6 bits in
byte 2.Signed-off-by: Jason Andryuk
Reviewed-by: Laszlo Ersek
Cc: Peter Jones
Cc: Matthew Garrett
Cc: "Lee, Chun-Yi"
Signed-off-by: Matt Fleming
10 Feb, 2016
1 commit
-
This adds ucs2_utf8size(), which tells us how big our ucs2 string is in
bytes, and ucs2_as_utf8, which translates from ucs2 to utf8..Signed-off-by: Peter Jones
Tested-by: Lee, Chun-Yi
Acked-by: Matthew Garrett
Signed-off-by: Matt Fleming
16 Apr, 2013
1 commit
-
We want to be able to use the utf16 functions that are currently present
in the EFI variables code in platform-specific code as well. Move them to
the kernel core, and in the process rename them to accurately describe what
they do - they don't handle UTF16, only UCS2.Signed-off-by: Matthew Garrett
Signed-off-by: Matt Fleming