aboutsummaryrefslogtreecommitdiff
path: root/tests/function/string/testscript
AgeCommit message (Collapse)AuthorFilesLines
2022-09-29Add $find(<sequence>, <value>), $find_index(<sequence>, <value>) functionsBoris Kolpackov1-0/+16
The $find() function returns true if the sequence contains the specified value. The $find_index() function returns the index of the first element in the sequence that is equal to the specified value or $size(<sequence>) if none is found. For string sequences, it's possible to request case- insensitive comparison with a flag.
2021-11-26Add $size(string), $size(path), and $size(dir_path) functionsBoris Kolpackov1-0/+7
2021-11-02Add $sort() functionBoris Kolpackov1-0/+8
Available overloads: $sort(<names> [, <flags>]) $sort(<ints> [, <flags>]) $sort(<strings> [, <flags>]) $sort(<paths> [, <flags>]) $sort(<dir_paths> [, <flags>]) The following flag is supported by the all overloads: dedup - in addition to sorting also remove duplicates Additionally, the strings overload also support the following flag: icase - sort ignoring case Note that on case-insensitive filesystem the paths and dir_paths overload's order is case-insensitive.
2020-09-28Add $string.trim() functionBoris Kolpackov1-0/+7
2020-02-07Drop copyright notice from source codeKaren Arutyunov1-1/+0
2019-10-01Add support for $string.icasecmp()Karen Arutyunov1-0/+27