Lines Matching refs:s
184 char *s; member
194 return es->s[i] == c && !es->escaped[i]; in es_match()
418 free (es->s); in es_free()
431 unquote (char const *s, struct E_string *es) in unquote() argument
433 size_t len = strlen (s); in unquote()
435 es->s = xmalloc (len); in unquote()
439 for (unsigned int i = 0; s[i]; i++) in unquote()
444 switch (s[i]) in unquote()
448 switch (s[i + 1]) in unquote()
482 c = s[i + 1] - '0'; in unquote()
483 oct_digit = s[i + 2] - '0'; in unquote()
488 oct_digit = s[i + 2] - '0'; in unquote()
508 s[i], s[i + 1], s[i + 2], in unquote()
509 s[i], s[i + 1], s[i + 2]); in unquote()
523 c = s[i + 1]; in unquote()
527 es->s[j++] = c; in unquote()
530 es->s[j++] = s[i]; in unquote()
582 make_printable_str (char const *s, size_t len) in make_printable_str() argument
593 unsigned char c = s[i]; in make_printable_str()
753 if (es->s[i] == pre_bracket_char && es->s[i + 1] == ']' in find_closing_delim()
783 if (es->s[i] == ']') in find_bracketed_repeat()
787 *char_to_repeat = es->s[start_idx]; in find_bracketed_repeat()
797 char const *digit_str = &es->s[start_idx + 2]; in find_bracketed_repeat()
832 if (!ISDIGIT (to_uchar (es->s[i])) || es->escaped[i]) in star_digits_closebracket()
852 char const *p = es->s; in build_spec_list()
990 skip_construct (struct Spec_list *s) in skip_construct() argument
992 s->tail = s->tail->next; in skip_construct()
993 s->state = NEW_ELEMENT; in skip_construct()
1011 get_next (struct Spec_list *s, enum Upper_Lower_class *class) in get_next() argument
1020 if (s->state == BEGIN_STATE) in get_next()
1022 s->tail = s->head->next; in get_next()
1023 s->state = NEW_ELEMENT; in get_next()
1026 p = s->tail; in get_next()
1034 s->state = NEW_ELEMENT; in get_next()
1035 s->tail = p->next; in get_next()
1039 if (s->state == NEW_ELEMENT) in get_next()
1040 s->state = p->u.range.first_char; in get_next()
1042 ++(s->state); in get_next()
1043 return_val = s->state; in get_next()
1044 if (s->state == p->u.range.last_char) in get_next()
1046 s->tail = p->next; in get_next()
1047 s->state = NEW_ELEMENT; in get_next()
1067 if (s->state == NEW_ELEMENT) in get_next()
1073 s->state = i; in get_next()
1075 assure (is_char_class_member (p->u.char_class, s->state)); in get_next()
1076 return_val = s->state; in get_next()
1077 for (i = s->state + 1; i < N_CHARS; i++) in get_next()
1081 s->state = i; in get_next()
1084 s->tail = p->next; in get_next()
1085 s->state = NEW_ELEMENT; in get_next()
1096 s->state = NEW_ELEMENT; in get_next()
1097 s->tail = p->next; in get_next()
1104 s->tail = p->next; in get_next()
1105 s->state = NEW_ELEMENT; in get_next()
1106 return_val = get_next (s, class); in get_next()
1110 if (s->state == NEW_ELEMENT) in get_next()
1112 s->state = 0; in get_next()
1114 ++(s->state); in get_next()
1116 if (s->state == p->u.repeated_char.repeat_count) in get_next()
1118 s->tail = p->next; in get_next()
1119 s->state = NEW_ELEMENT; in get_next()
1137 card_of_complement (struct Spec_list *s) in card_of_complement() argument
1143 s->state = BEGIN_STATE; in card_of_complement()
1144 while ((c = get_next (s, nullptr)) != -1) in card_of_complement()
1236 get_spec_stats (struct Spec_list *s) in get_spec_stats() argument
1241 s->n_indefinite_repeats = 0; in get_spec_stats()
1242 s->has_equiv_class = false; in get_spec_stats()
1243 s->has_restricted_char_class = false; in get_spec_stats()
1244 s->has_char_class = false; in get_spec_stats()
1245 for (p = s->head->next; p; p = p->next) in get_spec_stats()
1262 s->has_char_class = true; in get_spec_stats()
1272 s->has_restricted_char_class = true; in get_spec_stats()
1281 s->has_equiv_class = true; in get_spec_stats()
1289 s->indefinite_repeat_element = p; in get_spec_stats()
1290 ++(s->n_indefinite_repeats); in get_spec_stats()
1308 s->length = length; in get_spec_stats()
1346 parse_str (char const *s, struct Spec_list *spec_list) in parse_str() argument
1349 bool ok = unquote (s, &es) && build_spec_list (&es, spec_list); in parse_str()
1413 homogeneous_spec_list (struct Spec_list *s) in homogeneous_spec_list() argument
1417 s->state = BEGIN_STATE; in homogeneous_spec_list()
1419 if ((b = get_next (s, nullptr)) == -1) in homogeneous_spec_list()
1422 while ((c = get_next (s, nullptr)) != -1) in homogeneous_spec_list()
1664 set_initialize (struct Spec_list *s, bool complement_this_set, bool *in_set) in set_initialize() argument
1668 s->state = BEGIN_STATE; in set_initialize()
1669 while ((c = get_next (s, nullptr)) != -1) in set_initialize()