Mercurial Hosting > luan
diff core/src/luan/modules/String.luan @ 503:92c3d22745b8
make _ENV optional
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 20 May 2015 23:24:46 -0600 |
parents | f26485a3692c |
children | 473e456444ff |
line wrap: on
line diff
--- a/core/src/luan/modules/String.luan Tue May 19 17:57:20 2015 -0600 +++ b/core/src/luan/modules/String.luan Wed May 20 23:24:46 2015 -0600 @@ -2,23 +2,27 @@ local StringLuan = require "java:luan.modules.StringLuan" local Pattern = require "java:java.util.regex.Pattern" -unicode = StringLuan.unicode -char = StringLuan.char_ -concat = StringLuan.concat -encode = StringLuan.encode -find = StringLuan.find -format = StringLuan.format -gmatch = StringLuan.gmatch -gsub = StringLuan.gsub -len = StringLuan.len -literal = Pattern.quote -lower = StringLuan.lower -match = StringLuan.match -matches = StringLuan.matches -rep = StringLuan.rep -reverse = StringLuan.reverse -sub = StringLuan.sub -to_binary = StringLuan.to_binary -to_number = StringLuan.to_number -trim = StringLuan.trim -upper = StringLuan.upper +local M = {} + +M.unicode = StringLuan.unicode +M.char = StringLuan.char_ +M.concat = StringLuan.concat +M.encode = StringLuan.encode +M.find = StringLuan.find +M.format = StringLuan.format +M.gmatch = StringLuan.gmatch +M.gsub = StringLuan.gsub +M.len = StringLuan.len +M.literal = Pattern.quote +M.lower = StringLuan.lower +M.match = StringLuan.match +M.matches = StringLuan.matches +M.rep = StringLuan.rep +M.reverse = StringLuan.reverse +M.sub = StringLuan.sub +M.to_binary = StringLuan.to_binary +M.to_number = StringLuan.to_number +M.trim = StringLuan.trim +M.upper = StringLuan.upper + +return M