rule 42 include/crm/pengine/rules.h gboolean pe_test_rule(xmlNode *rule, GHashTable *node_hash, rule 67 include/crm/pengine/rules.h gboolean pe_eval_expr(xmlNode *rule, const pe_rule_eval_data_t *rule_data, rule 35 include/crm/pengine/rules_compat.h gboolean test_rule(xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role, rule 39 include/crm/pengine/rules_compat.h gboolean pe_test_rule_re(xmlNode *rule, GHashTable *node_hash, rule 44 include/crm/pengine/rules_compat.h gboolean pe_test_rule_full(xmlNode *rule, GHashTable *node_hash, rule 23 lib/pacemaker/pcmk_sched_location.c get_node_score(const char *rule, const char *score, bool raw, rule 29 lib/pacemaker/pcmk_sched_location.c pe_err("Rule %s: no score specified. Assuming 0.", rule); rule 43 lib/pacemaker/pcmk_sched_location.c rule, pe__node_name(node), score); rule 48 lib/pacemaker/pcmk_sched_location.c rule, pe__node_name(node), attr_score, score); rule 55 lib/pengine/rules.c pe_test_rule(xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role, rule 68 lib/pengine/rules.c return pe_eval_expr(rule, &rule_data, next_change); rule 635 lib/pengine/rules.c for (xmlNode *rule = first_named_child(ruleset, XML_TAG_RULE); rule 636 lib/pengine/rules.c rule != NULL; rule = crm_next_same_xml(rule)) { rule 639 lib/pengine/rules.c if (pe_eval_expr(rule, rule_data, next_change)) { rule 663 lib/pengine/rules.c pe_eval_expr(xmlNode *rule, const pe_rule_eval_data_t *rule_data, rule 673 lib/pengine/rules.c rule = expand_idref(rule, NULL); rule 674 lib/pengine/rules.c value = crm_element_value(rule, XML_RULE_ATTR_BOOLEAN_OP); rule 680 lib/pengine/rules.c crm_trace("Testing rule %s", ID(rule)); rule 681 lib/pengine/rules.c for (expr = pcmk__xe_first_child(rule); expr != NULL; rule 688 lib/pengine/rules.c crm_trace("Expression %s/%s passed", ID(rule), ID(expr)); rule 692 lib/pengine/rules.c crm_trace("Expression %s/%s failed", ID(rule), ID(expr)); rule 698 lib/pengine/rules.c crm_err("Invalid Rule %s: rules must contain at least one expression", ID(rule)); rule 701 lib/pengine/rules.c crm_trace("Rule %s %s", ID(rule), passed ? "passed" : "failed"); rule 1251 lib/pengine/rules.c test_rule(xmlNode * rule, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now) rule 1253 lib/pengine/rules.c return pe_test_rule(rule, node_hash, role, now, NULL, NULL); rule 1257 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 1264 lib/pengine/rules.c return pe_test_rule(rule, node_hash, role, now, NULL, &match_data); rule 1268 lib/pengine/rules.c pe_test_rule_full(xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role, rule 1271 lib/pengine/rules.c return pe_test_rule(rule, node_hash, role, now, NULL, match_data); 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 103 tools/crm_resource_ban.c xmlNode *rule = create_xml_node(location, XML_TAG_RULE); rule 104 tools/crm_resource_ban.c xmlNode *expr = create_xml_node(rule, XML_TAG_EXPRESSION); rule 106 tools/crm_resource_ban.c crm_xml_set_id(rule, "cli-ban-%s-on-%s-rule", rsc_id, host); rule 107 tools/crm_resource_ban.c crm_xml_add(rule, XML_RULE_ATTR_SCORE, CRM_MINUS_INFINITY_S); rule 108 tools/crm_resource_ban.c crm_xml_add(rule, XML_RULE_ATTR_BOOLEAN_OP, "and"); rule 116 tools/crm_resource_ban.c expr = create_xml_node(rule, "date_expression"); rule 180 tools/crm_resource_ban.c xmlNode *rule = create_xml_node(location, XML_TAG_RULE); rule 181 tools/crm_resource_ban.c xmlNode *expr = create_xml_node(rule, XML_TAG_EXPRESSION); rule 183 tools/crm_resource_ban.c crm_xml_set_id(rule, "cli-prefer-rule-%s", rsc_id); rule 184 tools/crm_resource_ban.c crm_xml_add(rule, XML_RULE_ATTR_SCORE, CRM_INFINITY_S); rule 185 tools/crm_resource_ban.c crm_xml_add(rule, XML_RULE_ATTR_BOOLEAN_OP, "and"); rule 193 tools/crm_resource_ban.c expr = create_xml_node(rule, "date_expression");