Lines Matching defs:s2

1966  * @s1: string to compare with @s2.
1967 * @s2: string to compare with @s1.
1983 * Return value: 0 if the strings match, a negative value if @s1 < @s2,
1984 * or a positive value if @s1 > @s2.
1988 const gchar *s2)
1993 g_return_val_if_fail (s2 != NULL, 0);
1995 while (*s1 && *s2)
1998 c2 = (gint)(guchar) TOLOWER (*s2);
2001 s1++; s2++;
2004 return (((gint)(guchar) *s1) - ((gint)(guchar) *s2));
2009 * @s1: string to compare with @s2.
2010 * @s2: string to compare with @s1.
2013 * Compare @s1 and @s2, ignoring the case of ASCII characters and any
2024 * Return value: 0 if the strings match, a negative value if @s1 < @s2,
2025 * or a positive value if @s1 > @s2.
2029 const gchar *s2,
2035 g_return_val_if_fail (s2 != NULL, 0);
2037 while (n && *s1 && *s2)
2041 c2 = (gint)(guchar) TOLOWER (*s2);
2044 s1++; s2++;
2048 return (((gint) (guchar) *s1) - ((gint) (guchar) *s2));
2056 * @s2: a string to compare with @s1.
2061 * Return value: 0 if the strings match, a negative value if @s1 < @s2,
2062 * or a positive value if @s1 > @s2.
2069 const gchar *s2)
2073 g_return_val_if_fail (s2 != NULL, 0);
2075 return strcasecmp (s1, s2);
2080 g_return_val_if_fail (s2 != NULL, 0);
2082 while (*s1 && *s2)
2088 c2 = isupper ((guchar)*s2) ? tolower ((guchar)*s2) : *s2;
2091 s1++; s2++;
2094 return (((gint)(guchar) *s1) - ((gint)(guchar) *s2));
2101 * @s2: a string to compare with @s1.
2109 * Return value: 0 if the strings match, a negative value if @s1 < @s2,
2110 * or a positive value if @s1 > @s2.
2128 const gchar *s2,
2132 return strncasecmp (s1, s2, n);
2137 g_return_val_if_fail (s2 != NULL, 0);
2139 while (n && *s1 && *s2)
2146 c2 = isupper ((guchar)*s2) ? tolower ((guchar)*s2) : *s2;
2149 s1++; s2++;
2153 return (((gint) (guchar) *s1) - ((gint) (guchar) *s2));