MCPcopy Create free account
hub / github.com/git/git / re_string_char_size_at

Function re_string_char_size_at

compat/regex/regex_internal.h:757–767  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

755#ifdef RE_ENABLE_I18N
756/* Inline functions for re_string. */
757static inline int
758internal_function __attribute ((pure))
759re_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
770static inline wint_t

Callers 3

regex_internal.cFile · 0.85
check_node_accept_bytesFunction · 0.85
parse_bracket_elementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected