string_compare


Description:


[ Version ( since = "1.2" ) ]
public int string_compare (string a, string b)

Check whether a and b are equal UTF-8 JSON strings and return an ordering over them in `strcmp()` style.

Parameters:

a

a JSON string

b

another JSON string

Returns:

an integer less than zero if `a < b`, equal to zero if `a == b`, and greater than zero if `a > b`


Namespace: Json
Package: json-glib-1.0