String class
equalsIgnoreCase()
Compares two strings for equality. The comparison is not case-sensitive, meaning the String("hello") is equal to the String("HELLO").
// SYNTAX
string.equalsIgnoreCase(string2)
// PROTOTYPE
unsigned char equalsIgnoreCase(const String &s) const;
Parameters:
- string, string2: variables of type String
Returns:
- true: if string equals string2 (ignoring case)
- false: otherwise
This function only works properly with 7-bit ASCII characters. It does not correctly compare other character sets such as ISO-8859-1 or Unicode UTF-8.