equalsIgnoreCase

Compares the $(D_PSYMBOL dstring) to another $(D_PSYMBOL dstring), 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)
  3. bool equalsIgnoreCase(dstring str, dstring anotherString)
    bool
    equalsIgnoreCase
    (
    dstring str
    ,)

Parameters

str dstring

The $(D_PSYMBOL dstring) first string to compare to

anotherString dstring

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

Return Value

Type: bool

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

Throws

AssertException if the length of any of the dstrings are 0

See Also

opEquals(Object)

Meta