Differences From Artifact [341946825e]:
- File
src/windows_1252.m
— part of check-in
[2a27cf3000]
at
2016-01-03 00:41:26
on branch trunk
— Update copyright
While at it, also update the mail address. (user: js, size: 3659) [annotate] [blame] [check-ins using] [more...]
To Artifact [351d5bfad0]:
- File src/windows_1252.m — part of check-in [e0b9167693] at 2016-02-21 15:37:42 on branch trunk — Make use of C99-style for loops (user: js, size: 3654) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
37 38 39 40 41 42 43 | 0x00F8, 0x00F9, 0x00FA, 0x00FB, 0x00FC, 0x00FD, 0x00FE, 0x00FF }; bool of_unicode_to_windows_1252(const of_unichar_t *input, uint8_t *output, size_t length, bool lossy) { | < < | | 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | 0x00F8, 0x00F9, 0x00FA, 0x00FB, 0x00FC, 0x00FD, 0x00FE, 0x00FF }; bool of_unicode_to_windows_1252(const of_unichar_t *input, uint8_t *output, size_t length, bool lossy) { for (size_t i = 0; i < length; i++) { of_unichar_t c = input[i]; if OF_UNLIKELY (c > 0xFF) { if OF_UNLIKELY (c > 0xFFFF) { if (lossy) { output[i] = '?'; continue; |
︙ | ︙ |