| 1488 | } |
| 1489 | |
| 1490 | static int utf8len(const uint8_t *b) |
| 1491 | { |
| 1492 | int len=0; |
| 1493 | int val; |
| 1494 | while(*b){ |
| 1495 | GET_UTF8(val, *b++, return -1;) |
| 1496 | len++; |
| 1497 | } |
| 1498 | return len; |
| 1499 | } |
| 1500 | |
| 1501 | static int ascii_to_wc(ByteIOContext *pb, const uint8_t *b) |
| 1502 | { |
no outgoing calls
no test coverage detected