rule 42 include/crm/pengine/rules.h gboolean pe_test_rule(xmlNode *rule, GHashTable *node_hash, rule 65 include/crm/pengine/rules.h gboolean pe_eval_expr(xmlNode *rule, 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 22 lib/pacemaker/pcmk_sched_location.c get_node_score(const char *rule, const char *score, bool raw, rule 28 lib/pacemaker/pcmk_sched_location.c pe_err("Rule %s: no score specified. Assuming 0.", rule); rule 38 lib/pacemaker/pcmk_sched_location.c rule, pe__node_name(node), score); rule 43 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 619 lib/pengine/rules.c for (xmlNode *rule = first_named_child(ruleset, XML_TAG_RULE); rule 620 lib/pengine/rules.c rule != NULL; rule = crm_next_same_xml(rule)) { rule 623 lib/pengine/rules.c if (pe_eval_expr(rule, rule_data, next_change)) { rule 638 lib/pengine/rules.c pe_eval_expr(xmlNode *rule, pe_rule_eval_data_t *rule_data, crm_time_t *next_change) rule 647 lib/pengine/rules.c rule = expand_idref(rule, NULL); rule 648 lib/pengine/rules.c value = crm_element_value(rule, XML_RULE_ATTR_BOOLEAN_OP); rule 654 lib/pengine/rules.c crm_trace("Testing rule %s", ID(rule)); rule 655 lib/pengine/rules.c for (expr = pcmk__xe_first_child(rule); expr != NULL; rule 662 lib/pengine/rules.c crm_trace("Expression %s/%s passed", ID(rule), ID(expr)); rule 666 lib/pengine/rules.c crm_trace("Expression %s/%s failed", ID(rule), ID(expr)); rule 672 lib/pengine/rules.c crm_err("Invalid Rule %s: rules must contain at least one expression", ID(rule)); rule 675 lib/pengine/rules.c crm_trace("Rule %s %s", ID(rule), passed ? "passed" : "failed"); rule 1213 lib/pengine/rules.c test_rule(xmlNode * rule, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now) rule 1215 lib/pengine/rules.c return pe_test_rule(rule, node_hash, role, now, NULL, NULL); rule 1219 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 1226 lib/pengine/rules.c return pe_test_rule(rule, node_hash, role, now, NULL, &match_data); rule 1230 lib/pengine/rules.c pe_test_rule_full(xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role, rule 1233 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 128 tools/crm_resource_ban.c xmlNode *rule = create_xml_node(location, XML_TAG_RULE); rule 129 tools/crm_resource_ban.c xmlNode *expr = create_xml_node(rule, XML_TAG_EXPRESSION); rule 131 tools/crm_resource_ban.c crm_xml_set_id(rule, "cli-ban-%s-on-%s-rule", rsc_id, host); rule 132 tools/crm_resource_ban.c crm_xml_add(rule, XML_RULE_ATTR_SCORE, CRM_MINUS_INFINITY_S); rule 133 tools/crm_resource_ban.c crm_xml_add(rule, XML_RULE_ATTR_BOOLEAN_OP, "and"); rule 141 tools/crm_resource_ban.c expr = create_xml_node(rule, "date_expression"); rule 194 tools/crm_resource_ban.c xmlNode *rule = create_xml_node(location, XML_TAG_RULE); rule 195 tools/crm_resource_ban.c xmlNode *expr = create_xml_node(rule, XML_TAG_EXPRESSION); rule 197 tools/crm_resource_ban.c crm_xml_set_id(rule, "cli-prefer-rule-%s", rsc_id); rule 198 tools/crm_resource_ban.c crm_xml_add(rule, XML_RULE_ATTR_SCORE, CRM_INFINITY_S); rule 199 tools/crm_resource_ban.c crm_xml_add(rule, XML_RULE_ATTR_BOOLEAN_OP, "and"); rule 207 tools/crm_resource_ban.c expr = create_xml_node(rule, "date_expression");