hslua-module-text-1.1.1: Lua module for text
Copyright© 2017–2023 Albert Krewinkel
LicenseMIT
MaintainerAlbert Krewinkel <tarleb@hslua.org>
Stabilityalpha
PortabilityGHC only
Safe HaskellNone
LanguageHaskell2010

HsLua.Module.Text

Description

Provides a Lua module containing a selection of useful Text functions.

Synopsis

Module

documentedModule :: LuaError e => Module e Source #

The text module.

Functions

fromencoding :: LuaError e => DocumentedFunction e Source #

Recodes a string as UTF-8.

len :: DocumentedFunction e Source #

Wrapper for length.

lower :: DocumentedFunction e Source #

Wrapper for toLower.

reverse :: DocumentedFunction e Source #

Wrapper for reverse.

sub :: DocumentedFunction e Source #

Returns a substring, using Lua's string indexing rules.

toencoding :: LuaError e => DocumentedFunction e Source #

Converts a UTF-8 string to a different encoding.

upper :: DocumentedFunction e Source #

Wrapper for toUpper.