Download
(7 Kb)
Download
Updated: 07-22-13 11:16 AM
Updated:07-22-13 11:16 AM
Created:03-16-12 09:37 PM
Downloads:567
Favorites:3
MD5:
LibString
Version: 1.0.3
by: Imhothar [More]
General Information
LibString adds new functions to Lua's string table for common tasks found in most string libraries.

New string functions
  • string.concat concatenates a list of strings.
  • string.formatn enhances the default string.format with index-specifiers like "%1s %10i" for accessing arguments out-of-order. This is especially useful for localization.
  • string.insert inserts a string into another at a specified index.
  • string.join concatenates a list of strings by inserting a separator string between each.
  • string.prefix checks whether a string is a prefix of another (i.e. starts with).
  • string.split splits a string at given delimeters and returns the respective substrings either as list or table.
  • string.gsplit does the same as string.split but can be used in for loops like Lua's string.gmatch.
  • string.suffix checks whether a string is a suffix of another (i.e. ends with).
  • string.tostring accepts a list of arguments and returns a list of strings (Lua's tostring accepts only one argument).
  • string.ltrim, string.rtrim and string.trim remove characters at the beginning, end or both ends of a string, respectively.

Detailed function descriptions can be found on the Curseforge documentation page.
Optional Files (0)


Archived Files (2)
File Name
Version
Size
Author
Date
1.0.1
6kB
Imhothar
07-23-12 11:50 PM
1.0
6kB
Imhothar
03-16-12 09:37 PM


There have been no comments posted to this file.
Be the first to add one.



Category Jump: