winamp/Src/external_dependencies/openmpt-trunk/include/premake/website/docs/string.endswith.md

25 lines
391 B
Markdown
Raw Normal View History

2024-09-24 12:54:57 +00:00
Returns true if the given string ends with the provided sequence.
```lua
string.endswith("haystack", "needle")
```
### Parameters ###
`haystack` is the string to check. `needle` is the ending sequence to check against.
### Return Value ###
True if haystack ends with needle.
### Availability ###
Premake 4.0 or later.
### See Also ###
* [string.startswith](string.startswith.md)