s1 126 include/crm/common/strings_internal.h int pcmk__strcmp(const char *s1, const char *s2, uint32_t flags); s1 127 include/crm/common/strings_internal.h int pcmk__numeric_strcasecmp(const char *s1, const char *s2); s1 130 include/crm/common/strings_internal.h pcmk__str_eq(const char *s1, const char *s2, uint32_t flags) s1 132 include/crm/common/strings_internal.h return pcmk__strcmp(s1, s2, flags) == 0; s1 160 include/crm/common/strings_internal.h #define pcmk__plural_alt(i, s1, s2) (((i) == 1)? (s1) : (s2)) s1 125 include/crm/common/util_compat.h int pcmk_numeric_strcasecmp(const char *s1, const char *s2); s1 1019 lib/common/strings.c pcmk__numeric_strcasecmp(const char *s1, const char *s2) s1 1021 lib/common/strings.c while (*s1 && *s2) { s1 1022 lib/common/strings.c if (isdigit(*s1) && isdigit(*s2)) { s1 1027 lib/common/strings.c long num1 = strtol(s1, &end1, 10); s1 1031 lib/common/strings.c size_t len1 = end1 - s1; s1 1043 lib/common/strings.c s1 = end1; s1 1047 lib/common/strings.c int lower1 = tolower(*s1); s1 1055 lib/common/strings.c ++s1; s1 1059 lib/common/strings.c if (!*s1 && *s2) { s1 1061 lib/common/strings.c } else if (*s1 && !*s2) { s1 1097 lib/common/strings.c pcmk__strcmp(const char *s1, const char *s2, uint32_t flags) s1 1106 lib/common/strings.c if (s1 == NULL || s2 == NULL) { s1 1119 lib/common/strings.c rc = regexec(r_patt, s1, 0, NULL, 0); s1 1132 lib/common/strings.c if (s1 == s2) { s1 1141 lib/common/strings.c if (s1 == NULL || s2 == NULL) { s1 1149 lib/common/strings.c if (s1 == NULL) { s1 1156 lib/common/strings.c return strcasecmp(s1, s2); s1 1158 lib/common/strings.c return strcmp(s1, s2); s1 1283 lib/common/strings.c pcmk_numeric_strcasecmp(const char *s1, const char *s2) s1 1285 lib/common/strings.c return pcmk__numeric_strcasecmp(s1, s2); s1 18 lib/common/tests/strings/pcmk__strcmp_test.c const char *s1 = "abcd"; s1 21 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s1, s1, pcmk__str_none), ==, 0); s1 22 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_true(pcmk__str_eq(s1, s1, pcmk__str_none)); s1 23 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s1, s2, pcmk__str_none), !=, 0); s1 24 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_false(pcmk__str_eq(s1, s2, pcmk__str_none)); s1 30 lib/common/tests/strings/pcmk__strcmp_test.c const char *s1 = "abcd"; s1 32 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s1, NULL, pcmk__str_null_matches), ==, 0); s1 33 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_true(pcmk__str_eq(s1, NULL, pcmk__str_null_matches)); s1 34 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(NULL, s1, pcmk__str_null_matches), ==, 0); s1 35 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s1, NULL, pcmk__str_none), >, 0); s1 36 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_false(pcmk__str_eq(s1, NULL, pcmk__str_none)); s1 37 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(NULL, s1, pcmk__str_none), <, 0); s1 42 lib/common/tests/strings/pcmk__strcmp_test.c const char *s1 = "abcd"; s1 45 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s1, s2, pcmk__str_none), >, 0); s1 46 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_false(pcmk__str_eq(s1, s2, pcmk__str_none)); s1 47 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s2, s1, pcmk__str_none), <, 0); s1 52 lib/common/tests/strings/pcmk__strcmp_test.c const char *s1 = "abcd"; s1 55 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s1, s2, pcmk__str_casei), ==, 0); s1 56 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_true(pcmk__str_eq(s1, s2, pcmk__str_casei)); s1 61 lib/common/tests/strings/pcmk__strcmp_test.c const char *s1 = "abcd"; s1 65 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s1, NULL, pcmk__str_regex), ==, 1); s1 66 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s1, "a..d", pcmk__str_regex), ==, 0); s1 67 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_true(pcmk__str_eq(s1, "a..d", pcmk__str_regex)); s1 68 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s1, "xxyy", pcmk__str_regex), !=, 0); s1 69 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_false(pcmk__str_eq(s1, "xxyy", pcmk__str_regex)); s1 97 libltdl/libltdl/lt__private.h #define strneq(s1, s2) (strcmp((s1), (s2)) != 0) s1 98 libltdl/libltdl/lt__private.h #define streq(s1, s2) (!strcmp((s1), (s2)))