omni::extras::stringCompareCaseInsensitive

Defined in omni/extras/StringHelpers.h

inline bool omni::extras::stringCompareCaseInsensitive(const std::string &str1, const std::string &str2)

Checks two strings for equality in an ASCII case-insensitive manner.

Warning

This function checks for ASCII case-insensitivity only. UTF-8 encoding and locale are ignored.

Parameters
  • str1 – The first string to compare

  • str2 – The second string to compare

Returns

true if the strings are equal when ASCII case is ignored; false otherwise