Function

GLib-2.0GLibstrv_equalSince 2.60

  • Checks if two arrays of strings contain exactly the same elements in exactly the same order.

    Elements are compared using GLib.str_equal. To match independently of order, sort the arrays first (using GLib.qsort_with_data or similar).

    Two empty arrays are considered equal. Neither strv1 nor strv2 may be NULL.

    Parameters

    • strv1: string[]

      an array of strings to compare to strv2

    • strv2: string[]

      an array of strings to compare to strv1

    Returns boolean

    true if strv1 and strv2 are equal

    2.60