view core/src/luan/modules/String.luan @ 757:e1dfeddfbc7b

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 18 Jul 2016 20:18:02 -0600
parents e25ba7a2e816
children
line wrap: on
line source

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