C extension for fast string methods

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

0.4-19 years ago55,834 downloads
0.4-09 years ago63 downloads
0.2-19 years ago9,063 downloads

Dependencies

lua >= 5.1

Dependency for

cipher-log, kong, kong-plugin-json-threat-protection, kong-plugin-route-by-jsonrpc-method, luabundler, lua-multipart-parser, multipart