| 778 | |
| 779 | # ifndef NOT_IN_libc |
| 780 | static int |
| 781 | internal_function __attribute ((pure)) |
| 782 | re_string_elem_size_at (const re_string_t *pstr, int idx) |
| 783 | { |
| 784 | # ifdef _LIBC |
| 785 | const unsigned char *p, *extra; |
| 786 | const int32_t *table, *indirect; |
| 787 | int32_t tmp; |
| 788 | # include <locale/weight.h> |
| 789 | uint_fast32_t nrules = _NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_NRULES); |
| 790 | |
| 791 | if (nrules != 0) |
| 792 | { |
| 793 | table = (const int32_t *) _NL_CURRENT (LC_COLLATE, _NL_COLLATE_TABLEMB); |
| 794 | extra = (const unsigned char *) |
| 795 | _NL_CURRENT (LC_COLLATE, _NL_COLLATE_EXTRAMB); |
| 796 | indirect = (const int32_t *) _NL_CURRENT (LC_COLLATE, |
| 797 | _NL_COLLATE_INDIRECTMB); |
| 798 | p = pstr->mbs + idx; |
| 799 | tmp = findidx (&p); |
| 800 | return p - pstr->mbs - idx; |
| 801 | } |
| 802 | else |
| 803 | # endif /* _LIBC */ |
| 804 | return 1; |
| 805 | } |
| 806 | # endif |
| 807 | #endif /* RE_ENABLE_I18N */ |
no outgoing calls
no test coverage detected