Takes in a camel-case string and places a space before any uppercase letter.
Takes in a camel-case string and converts it to a GNU option style string by identifying capital letters and replacing them with a hyphen followed by the lower case letter.
A simple version of Unix's column
utility.
A simple version of Unix's column
utility. This assumes the table is NxM.
Wraps a given string with a prefix and optional suffix
Computes the levenshtein distance between two strings
Computes the levenshtein distance between two strings
the first string
the second string
the swap penalty
the substitution penalty
the insertion penalty
the deletion penalty
the levenshtein distance
Return input string with newlines inserted to ensure that all lines have length <= maxLineLength.
Return input string with newlines inserted to ensure that all lines have length <= maxLineLength. If a word is too long, it is simply broken at maxLineLength. Does not handle tabs intelligently (due to implementer laziness).