Description
General Information
LibString adds new functions to Lua's string table for common tasks found in most string libraries.
New string functions
string.concatconcatenates a list of strings.string.formatnenhances the defaultstring.formatwith index-specifiers like"%1s %10i"for accessing arguments out-of-order. This is especially useful for localization.string.insertinserts a string into another at a specified index.string.joinconcatenates a list of strings by inserting a separator string between each.string.prefixchecks whether a string is a prefix of another (i.e. starts with).string.splitsplits a string at given delimeters and returns the respective substrings either as list or table.string.gsplitdoes the same asstring.splitbut can be used inforloops like Lua'sstring.gmatch.string.suffixchecks whether a string is a suffix of another (i.e. ends with).string.tostringaccepts a list of arguments and returns a list of strings (Lua'stostringaccepts only one argument).string.ltrim,string.rtrimandstring.trimremove characters at the beginning, end or both ends of a string, respectively.
Detailed function descriptions can be found on the documentation page.


