view core/src/luan/modules/String.luan @ 501:f26485a3692c

add String.literal to quote regex
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 18 May 2015 23:23:01 -0600
parents ceb3fd33adf1
children 92c3d22745b8
line wrap: on
line source

java()
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