Skip to content
This repository was archived by the owner on Mar 22, 2021. It is now read-only.
/ hslua-module-text Public archive

Lua module providing a selected set of operations on Text. NOTE: moved into the hslua monorepo.

License

Notifications You must be signed in to change notification settings

hslua/hslua-module-text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b2789ca · Oct 16, 2020

History

49 Commits
Aug 15, 2020
Aug 15, 2020
Aug 15, 2020
Aug 15, 2020
Aug 15, 2020
Oct 16, 2020
Aug 15, 2020
Nov 16, 2017
Nov 15, 2017
Oct 16, 2020
Aug 15, 2020

Repository files navigation

HsLua Module: Text

An UTF-8 aware subset of Lua's string module. The functions provided by this module are upper, lower, len, reverse, and sub.

Intended usage for this package is to preload it by adding the loader function to package.preload. Note that the Lua package library must have already been loaded before the loader can be added.

Example

loadProg :: Lua Status
loadProg = do
  openlibs
  preloadTextModule "text"
  dostring $ "text = require 'text'\n"
          ++ "print(text.upper 'hello')"

License

This package is licensed under the MIT license. See LICENSE for details.

About

Lua module providing a selected set of operations on Text. NOTE: moved into the hslua monorepo.

Topics

Resources

License

Stars

Watchers

Forks