Initial community commit

This commit is contained in:
Jef
2024-09-24 14:54:57 +02:00
parent 537bcbc862
commit 20d28e80a5
16810 changed files with 4640254 additions and 2 deletions

View File

@@ -0,0 +1,37 @@
Returns an array of strings, each of which is a substring formed by splitting on the provided pattern.
```lua
parts = string.explode("str", "pattern")
```
### Parameters ###
`str` is the string to be split. *pattern* is the separator pattern at which to split; it may use Lua's pattern matching syntax.
### Return Value ###
A list of substrings.
### Examples ###
```lua
e = "a\nmulti\nline\nstring\n"
> for k,v in next, string.explode(e, "\n") do print(k, v) end
1 a
2 multi
3 line
4 string
5
```
### Availability ###
Premake 4.0 or later.
### See Also ###
* [string.startswith](string.startswith.md)