String Library In Lua

lua-users home
wiki

The following module (stringlua.lua) partially reimplements Lua 5.1's string library (mainly, string.math and string.find) in Lua. This is a fairly direct port of [lstrlib.c] to Lua.

Reimplementing these in Lua provides a number of generalizations and possible applications:

A few examples are given in the test suite (test.lua).

source code: https://github.com/davidm/lua-stringlua

--DavidManura


RecentChanges · preferences
edit · history
Last edited November 30, 2011 6:45 am GMT (diff)