webmcp

diff framework/env/charset/get_data.lua @ 0:9fdfb27f8e67

Version 1.0.0
author jbe/bsw
date Sun Oct 25 12:00:00 2009 +0100 (2009-10-25)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/framework/env/charset/get_data.lua	Sun Oct 25 12:00:00 2009 +0100
     1.3 @@ -0,0 +1,13 @@
     1.4 +--[[--
     1.5 +charset_data =  -- table containing information about the current charset
     1.6 +charset.get_data()
     1.7 +
     1.8 +Returns a table with information about the currently selected charset. See framework/env/charset/data/ for more information.
     1.9 +
    1.10 +--]]--
    1.11 +
    1.12 +function charset.get_data()
    1.13 +  return charset.data[
    1.14 +    string.gsub(string.lower(charset._current), "%-", "_")
    1.15 +  ]
    1.16 +end

Impressum / About Us