String Library In Lua

lua-users home

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:


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