| 378 | } |
| 379 | |
| 380 | static utf8proc_ssize_t seqindex_write_char_decomposed(utf8proc_uint16_t seqindex, utf8proc_int32_t *dst, utf8proc_ssize_t bufsize, utf8proc_option_t options, int *last_boundclass) { |
| 381 | utf8proc_ssize_t written = 0; |
| 382 | const utf8proc_uint16_t *entry = &utf8proc_sequences[seqindex & 0x3FFF]; |
| 383 | int len = seqindex >> 14; |
| 384 | if (len >= 3) { |
| 385 | len = *entry; |
| 386 | entry++; |
| 387 | } |
| 388 | for (; len >= 0; entry++, len--) { |
| 389 | utf8proc_int32_t entry_cp = seqindex_decode_entry(&entry); |
| 390 | |
| 391 | written += utf8proc_decompose_char(entry_cp, dst ? dst+written : dst, |
| 392 | (bufsize > written) ? (bufsize - written) : 0, options, |
| 393 | last_boundclass); |
| 394 | if (written < 0) return UTF8PROC_ERROR_OVERFLOW; |
| 395 | } |
| 396 | return written; |
| 397 | } |
| 398 | |
| 399 | UTF8PROC_DLLEXPORT utf8proc_int32_t utf8proc_tolower(utf8proc_int32_t c) |
| 400 | { |
no test coverage detected