Differences From Artifact [b5bfc583a1]:
- File src/OFString_UTF8.m — part of check-in [bceb7ed4c9] at 2019-03-08 00:35:48 on branch trunk — Use dot syntax (user: js, size: 28407) [annotate] [blame] [check-ins using]
To Artifact [c33b1359c4]:
- File src/OFString_UTF8.m — part of check-in [0b962df002] at 2019-04-22 16:53:51 on branch trunk — OFString_UTF8: Improved range checks (user: js, size: 28431) [annotate] [blame] [check-ins using]
︙ | |||
163 164 165 166 167 168 169 | 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | - + | size_t of_string_utf8_get_position(const char *string, size_t idx, size_t length) { for (size_t i = 0; i <= idx; i++) if OF_UNLIKELY ((string[i] & 0xC0) == 0x80) if (++idx > length) |
︙ |