Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
WoW
Talk
English
Views
Read
Edit
History
More
Search
Navigation
Home
Random page
Help using wiki
Editions
for WoW
for WildStar
for Solar2D
Documentation
for WoW
for WildStar
Reference
WoW
⦁ FrameXML
⦁ AddOns
⦁ API
⦁ WoW Lua
WildStar
⦁ AddOns
⦁ API
⦁ WildStar Lua
Engine
Tools
What links here
Related changes
Special pages
Page information
Site
Recent Changes
Editing
WoW:Lua functions
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== String === These string functions are shorthand references to the Lua string library, which is available via "string.". See [http://lua-users.org/wiki/StringLibraryTutorial StringLibraryTutorial] for more info. : [[API format|format]](formatstring[, value[, ...]]) - Return a formatted string using values passed in. : [[API gsub|gsub]](string,pattern,replacement[, limitCount]) - Globally substitute pattern for replacement in string. : [[API strbyte|strbyte]](string[, index]) - Returns the internal numeric code of the i-th character of string : [[API strchar|strchar]](asciiCode[, ...]) - Returns a string with length equal to number of arguments, with each character assigned the internal code for that argument. : [[API strfind|strfind]](string, pattern[, initpos[, plain]]) - Look for match of pattern in string, optionally from specific location or using plain substring. : [[API strlen|strlen]](string) - Return length of the string. : [[API strlower|strlower]](string) - Return string with all upper case changed to lower case. : [[API strmatch|strmatch]](string, pattern[, initpos]) - Similar to strfind but only returns the matches, not the string positions. : [[API strrep|strrep]](seed,count) - Return a string which is count copies of seed. : [[API strrev|strrev]](string) - Reverses a string; alias of string.reverse. : [[API strsub|strsub]](string, index[, endIndex]) - Return a substring of string starting at index : [[API strupper|strupper]](string) - Return string with all lower case changed to upper case. : [[API tonumber|tonumber]](arg[, base]) - Return a number if arg can be converted to number. Optional argument specifies the base to interpret the numeral. Bases other than 10 accept only unsigned integers. : [[API tostring|tostring]](arg) - Convert arg to a string. These are custom string functions available in WoW but not normal Lua. : [[API strlenutf8|strlenutf8]](string) - returns the number of characters in a UTF-8 encoded string. : [[API strcmputf8i|strcmputf8i]](string,string) - string comparison accounting for UTF-8 chars, returning C style 0, 0<, 0>. : [[API strtrim|strtrim]](string[, chars]) - Trim leading and trailing spaces or the characters passed to chars from string. : [[API strsplit|strsplit]](delimiter, string) - Return a list of substrings separated by occurrences of the delimiter. : [[API strjoin|strjoin]](delimiter, string, string[, ...]) - Join string arguments into a single string, separated by delimiter. : [[API strconcat|strconcat]](...) - Returns a concatenation of all number/string arguments passed. : [[API tostringall|tostringall]](...) - Converts all arguments to strings and returns them in the same order that they were passed.
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)