img



img

LibString


By: _ForgeUser4351698
Addon | img 3,255




Description

___________________________________________________________________________________________________________________________

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.ltrimstring.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.




About Project

Created: September 21st 2023

Updated: September 21st 2023

Project ID: 52661

License: All Rights Reserved

__________________________________________

Game Versions:

1.01.03

1.01.03

1.01.03

1.01.03

1.01.03

__________________________________________

Flavors:

WoW Retail

__________________________________________

Categories

Companions

Battle

__________________________________________

Main File

_ForgeUser4351698_LibString.zip
  • Release
  • September 21st 2023

    __________________________________________

    Recent File

    _ForgeUser4351698_LibString.zip
  • Release
  • September 21st 2023

    __________________________________________

    Members

    img
    _ForgeUser4351698
    Owner

    __________________________________________

    Report