Function

GLib-2.0GLibref_string_equalSince 2.84

  • Compares two ref-counted strings for byte-by-byte equality.

    It can be passed to GLib.HashTable.new as the key equality function, and behaves exactly the same as GLib.str_equal (or strcmp()), but can return slightly faster as it can check the string lengths before checking all the bytes.

    Parameters

    • str1: string

      a reference counted string

    • str2: string

      a reference counted string

    Returns boolean

    TRUE if the strings are equal, otherwise FALSE

    2.84