Lines Matching refs:sval
63 struct sval string;
172 static const struct sval rules_mlvo_svals[_MLVO_NUM_ENTRIES] = {
188 static const struct sval rules_kccgst_svals[_KCCGST_NUM_ENTRIES] = {
199 struct sval sval; member
216 struct sval name;
238 struct sval mlvo_value_at_pos[_MLVO_NUM_ENTRIES];
241 struct sval kccgst_value_at_pos[_KCCGST_NUM_ENTRIES];
266 static struct sval
267 strip_spaces(struct sval v) in strip_spaces()
285 struct matched_sval val = { .sval = { NULL, 0 } }; in split_comma_separated_mlvo()
291 struct matched_sval val = { .sval = { s, 0 } }; in split_comma_separated_mlvo()
292 while (*s != '\0' && *s != ',') { s++; val.sval.len++; } in split_comma_separated_mlvo()
293 val.sval = strip_spaces(val.sval); in split_comma_separated_mlvo()
311 m->rmlvo.model.sval.start = rmlvo->model; in matcher_new()
312 m->rmlvo.model.sval.len = strlen_safe(rmlvo->model); in matcher_new()
338 matcher_group_start_new(struct matcher *m, struct sval name) in matcher_group_start_new()
346 struct sval element) in matcher_group_add_element()
362 struct sval inc) in matcher_include()
466 struct sval ident) in matcher_mapping_set_mlvo()
469 struct sval mlvo_sval; in matcher_mapping_set_mlvo()
525 matcher_mapping_set_kccgst(struct matcher *m, struct scanner *s, struct sval ident) in matcher_mapping_set_kccgst()
528 struct sval kccgst_sval; in matcher_mapping_set_kccgst()
614 struct sval ident, in matcher_rule_set_mlvo_common()
630 struct sval dummy = { NULL, 0 }; in matcher_rule_set_mlvo_wildcard()
636 struct sval ident) in matcher_rule_set_mlvo_group()
643 struct sval ident) in matcher_rule_set_mlvo()
650 struct sval ident) in matcher_rule_set_kccgst()
662 match_group(struct matcher *m, struct sval group_name, struct sval to) in match_group()
665 struct sval *element; in match_group()
692 match_value(struct matcher *m, struct sval val, struct sval to, in match_value()
703 match_value_and_mark(struct matcher *m, struct sval val, in match_value_and_mark()
706 bool matched = match_value(m, val, to->sval, match_type); in match_value_and_mark()
718 darray_char *to, struct sval value) in append_expanded_kccgst_value()
808 if (!expanded_value || expanded_value->sval.len == 0) in append_expanded_kccgst_value()
814 expanded_value->sval.start, in append_expanded_kccgst_value()
815 expanded_value->sval.len); in append_expanded_kccgst_value()
862 struct sval value = m->rule.mlvo_value_at_pos[i]; in matcher_rule_apply_if_matches()
897 struct sval value = m->rule.kccgst_value_at_pos[i]; in matcher_rule_apply_if_matches()
1141 if (!mval->matched && mval->sval.len > 0) in xkb_components_from_rules()
1143 mval->sval.len, mval->sval.start); in xkb_components_from_rules()
1145 if (!mval->matched && mval->sval.len > 0) in xkb_components_from_rules()
1147 mval->sval.len, mval->sval.start); in xkb_components_from_rules()
1149 if (!mval->matched && mval->sval.len > 0) in xkb_components_from_rules()
1151 mval->sval.len, mval->sval.start); in xkb_components_from_rules()
1153 if (!mval->matched && mval->sval.len > 0) in xkb_components_from_rules()
1155 mval->sval.len, mval->sval.start); in xkb_components_from_rules()