Build/Utils/strings.lua
Reece 615bcb53b9 Initial commit
Publish a collection of boilerplate and an additional json parser.
This meta build chain as-is should replace a lot of the premake5.lua in the AuroraEngine repo
2021-05-20 13:56:44 +01:00

8 lines
217 B
Lua

function string.starts(input, suffix)
return suffix == "" or string.sub(input, 1, string.len(suffix)) == suffix
end
function string.ends(input, ending)
return ending == "" or input:sub(-#ending) == ending
end