equalsIgnoreCase

Compares the $(D_PSYMBOL string) to another $(D_PSYMBOL string), ignoring case considerations. Two strings are considered equal ignoring case if they are of the same length and corresponding characters in the two strings are equal ignoring case.

  1. bool equalsIgnoreCase(string str, string anotherString)
    bool
    equalsIgnoreCase
    (
    string str
    ,)
  2. bool equalsIgnoreCase(wstring str, wstring anotherString)
  3. bool equalsIgnoreCase(dstring str, dstring anotherString)

Parameters

str string

The $(D_PSYMBOL string) first string to compare to

anotherString string

The $(D_PSYMBOL string) to compare the first $(D_PSYMBOL string) with

Return Value

Type: bool

$(D_KEYWORD true) if the arguments is not $(D_KEYWORD null) and it represents an equivalent $(D_PSYMBOL string) ignoring case; $(D_KEYWORD false) otherwise

Throws

AssertException if the length of any of the strings is 0

See Also

opEquals(Object)

Meta