view core/src/luan/modules/String.luan @ 555:e25ba7a2e816

some String documentation and fixes
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 19 Jun 2015 04:29:06 -0600
parents f4dfe9c64c25
children e1dfeddfbc7b
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.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