Mercurial Hosting > luan
diff src/luan/modules/String.luan @ 775:1a68fc55a80c
simplify dir structure
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 26 Aug 2016 14:36:40 -0600 |
parents | core/src/luan/modules/String.luan@e1dfeddfbc7b |
children | bae2d0c2576c |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/luan/modules/String.luan Fri Aug 26 14:36:40 2016 -0600 @@ -0,0 +1,28 @@ +java() +local StringLuan = require "java:luan.modules.StringLuan" +local Pattern = require "java:java.util.regex.Pattern" + +local M = {} + +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.literal = Pattern.quote +M.lower = StringLuan.lower +M.match = StringLuan.match +M.matches = StringLuan.matches +M.rep = StringLuan.rep +M.reverse = StringLuan.reverse +M.split = StringLuan.split +M.sub = StringLuan.sub +M.to_binary = StringLuan.to_binary +M.to_number = StringLuan.to_number +M.trim = StringLuan.trim +M.unicode = StringLuan.unicode +M.upper = StringLuan.upper + +return M