iequals

Compare two slices for equality, in a case-insensitive way

Comparison is based on char and does not do decoding. As a result, it's only really accurate for plain ASCII strings.

extern (D) static
bool
iequals
(
const(char)[] s1
,
const(char)[] s2
)

Parameters

s1 const(char)[]

string to compare

s2 const(char)[]

string to compare

Return Value

Type: bool

true if s1 == s2 regardless of case

Meta