Mercurial Hosting > luan
view core/src/luan/modules/String.luan @ 502:d3183a330ff5
improve the __index metamethod to work with any type;
simplify luan_proxy to eliminate base;
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 19 May 2015 17:57:20 -0600 |
parents | f26485a3692c |
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