s2 50 include/crm/common/strings_internal.h int pcmk__strcmp(const char *s1, const char *s2, uint32_t flags); s2 53 include/crm/common/strings_internal.h pcmk__str_eq(const char *s1, const char *s2, uint32_t flags) s2 55 include/crm/common/strings_internal.h return pcmk__strcmp(s1, s2, flags) == 0; s2 83 include/crm/common/strings_internal.h #define pcmk__plural_alt(i, s1, s2) (((i) == 1)? (s1) : (s2)) s2 60 include/crm/common/util.h int pcmk_numeric_strcasecmp(const char *s1, const char *s2); s2 931 lib/common/strings.c pcmk_numeric_strcasecmp(const char *s1, const char *s2) s2 933 lib/common/strings.c while (*s1 && *s2) { s2 934 lib/common/strings.c if (isdigit(*s1) && isdigit(*s2)) { s2 940 lib/common/strings.c long num2 = strtol(s2, &end2, 10); s2 944 lib/common/strings.c size_t len2 = end2 - s2; s2 956 lib/common/strings.c s2 = end2; s2 960 lib/common/strings.c int lower2 = tolower(*s2); s2 968 lib/common/strings.c ++s2; s2 971 lib/common/strings.c if (!*s1 && *s2) { s2 973 lib/common/strings.c } else if (*s1 && !*s2) { s2 1009 lib/common/strings.c pcmk__strcmp(const char *s1, const char *s2, uint32_t flags) s2 1018 lib/common/strings.c if (s1 == NULL || s2 == NULL) { s2 1026 lib/common/strings.c regcomp_rc = regcomp(r_patt, s2, reg_flags); s2 1029 lib/common/strings.c crm_err("Bad regex '%s' for update: %s", s2, strerror(regcomp_rc)); s2 1044 lib/common/strings.c if (s1 == s2) { s2 1053 lib/common/strings.c if (s1 == NULL || s2 == NULL) { s2 1063 lib/common/strings.c } else if (s2 == NULL) { s2 1068 lib/common/strings.c return strcasecmp(s1, s2); s2 1070 lib/common/strings.c return strcmp(s1, s2); s2 10 lib/common/tests/strings/pcmk__strcmp_test.c const char *s2 = "wxyz"; s2 14 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s1, s2, pcmk__str_none), !=, 0); s2 15 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__str_eq(s1, s2, pcmk__str_none), ==, false); s2 34 lib/common/tests/strings/pcmk__strcmp_test.c const char *s2 = "ABCD"; s2 36 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s1, s2, pcmk__str_none), >, 0); s2 37 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__str_eq(s1, s2, pcmk__str_none), ==, false); s2 38 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s2, s1, pcmk__str_none), <, 0); s2 44 lib/common/tests/strings/pcmk__strcmp_test.c const char *s2 = "ABCD"; s2 46 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s1, s2, pcmk__str_casei), ==, 0); s2 47 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__str_eq(s1, s2, pcmk__str_casei), ==, true); s2 53 lib/common/tests/strings/pcmk__strcmp_test.c const char *s2 = "ABCD"; s2 61 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s2, "a..d", pcmk__str_regex|pcmk__str_casei), ==, 0); s2 62 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__str_eq(s2, "a..d", pcmk__str_regex|pcmk__str_casei), ==, true); s2 63 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s2, "a..d", pcmk__str_regex), !=, 0); s2 64 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__str_eq(s2, "a..d", pcmk__str_regex), ==, false); s2 65 lib/common/tests/strings/pcmk__strcmp_test.c g_assert_cmpint(pcmk__strcmp(s2, "*ab", pcmk__str_regex), ==, 1); s2 97 libltdl/libltdl/lt__private.h #define STRNEQ(s1, s2) (strcmp((s1), (s2)) != 0) s2 98 libltdl/libltdl/lt__private.h #define STREQ(s1, s2) (strcmp((s1), (s2)) == 0)