static void set_connector_list_length_limit(Connector *c, Connector_set *conset, int short_len, Parse_Options opts) { for (; c!=NULL; c=c->next) { if (parse_options_get_all_short_connectors(opts)) { c->length_limit = short_len; } else if (conset == NULL || match_in_connector_set(conset, c, '+')) { c->length_limit = UNLIMITED_LEN; } else { c->length_limit = short_len; } } }
void set_connector_length_limit(Connector* c) { unsigned int len = _opts->short_length; Connector_set * conset = _sent->dict->unlimited_connector_set; if (len > UNLIMITED_LEN) len = UNLIMITED_LEN; if (_opts->all_short || (conset != NULL && !match_in_connector_set(conset, c))) { c->length_limit = len; } }
void set_connector_length_limit(Connector* c) { int short_len = _opts->short_length; if (short_len > UNLIMITED_LEN) short_len = UNLIMITED_LEN; Connector_set *conset = _sent->dict->unlimited_connector_set; if (parse_options_get_all_short_connectors(_opts)) { c->length_limit = short_len; } else if (conset == NULL || match_in_connector_set(_sent, conset, c, '+')) { c->length_limit = UNLIMITED_LEN; } else { c->length_limit = short_len; } }
static void set_connector_list_length_limit(Connector *c, Connector_set *conset, int short_len, bool all_short, const char * ZZZ) { for (; c!=NULL; c=c->next) { if (string_set_cmp (ZZZ, c->string)) { c->length_limit = 1; } else if (all_short || (conset != NULL && !match_in_connector_set(conset, c))) { c->length_limit = short_len; } } }