| 175 | } |
| 176 | |
| 177 | |
| 178 | static void |
| 179 | internal_function |
| 180 | re_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 |
no outgoing calls
no test coverage detected