BloombergLP::bdlb::String::upperCaseCmp

upperCaseCmp overloads

Synopses

Declared in <bdlb_string.h>

Compare lhsString and rhsString using case-insensitive ordering.

static
int
upperCaseCmp(
    bsl::string const& lhsString,
    bsl::string const& rhsString);
» more...

Compare a bsl::string and C string using case-insensitive ordering.

static
int
upperCaseCmp(
    bsl::string const& lhsString,
    char const* rhsString);
» more...

Compare lhsString and rhsString using case-insensitive ordering.

static
int
upperCaseCmp(
    char const* lhsString,
    bsl::string const& rhsString);
» more...

Compare the specified lhsString and rhsString having the optionally specified lhsLength and rhsLength, respectively, as if the strings were converted to upper case before the comparison. Return 1 if lhsString is lexically greater than rhsString, 0 if they are equal, and -1 otherwise. The behavior is undefined unless 0 <= lhsLength and 0 <= rhsLength (if specified), and lhsString.size() <= INT_MAX and rhsString.size() <= INT_MAX (if applicable). See {bdlb_stringviewutil} for an identically named method having the same semantics taking bsl::string_view.

static
int
upperCaseCmp(
    char const* lhsString,
    char const* rhsString);
» more...

Compare lhsString and rhsString using case-insensitive ordering.

static
int
upperCaseCmp(
    bsl::string const& lhsString,
    char const* rhsString,
    int rhsLength);
» more...

Compare lhsString and rhsString using case-insensitive ordering.

static
int
upperCaseCmp(
    char const* lhsString,
    int lhsLength,
    bsl::string const& rhsString);
» more...

Compare the specified lhsString and rhsString having the optionally specified lhsLength and rhsLength, respectively, as if the strings were converted to upper case before the comparison.

static
int
upperCaseCmp(
    char const* lhsString,
    int lhsLength,
    char const* rhsString);
» more...

Compare the specified lhsString and rhsString having the optionally specified lhsLength and rhsLength, respectively, as if the strings were converted to upper case before the comparison.

static
int
upperCaseCmp(
    char const* lhsString,
    char const* rhsString,
    int rhsLength);
» more...

Same as the preceding overload, with an explicit rhsLength.

static
int
upperCaseCmp(
    char const* lhsString,
    int lhsLength,
    char const* rhsString,
    int rhsLength);
» more...