Get an Epic Experience with Premium

LibString

Development Tools Login to Add Favorites
  • 0 Likes
  • Rift
  • 54 Monthly Downloads
  • Supports: 1.9
  • 1,228 Total Downloads
  • Updated 07/24/2012
  • Created 03/05/2012
  • 1 Favorites
  • Project Site
  • Comments
  • Release Type: Release
  • License: MIT License
  • Newest File: 1.0.1
or
Support development! **
Donate

About LibString

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 documentation page.

tag 1.0.1
5062f859d8a0843bda4e47acd2a8acc8c04d24cf
imhothar <none>
2012-07-24 07:39:49 +0200

Tagging as 1.0.1

--------------------

imhothar:
    - Pushed version to 1.0.1 and environment to 1.9
    - Removed reference to global "unpacked" in string.split
    - Added email and website to .toc file

Comments

Login to Curse

Don't have an account? Create One.

Get an epic experience with Curse Premium
  • Faster addon downloads
  • Premium-Only Beta Giveaways
  • Ad-Free Curse experience
  • Premium Curse Client
  • and many More Features
  • Learn More »

Maingear

ENTER NOW