comparison 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
comparison
equal deleted inserted replaced
554:18504c41b0be 555:e25ba7a2e816
2 local StringLuan = require "java:luan.modules.StringLuan" 2 local StringLuan = require "java:luan.modules.StringLuan"
3 local Pattern = require "java:java.util.regex.Pattern" 3 local Pattern = require "java:java.util.regex.Pattern"
4 4
5 local M = {} 5 local M = {}
6 6
7 M.unicode = StringLuan.unicode
8 M.char = StringLuan.char_ 7 M.char = StringLuan.char_
9 M.concat = StringLuan.concat 8 M.concat = StringLuan.concat
10 M.encode = StringLuan.encode 9 M.encode = StringLuan.encode
11 M.find = StringLuan.find 10 M.find = StringLuan.find
12 M.format = StringLuan.format 11 M.format = StringLuan.format
13 M.gmatch = StringLuan.gmatch 12 M.gmatch = StringLuan.gmatch
14 M.gsub = StringLuan.gsub 13 M.gsub = StringLuan.gsub
15 M.len = StringLuan.len
16 M.literal = Pattern.quote 14 M.literal = Pattern.quote
17 M.lower = StringLuan.lower 15 M.lower = StringLuan.lower
18 M.match = StringLuan.match 16 M.match = StringLuan.match
19 M.matches = StringLuan.matches 17 M.matches = StringLuan.matches
20 M.rep = StringLuan.rep 18 M.rep = StringLuan.rep
21 M.reverse = StringLuan.reverse 19 M.reverse = StringLuan.reverse
22 M.sub = StringLuan.sub 20 M.sub = StringLuan.sub
23 M.to_binary = StringLuan.to_binary 21 M.to_binary = StringLuan.to_binary
24 M.to_number = StringLuan.to_number 22 M.to_number = StringLuan.to_number
25 M.trim = StringLuan.trim 23 M.trim = StringLuan.trim
24 M.unicode = StringLuan.unicode
26 M.upper = StringLuan.upper 25 M.upper = StringLuan.upper
27 26
28 return M 27 return M