Differences From Artifact [744cbf950c]:
- File src/encodings/iso_8859-2.m — part of check-in [da8cd1c0ad] at 2017-09-09 22:21:37 on branch trunk — src/encodings: Rename a few files (user: js, size: 3944) [annotate] [blame] [check-ins using]
- File src/encodings/iso_8859_2.m — part of check-in [37d2a81754] at 2017-05-07 21:25:56 on branch trunk — Use char{16,32}_t instead of of_char{16,32}_t (user: js, size: 3944) [annotate] [blame] [check-ins using]
To Artifact [de487566d1]:
- File src/encodings/iso_8859-2.m — part of check-in [a06354b42a] at 2017-10-22 15:05:39 on branch trunk — Make Apple GCC with -Wshadow happy (user: js, size: 3942) [annotate] [blame] [check-ins using]
- File src/encodings/iso_8859_2.m — part of check-in [31c0f5b89e] at 2017-10-22 14:09:23 on branch 0.90 — Make Apple GCC with -Wshadow happy (user: js, size: 3942) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
84 85 86 87 88 89 90 |
of_unicode_to_iso_8859_2(const of_unichar_t *input, unsigned char *output,
size_t length, bool lossy)
{
for (size_t i = 0; i < length; i++) {
of_unichar_t c = input[i];
if OF_UNLIKELY (c > 0x7F) {
| | | 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
of_unicode_to_iso_8859_2(const of_unichar_t *input, unsigned char *output,
size_t length, bool lossy)
{
for (size_t i = 0; i < length; i++) {
of_unichar_t c = input[i];
if OF_UNLIKELY (c > 0x7F) {
uint8_t idx;
if OF_UNLIKELY (c > 0xFFFF) {
if (lossy) {
output[i] = '?';
continue;
} else
return false;
|
| ︙ | ︙ |