Includes fast methods for endswith, startswith, split and strip.
Implementations of split and strip from the wiki and book. This
was implemented as a learning exercise. Additions are welcome if
the library is kept simple. Usage is:
> require "stringy"
> = stringy.strip(" asdf ")
asdf
> = table.concat(stringy.split("aXbXc", "X"), "|")
a|b|c
> = stringy.startswith("asdf", "as")
true
> = stringy.endswith("asdf", "as")
false
Versions
Dependencies
lua >= 5.1