view 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 source

java()
local StringLuan = require "java:luan.modules.StringLuan"
local Pattern = require "java:java.util.regex.Pattern"

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