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

Function re_string_construct_common

compat/regex/regex_internal.c:177–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177
178static void
179internal_function
180re_string_construct_common (const char *str, int len, re_string_t *pstr,
181 RE_TRANSLATE_TYPE trans, int icase,
182 const re_dfa_t *dfa)
183{
184 pstr->raw_mbs = (const unsigned char *) str;
185 pstr->len = len;
186 pstr->raw_len = len;
187 pstr->trans = trans;
188 pstr->icase = icase ? 1 : 0;
189 pstr->mbs_allocated = (trans != NULL || icase);
190 pstr->mb_cur_max = dfa->mb_cur_max;
191 pstr->is_utf8 = dfa->is_utf8;
192 pstr->map_notascii = dfa->map_notascii;
193 pstr->stop = pstr->len;
194 pstr->raw_stop = pstr->stop;
195}
196
197#ifdef RE_ENABLE_I18N

Callers 2

re_string_allocateFunction · 0.85
re_string_constructFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected