Module lsh.stringx

String extensions.

Functions

split (inp[, sep[, max]]) Split string by separator.
chomp (inp) Remove any final newline from a string.


Functions

split (inp[, sep[, max]])
Split string by separator.

Parameters:

  • inp string input string
  • sep string separator (default is whitespace) (optional)
  • max int maximum number of pieces to split into (default is unlimited) (optional)

Returns:

    {string,...} the pieces between separtors
chomp (inp)
Remove any final newline from a string.

Parameters:

Returns:

    string without trailing newline
generated by LDoc 1.4.6 Last updated 1980-01-01 00:00:00