Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
changeset 506:d1ffc844ceb4
Style
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sat, 31 Aug 2024 14:07:28 +0200 |
| parents | ace88a4831f7 |
| children | e51440a07a9d |
| files | share/local-bsdtools/array.sh |
| diffstat | 1 files changed, 12 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/share/local-bsdtools/array.sh Sat Aug 31 14:06:03 2024 +0200 +++ b/share/local-bsdtools/array.sh Sat Aug 31 14:07:28 2024 +0200 @@ -37,7 +37,7 @@ #: -#: Internal error for fatal errors +#: Internal error for fatal errors. #: #: Args: #: $1 (str): The error message @@ -49,7 +49,7 @@ #: -#: Create a new array +#: Create a new array. #: #: It is assumed that the array does not exist already. #: @@ -104,7 +104,7 @@ #: -#: Get the length of an array +#: Get the length of an array. #: #: Args: #: $1 (str): The name of the array. @@ -134,7 +134,7 @@ #: -#: Append a value to an existing array +#: Append a value to an existing array. #: #: Args: #: $1 (str): The name of the existing array @@ -166,7 +166,7 @@ #: -#: Get an array value from a given index +#: Get an array value from a given index. #: #: Args: #: $1 (str): The name of the existing array @@ -203,7 +203,7 @@ #: -#: Try to get an array value from a given index +#: Try to get an array value from a given index. #: #: Args: #: $1 (str): The name of the existing array @@ -249,7 +249,7 @@ #: -#: Empty an existing array +#: Empty an existing array. #: #: Args: #: $1 (str): The name of the existing array @@ -281,7 +281,7 @@ #: -#: Destroy and unset an array and all its elements +#: Destroy and unset an array and all its elements. #: #: Args: #: $1 (str): The name of an array. The array may exist or not. @@ -316,7 +316,7 @@ #: -#: Call a function for every element in an array starting at the first index +#: Call a function for every element in an array starting at the first index. #: #: The function to be called must accept three arguments: #: - the array name @@ -365,7 +365,7 @@ #: #: Like `array_for_each`, but the function is called in reversed order -- -#: beginning with the last index +#: beginning with the last index. #: array_reversed_for_each() { local _name _cb @@ -396,7 +396,7 @@ #: -#: Print the contents of an array to stderr +#: Print the contents of an array to stderr. #: #: Args: #: $1 (str): The name of an array. The array may exist or not. @@ -429,7 +429,7 @@ #: -#: Debug output helper for `array_debug` +#: Debug output helper for `array_debug`. #: _array_debug_print_value() { printf "DEBUG: idx: %s, val: \`%s'\\n" "$2" "$3" 1>&2
