Differences From Artifact [31a2de52cc]:
- File
src/codepage_437.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: 8372) [annotate] [blame] [check-ins using] [more...]
To Artifact [02f57a645e]:
- File src/codepage_437.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: 8367) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
37 38 39 40 41 42 43 | 0x00B0, 0x2219, 0x00B7, 0x221A, 0x207F, 0x00B2, 0x25A0, 0x00A0 }; bool of_unicode_to_codepage_437(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 | 0x00B0, 0x2219, 0x00B7, 0x221A, 0x207F, 0x00B2, 0x25A0, 0x00A0 }; bool of_unicode_to_codepage_437(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 > 0x7F) { if OF_UNLIKELY (c > 0xFFFF) { if (lossy) { output[i] = '?'; continue; |
︙ | ︙ |