| 755 | #ifdef RE_ENABLE_I18N |
| 756 | /* Inline functions for re_string. */ |
| 757 | static inline int |
| 758 | internal_function __attribute ((pure)) |
| 759 | re_string_char_size_at (const re_string_t *pstr, int idx) |
| 760 | { |
| 761 | int byte_idx; |
| 762 | if (pstr->mb_cur_max == 1) |
| 763 | return 1; |
| 764 | for (byte_idx = 1; idx + byte_idx < pstr->valid_len; ++byte_idx) |
| 765 | if (pstr->wcs[idx + byte_idx] != WEOF) |
| 766 | break; |
| 767 | return byte_idx; |
| 768 | } |
| 769 | |
| 770 | static inline wint_t |
no outgoing calls
no test coverage detected