• Home
  • Raw
  • Download

Lines Matching refs:feature

113 parse_feature_value_prefix (const char **pp, const char *end, hb_feature_t *feature)  in parse_feature_value_prefix()  argument
116 feature->value = 0; in parse_feature_value_prefix()
119 feature->value = 1; in parse_feature_value_prefix()
126 parse_feature_tag (const char **pp, const char *end, hb_feature_t *feature) in parse_feature_tag() argument
145 feature->tag = hb_tag_from_string (p, *pp - p); in parse_feature_tag()
162 parse_feature_indices (const char **pp, const char *end, hb_feature_t *feature) in parse_feature_indices() argument
168 feature->start = 0; in parse_feature_indices()
169 feature->end = (unsigned int) -1; in parse_feature_indices()
174 has_start = parse_uint (pp, end, &feature->start); in parse_feature_indices()
177 parse_uint (pp, end, &feature->end); in parse_feature_indices()
180 feature->end = feature->start + 1; in parse_feature_indices()
187 parse_feature_value_postfix (const char **pp, const char *end, hb_feature_t *feature) in parse_feature_value_postfix() argument
190 bool had_value = parse_uint (pp, end, &feature->value) || in parse_feature_value_postfix()
191 parse_bool (pp, end, &feature->value); in parse_feature_value_postfix()
200 parse_one_feature (const char **pp, const char *end, hb_feature_t *feature) in parse_one_feature() argument
202 return parse_feature_value_prefix (pp, end, feature) && in parse_one_feature()
203 parse_feature_tag (pp, end, feature) && in parse_one_feature()
204 parse_feature_indices (pp, end, feature) && in parse_one_feature()
205 parse_feature_value_postfix (pp, end, feature) && in parse_one_feature()
227 hb_feature_t *feature) in hb_feature_from_string() argument
236 if (feature) in hb_feature_from_string()
237 *feature = feat; in hb_feature_from_string()
241 if (feature) in hb_feature_from_string()
242 memset (feature, 0, sizeof (*feature)); in hb_feature_from_string()
259 hb_feature_to_string (hb_feature_t *feature, in hb_feature_to_string() argument
266 if (feature->value == 0) in hb_feature_to_string()
268 hb_tag_to_string (feature->tag, s + len); in hb_feature_to_string()
272 if (feature->start != 0 || feature->end != (unsigned int) -1) in hb_feature_to_string()
275 if (feature->start) in hb_feature_to_string()
276 len += MAX (0, snprintf (s + len, ARRAY_LENGTH (s) - len, "%u", feature->start)); in hb_feature_to_string()
277 if (feature->end != feature->start + 1) { in hb_feature_to_string()
279 if (feature->end != (unsigned int) -1) in hb_feature_to_string()
280 len += MAX (0, snprintf (s + len, ARRAY_LENGTH (s) - len, "%u", feature->end)); in hb_feature_to_string()
284 if (feature->value > 1) in hb_feature_to_string()
287 len += MAX (0, snprintf (s + len, ARRAY_LENGTH (s) - len, "%u", feature->value)); in hb_feature_to_string()