This repository has been archived on 2022-12-23. You can view files and clone it, but cannot push or open issues or pull requests.
fuck-premake-old2/website/docs/string.startswith.md

25 lines
395 B
Markdown
Raw Normal View History

2021-03-11 20:29:22 +00:00
Returns true if the given string starts with the provided sequence.
```lua
string.startswith("haystack", "needle")
```
### Parameters ###
`haystack` is the string to check. `needle` is the starting sequence to check against.
### Return Value ###
True if haystack starts with needle.
### Availability ###
Premake 4.0 or later.
### See Also ###
* [string.endswith](string.endswith.md)