strcasecmp

fun strcasecmp(s1: String, s2: String): <Error class: unknown class>(source)

⚠️ Deprecated ⚠️

This is deprecated since version 2.2.

See func@GLib.strncasecmp for a discussion of why this function is deprecated and how to replace it.

A case-insensitive string comparison, corresponding to the standard strcasecmp() function on platforms which support it.

Return

0 if the strings match, a negative value if @s1 < @s2, or a positive value if @s1 @s2

Parameters

s1

string to compare with @s2

s2

string to compare with @s1