UTF8

Provides UTF-8 aware string functions implemented in pure lua:

  • string.utf8len(s)
  • string.utf8sub(s, i, j)
  • string.utf8reverse(s)

If utf8data.lua (containing the lower<->upper case mappings) is loaded, these additional functions are available:

  • string.utf8upper(s)
  • string.utf8lower(s)

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.

You must login to post a comment. Don't have an account? Register to get one!

Facts

Date created
Oct 11, 2011
Category
Last update
Oct 28, 2014
Development stage
Mature
License
BSD License
Curse link
UTF8
Reverse relationships
8
Downloads
19,738
Recent files
  • R: v1.1 for 6.0.3 Oct 28, 2014
  • R: v1.0 for 4.2.0 Oct 11, 2011

Authors