strvEqual

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

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

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

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

bool
strvEqual
(
string[] strv1
,
string[] strv2
)

Parameters

strv1 string[]

an array of strings to compare to strv2

strv2 string[]

an array of strings to compare to strv1

Return Value

Type: bool

true if strv1 and strv2 are equal