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.2-110 years ago157 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