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.contains.md
2021-03-12 22:10:24 +01:00

360 B

Returns true if the string contains the specified substring.

string.contains("haystack", "needle")

Parameters

haystack is the string to be tested.

needle is the substring for which to search. Lua patterns are not supported.

Return Value

True if haystack contains needle.

Availability

Premake 5.0 or later.