rule 40 include/crm/pengine/rules.h gboolean pe_test_rule(xmlNode *rule, GHashTable *node_hash, rule 71 include/crm/pengine/rules.h gboolean pe_eval_expr(xmlNode *rule, pe_rule_eval_data_t *rule_data, rule 30 include/crm/pengine/rules_compat.h gboolean test_rule(xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role, rule 34 include/crm/pengine/rules_compat.h gboolean pe_test_rule_re(xmlNode *rule, GHashTable *node_hash, rule 39 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, node->details->uname, score); rule 43 lib/pacemaker/pcmk_sched_location.c rule, node->details->uname, 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 416 lib/pengine/rules.c xmlNode * rule = NULL; rule 419 lib/pengine/rules.c for (rule = pcmk__xe_first_child(attr_set); rule != NULL; rule 420 lib/pengine/rules.c rule = pcmk__xe_next(rule)) { rule 422 lib/pengine/rules.c if (pcmk__str_eq((const char *)rule->name, XML_TAG_RULE, rule 424 lib/pengine/rules.c for (expr = pcmk__xe_first_child(rule); expr != NULL; rule 428 lib/pengine/rules.c return rule; rule 441 lib/pengine/rules.c xmlNode *rule = NULL; rule 450 lib/pengine/rules.c rule = get_versioned_rule(attr_set_copy); rule 451 lib/pengine/rules.c if (!rule) { rule 456 lib/pengine/rules.c expr = pcmk__xe_first_child(rule); rule 745 lib/pengine/rules.c for (xmlNode *rule = first_named_child(ruleset, XML_TAG_RULE); rule 746 lib/pengine/rules.c rule != NULL; rule = crm_next_same_xml(rule)) { rule 749 lib/pengine/rules.c if (pe_eval_expr(rule, rule_data, next_change)) { rule 764 lib/pengine/rules.c pe_eval_expr(xmlNode *rule, pe_rule_eval_data_t *rule_data, crm_time_t *next_change) rule 773 lib/pengine/rules.c rule = expand_idref(rule, NULL); rule 774 lib/pengine/rules.c value = crm_element_value(rule, XML_RULE_ATTR_BOOLEAN_OP); rule 780 lib/pengine/rules.c crm_trace("Testing rule %s", ID(rule)); rule 781 lib/pengine/rules.c for (expr = pcmk__xe_first_child(rule); expr != NULL; rule 788 lib/pengine/rules.c crm_trace("Expression %s/%s passed", ID(rule), ID(expr)); rule 792 lib/pengine/rules.c crm_trace("Expression %s/%s failed", ID(rule), ID(expr)); rule 798 lib/pengine/rules.c crm_err("Invalid Rule %s: rules must contain at least one expression", ID(rule)); rule 801 lib/pengine/rules.c crm_trace("Rule %s %s", ID(rule), passed ? "passed" : "failed"); rule 1349 lib/pengine/rules.c test_rule(xmlNode * rule, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now) rule 1351 lib/pengine/rules.c return pe_test_rule(rule, node_hash, role, now, NULL, NULL); rule 1355 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 1362 lib/pengine/rules.c return pe_test_rule(rule, node_hash, role, now, NULL, &match_data); rule 1366 lib/pengine/rules.c pe_test_rule_full(xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role, rule 1369 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 3822 maint/gnulib/lib/regexec.c int32_t rule = idx >> 24; rule 3833 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 130 tools/crm_resource_ban.c xmlNode *rule = create_xml_node(location, XML_TAG_RULE); rule 131 tools/crm_resource_ban.c xmlNode *expr = create_xml_node(rule, XML_TAG_EXPRESSION); rule 133 tools/crm_resource_ban.c crm_xml_set_id(rule, "cli-ban-%s-on-%s-rule", rsc_id, host); rule 134 tools/crm_resource_ban.c crm_xml_add(rule, XML_RULE_ATTR_SCORE, CRM_MINUS_INFINITY_S); rule 135 tools/crm_resource_ban.c crm_xml_add(rule, XML_RULE_ATTR_BOOLEAN_OP, "and"); rule 143 tools/crm_resource_ban.c expr = create_xml_node(rule, "date_expression"); rule 196 tools/crm_resource_ban.c xmlNode *rule = create_xml_node(location, XML_TAG_RULE); rule 197 tools/crm_resource_ban.c xmlNode *expr = create_xml_node(rule, XML_TAG_EXPRESSION); rule 199 tools/crm_resource_ban.c crm_xml_set_id(rule, "cli-prefer-rule-%s", rsc_id); rule 200 tools/crm_resource_ban.c crm_xml_add(rule, XML_RULE_ATTR_SCORE, CRM_INFINITY_S); rule 201 tools/crm_resource_ban.c crm_xml_add(rule, XML_RULE_ATTR_BOOLEAN_OP, "and"); rule 209 tools/crm_resource_ban.c expr = create_xml_node(rule, "date_expression"); rule 35 tools/crm_rule.c char *rule; rule 64 tools/crm_rule.c { "rule", 'r', 0, G_OPTION_ARG_STRING, &options.rule, rule 264 tools/crm_rule.c if (options.rule == NULL) { rule 337 tools/crm_rule.c rc = crm_rule_check(data_set, options.rule, rule_date);