hslua-module-text-1.0.3.1: Lua module for text
Copyright© 2017–2023 Albert Krewinkel
LicenseMIT
MaintainerAlbert Krewinkel <tarleb+hslua@zeitkraut.de>
Stabilityalpha
PortabilityGHC only
Safe HaskellSafe-Inferred
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.

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.