equalsIgnoreCase

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

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

Parameters

str wstring

The $(D_PSYMBOL wstring) first string to compre to

anotherString wstring

The $(D_PSYMBOL wstring) to compare the first $(D_PSYMBOL wstring) against

Return Value

Type: bool

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

Throws

AssertException if the length of any of the wstrings is 0

See Also

opEquals(Object)

Meta