Workflow:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Provides UTF-8 aware string functions implemented in pure lua: | |
-- * utf8len(s) | |
-- * utf8sub(s, i, j) | |
-- * utf8reverse(s) | |
-- * utf8char(unicode) | |
-- * utf8unicode(s, i, j) | |
-- * utf8gensub(s, sub_len) | |
-- | |
-- All functions behave as their non UTF-8 aware counterparts with the exception | |
-- that UTF-8 characters are used instead of bytes for all units. |