v0.13.6

string

namespaceavailable in: camelot

Status in wowlua

23 functions: 23 implemented, 0 recorded, 0 guessed.

Functions

functionwhat it doesstatus
byteReturns the numerical code of a character in a string.
not in Blizzard's documentation
implemented
charGenerate a string representing the character codes passed as arguments. Numerical codes are not necessarily portable across platforms.
not in Blizzard's documentation
implemented
concatReturns a concatenated string (without use of a delimiter).
not in Blizzard's documentation
implemented
containsReturns true if a string contains the specified literal substring.
(str: stringView, substring: stringView): boolean
implemented
endswithReturns true if a string ends with the specified suffix.
(str: stringView, suffix: stringView): boolean
implemented
findReturns a pair of numbers representing the start and end of the first occurrence of the pattern within the string, if it exists.
not in Blizzard's documentation
implemented
formatFormats a string by substituting arguments. = format = s:format
not in Blizzard's documentation
implemented
gfindReturns an iterator over the matches of a pattern in a string. It is the Lua 5.0 name of string.gmatch, which new code should use. · by wowlua
not in Blizzard's documentation
implemented
gmatchReturns an iterator that gives the next match of a pattern in a string, or its captures, on each call; used as for word in string.gmatch(text, "%a+") do. · by wowlua
not in Blizzard's documentation
implemented
gsubSubstitutes text matching a pattern with a replacement. = gsub = s:gsub
not in Blizzard's documentation
implemented
joinJoins strings together with a delimiter. = string.join(delimiter, string1 [, ...])
not in Blizzard's documentation
implemented
lenReturn the length, in bytes, of the string passed.
not in Blizzard's documentation
implemented
lowerGets a string with all lower case letters instead of upper case. = strlower
not in Blizzard's documentation
implemented
ltrimReturns a string with all bytes in the specified character set removed from the start.
(str: stringView, characters: stringView): stringView
implemented
matchExtract substrings by matching against a pattern. match [, match2, ...] = string.match(string, pattern[, initpos]) match1[, match2, ...] = strmatch(string, pattern[, initpos])
not in Blizzard's documentation
implemented
repGenerate a string which is n copies of the string passed concatenated together.
not in Blizzard's documentation
implemented
reverseReverses all of the characters in a string.
not in Blizzard's documentation
implemented
rtrimReturns a string with all bytes in the specified character set removed from the end.
(str: stringView, characters: stringView): stringView
implemented
splitSplits a string using a delimiter.
not in Blizzard's documentation
implemented
startswithReturns true if a string starts with the specified prefix.
(str: stringView, prefix: stringView): boolean
implemented
subReturn a substring of the string passed. The substring starts at i. If the third argument j is not given, the substring will end at the end of the string. If the third argument is given, the substring ends at and includes j.
not in Blizzard's documentation
implemented
trimTrim characters (*chars*), off the left and right of *str*
(str: stringView, characters: stringView): stringView
implemented
upperMake all the lower case characters in a string upper case.
not in Blizzard's documentation
implemented

"by wowlua": no one documents this function, so wowlua wrote the description from its name, signature and behaviour.

sources

Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (LuaStringExtensions system, camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗; written by wowlua where no documentation describes the entry.