C extension for fast string methods

$ luarocks install stringy

Includes fast methods for endswith, startswith, split, strip, find
and count. Implementations of split and strip from the wiki and book.
Implementation of find and count use python's fastsearch.
Usage is:

> stringy = 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.7-05 years ago99,644 downloads
0.6-17 years ago7,968 downloads
0.4-17 years ago61,178 downloads
0.4-07 years ago105 downloads
0.2-17 years ago37,029 downloads

Dependencies

lua >= 5.1

Dependency for

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

Manifests