summaryrefslogtreecommitdiff
path: root/server/locale/en-US/libs/lua53/string.lni
blob: a5d4bcc57b518a2c4622fdbdc1c9a1c5cd02bd25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
[byte]
description = 'Returns the internal numeric codes of the characters `s[i], s[i+1], ..., s[j]`.'

[char]
description = 'Returns a string with length equal to the number of arguments, in which each character has the internal numeric code equal to its corresponding argument.'

[dump]
description = 'Returns a string containing a binary representation (a binary chunk) of the given function.'

[find]
description = 'Looks for the first match of `pattern` in the string.'

[format]
description = 'Returns a formatted version of its variable number of arguments following the description given in its first argument.'

[gmatch]
description = [[
----------
```lua
s = "hello world from Lua"
for w in string.gmatch(s, "%a+") do
    print(w)
end
```
]]

[gsub]
description = 'Returns a copy of s in which all (or the first `n`, if given) occurrences of the `pattern` have been replaced by a replacement string specified by `repl`.'

[len]
description = 'Returns its length.'

[lower]
description = 'Returns a copy of this string with all uppercase letters changed to lowercase.'

[match]
description = 'Looks for the first match of `pattern` in the string.'

[pack]
description = 'Returns a binary string containing the values `v1, v2, etc.` packed (that is, serialized in binary form) according to the format string `fmt`.'

[packsize]
description = 'Returns the size of a string resulting from `string.pack` with the given format.'

[rep]
description = 'Returns a string that is the concatenation of `n` copies of the string `s` separated by the string `sep`.'

[reverse]
description = 'Returns a string that is the string s reversed.'

[sub]
description = 'Returns the substring of the string that starts at `i` and continues until `j`.'

[unpack]
description = 'Returns the values packed in string according to the format string `fmt`.'

[upper]
description = 'Returns a copy of this string with all lowercase letters changed to uppercase.'