rule 105 include/crm/common/rules.h int pcmk_evaluate_rule(xmlNode *rule, const pcmk_rule_input_t *rule_input, rule 43 include/crm/pengine/rules_compat.h gboolean test_rule(xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role, rule 47 include/crm/pengine/rules_compat.h gboolean pe_test_rule(xmlNode *rule, GHashTable *node_hash, rule 52 include/crm/pengine/rules_compat.h gboolean pe_test_rule_re(xmlNode *rule, GHashTable *node_hash, rule 57 include/crm/pengine/rules_compat.h gboolean pe_test_rule_full(xmlNode *rule, GHashTable *node_hash, rule 82 include/crm/pengine/rules_compat.h gboolean pe_eval_expr(xmlNode *rule, const pe_rule_eval_data_t *rule_data, rule 1385 lib/common/rules.c pcmk_evaluate_rule(xmlNode *rule, const pcmk_rule_input_t *rule_input, rule 1394 lib/common/rules.c if ((rule == NULL) || (rule_input == NULL)) { rule 1398 lib/common/rules.c rule = expand_idref(rule, NULL); rule 1399 lib/common/rules.c if (rule == NULL) { rule 1405 lib/common/rules.c id = pcmk__xe_id(rule); rule 1414 lib/common/rules.c value = crm_element_value(rule, PCMK_XA_BOOLEAN_OP); rule 1432 lib/common/rules.c pcmk__xe_id(rule), value); rule 1438 lib/common/rules.c for (xmlNode *condition = pcmk__xe_first_child(rule, NULL, NULL, NULL); rule 1493 lib/common/rules.c for (xmlNode *rule = pcmk__xe_first_child(xml, PCMK_XE_RULE, NULL, NULL); rule 1494 lib/common/rules.c rule != NULL; rule = pcmk__xe_next_same(rule)) { rule 1506 lib/common/rules.c rc = pcmk_evaluate_rule(rule, rule_input, next_change); rule 24 lib/pacemaker/pcmk_sched_location.c get_node_score(const char *rule, const char *score, bool raw, rule 30 lib/pacemaker/pcmk_sched_location.c pcmk__config_warn("Rule %s: no score specified (assuming 0)", rule); rule 46 lib/pacemaker/pcmk_sched_location.c rule, pcmk__node_name(node), score); rule 51 lib/pacemaker/pcmk_sched_location.c rule, pcmk__node_name(node), attr_score, score); rule 316 lib/pengine/rules.c pe_test_rule(xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role, rule 334 lib/pengine/rules.c return pcmk_evaluate_rule(rule, &rule_input, next_change) == pcmk_rc_ok; rule 344 lib/pengine/rules.c test_rule(xmlNode * rule, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now) rule 346 lib/pengine/rules.c return pe_test_rule(rule, node_hash, role, now, NULL, NULL); rule 350 lib/pengine/rules.c pe_test_rule_re(xmlNode * rule, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now, pe_re_match_data_t * re_match_data) rule 357 lib/pengine/rules.c return pe_test_rule(rule, node_hash, role, now, NULL, &match_data); rule 361 lib/pengine/rules.c pe_test_rule_full(xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role, rule 364 lib/pengine/rules.c return pe_test_rule(rule, node_hash, role, now, NULL, match_data); rule 416 lib/pengine/rules.c pe_eval_expr(xmlNode *rule, const pe_rule_eval_data_t *rule_data, rule 422 lib/pengine/rules.c return pcmk_evaluate_rule(rule, &rule_input, next_change) == pcmk_rc_ok; rule 10040 maint/gnulib/lib/gen-uni-tables.c struct special_casing_rule *rule = casing_rules[j]; rule 10043 maint/gnulib/lib/gen-uni-tables.c rule->casefold_mapping[0] = to_casefold (rule->code); rule 10045 maint/gnulib/lib/gen-uni-tables.c rule->casefold_mapping[k] = 0; rule 10062 maint/gnulib/lib/gen-uni-tables.c struct special_casing_rule *rule = casing_rules[j]; rule 10064 maint/gnulib/lib/gen-uni-tables.c if (rule->code == cfrule->code rule 10066 maint/gnulib/lib/gen-uni-tables.c || (rule->language != NULL rule 10067 maint/gnulib/lib/gen-uni-tables.c && strcmp (rule->language, cfrule->language) == 0))) rule 10069 maint/gnulib/lib/gen-uni-tables.c memcpy (rule->casefold_mapping, cfrule->mapping, rule 10070 maint/gnulib/lib/gen-uni-tables.c sizeof (rule->casefold_mapping)); rule 10073 maint/gnulib/lib/gen-uni-tables.c ? rule->language == NULL rule 10074 maint/gnulib/lib/gen-uni-tables.c : rule->language != NULL rule 10075 maint/gnulib/lib/gen-uni-tables.c && strcmp (rule->language, cfrule->language) == 0) rule 10076 maint/gnulib/lib/gen-uni-tables.c && rule->context == SCC_ALWAYS) rule 10079 maint/gnulib/lib/gen-uni-tables.c found_rule = rule; rule 10094 maint/gnulib/lib/gen-uni-tables.c struct special_casing_rule *rule = casing_rules[j]; rule 10096 maint/gnulib/lib/gen-uni-tables.c if (rule->code == cfrule->code rule 10097 maint/gnulib/lib/gen-uni-tables.c && rule->context == SCC_ALWAYS rule 10098 maint/gnulib/lib/gen-uni-tables.c && rule->language == NULL) rule 10101 maint/gnulib/lib/gen-uni-tables.c found_rule = rule; rule 10209 maint/gnulib/lib/gen-uni-tables.c struct special_casing_rule *rule = casing_rules[i]; rule 10212 maint/gnulib/lib/gen-uni-tables.c if (i > 0 && rule->code == casing_rules[i - 1]->code) rule 10217 maint/gnulib/lib/gen-uni-tables.c if (!(rule->code < 0x10000)) rule 10219 maint/gnulib/lib/gen-uni-tables.c fprintf (stderr, "special rule #%u: code %u out of range\n", i, rule->code); rule 10224 maint/gnulib/lib/gen-uni-tables.c (rule->code >> 8) & 0xff, rule->code & 0xff, minor); rule 10227 maint/gnulib/lib/gen-uni-tables.c i + 1 < num_casing_rules && casing_rules[i + 1]->code == rule->code ? 1 : 0); rule 10229 maint/gnulib/lib/gen-uni-tables.c context = rule->context; rule 10262 maint/gnulib/lib/gen-uni-tables.c if (rule->language != NULL) rule 10264 maint/gnulib/lib/gen-uni-tables.c assert (strlen (rule->language) == 2); rule 10265 maint/gnulib/lib/gen-uni-tables.c fprintf (stream, "{ '%c', '%c' }, ", rule->language[0], rule->language[1]); rule 10275 maint/gnulib/lib/gen-uni-tables.c if (!(rule->upper_mapping[j] < 0x10000)) rule 10277 maint/gnulib/lib/gen-uni-tables.c fprintf (stderr, "special rule #%u: upper mapping of code %u out of range\n", i, rule->code); rule 10280 maint/gnulib/lib/gen-uni-tables.c if (rule->upper_mapping[j] != 0) rule 10281 maint/gnulib/lib/gen-uni-tables.c fprintf (stream, "0x%04X", rule->upper_mapping[j]); rule 10290 maint/gnulib/lib/gen-uni-tables.c if (!(rule->lower_mapping[j] < 0x10000)) rule 10292 maint/gnulib/lib/gen-uni-tables.c fprintf (stderr, "special rule #%u: lower mapping of code %u out of range\n", i, rule->code); rule 10295 maint/gnulib/lib/gen-uni-tables.c if (rule->lower_mapping[j] != 0) rule 10296 maint/gnulib/lib/gen-uni-tables.c fprintf (stream, "0x%04X", rule->lower_mapping[j]); rule 10305 maint/gnulib/lib/gen-uni-tables.c if (!(rule->title_mapping[j] < 0x10000)) rule 10307 maint/gnulib/lib/gen-uni-tables.c fprintf (stderr, "special rule #%u: title mapping of code %u out of range\n", i, rule->code); rule 10310 maint/gnulib/lib/gen-uni-tables.c if (rule->title_mapping[j] != 0) rule 10311 maint/gnulib/lib/gen-uni-tables.c fprintf (stream, "0x%04X", rule->title_mapping[j]); rule 10320 maint/gnulib/lib/gen-uni-tables.c if (!(rule->casefold_mapping[j] < 0x10000)) rule 10322 maint/gnulib/lib/gen-uni-tables.c fprintf (stderr, "special rule #%u: casefold mapping of code %u out of range\n", i, rule->code); rule 10325 maint/gnulib/lib/gen-uni-tables.c if (rule->casefold_mapping[j] != 0) rule 10326 maint/gnulib/lib/gen-uni-tables.c fprintf (stream, "0x%04X", rule->casefold_mapping[j]); rule 3785 maint/gnulib/lib/regexec.c int32_t rule = idx >> 24; rule 3796 maint/gnulib/lib/regexec.c && equiv_class_rule == rule rule 85 maint/gnulib/lib/unicase/u-casemap.h const struct special_casing_rule *rule = rule 88 maint/gnulib/lib/unicase/u-casemap.h if (rule == NULL) rule 93 maint/gnulib/lib/unicase/u-casemap.h if (rule->language[0] == '\0' rule 95 maint/gnulib/lib/unicase/u-casemap.h && iso639_language[0] == rule->language[0] rule 96 maint/gnulib/lib/unicase/u-casemap.h && iso639_language[1] == rule->language[1])) rule 99 maint/gnulib/lib/unicase/u-casemap.h int context = rule->context; rule 238 maint/gnulib/lib/unicase/u-casemap.h if (rule->context < 0) rule 246 maint/gnulib/lib/unicase/u-casemap.h (const unsigned short *)((const char *)rule + offset_in_rule); rule 272 maint/gnulib/lib/unicase/u-casemap.h if (!rule->has_next) rule 161 maint/gnulib/lib/unicase/u-ct-totitle.h const struct special_casing_rule *rule = rule 164 maint/gnulib/lib/unicase/u-ct-totitle.h if (rule == NULL) rule 169 maint/gnulib/lib/unicase/u-ct-totitle.h if (rule->language[0] == '\0' rule 171 maint/gnulib/lib/unicase/u-ct-totitle.h && iso639_language[0] == rule->language[0] rule 172 maint/gnulib/lib/unicase/u-ct-totitle.h && iso639_language[1] == rule->language[1])) rule 175 maint/gnulib/lib/unicase/u-ct-totitle.h int context = rule->context; rule 314 maint/gnulib/lib/unicase/u-ct-totitle.h if (rule->context < 0) rule 322 maint/gnulib/lib/unicase/u-ct-totitle.h (const unsigned short *)((const char *)rule + offset_in_rule); rule 348 maint/gnulib/lib/unicase/u-ct-totitle.h if (!rule->has_next) rule 71 maint/gnulib/lib/uninorm/composition.c const struct composition_rule *rule; rule 80 maint/gnulib/lib/uninorm/composition.c rule = gl_uninorm_compose_lookup (codes, 6); rule 81 maint/gnulib/lib/uninorm/composition.c if (rule != NULL) rule 82 maint/gnulib/lib/uninorm/composition.c return rule->combined; rule 104 tools/crm_resource_ban.c xmlNode *rule = pcmk__xe_create(location, PCMK_XE_RULE); rule 105 tools/crm_resource_ban.c xmlNode *expr = pcmk__xe_create(rule, PCMK_XE_EXPRESSION); rule 107 tools/crm_resource_ban.c crm_xml_set_id(rule, "cli-ban-%s-on-%s-rule", rsc_id, host); rule 108 tools/crm_resource_ban.c crm_xml_add(rule, PCMK_XA_SCORE, PCMK_VALUE_MINUS_INFINITY); rule 109 tools/crm_resource_ban.c crm_xml_add(rule, PCMK_XA_BOOLEAN_OP, PCMK_VALUE_AND); rule 117 tools/crm_resource_ban.c expr = pcmk__xe_create(rule, PCMK_XE_DATE_EXPRESSION); rule 184 tools/crm_resource_ban.c xmlNode *rule = pcmk__xe_create(location, PCMK_XE_RULE); rule 185 tools/crm_resource_ban.c xmlNode *expr = pcmk__xe_create(rule, PCMK_XE_EXPRESSION); rule 187 tools/crm_resource_ban.c crm_xml_set_id(rule, "cli-prefer-rule-%s", rsc_id); rule 188 tools/crm_resource_ban.c crm_xml_add(rule, PCMK_XA_SCORE, PCMK_VALUE_INFINITY); rule 189 tools/crm_resource_ban.c crm_xml_add(rule, PCMK_XA_BOOLEAN_OP, PCMK_VALUE_AND); rule 197 tools/crm_resource_ban.c expr = pcmk__xe_create(rule, PCMK_XE_DATE_EXPRESSION);