Mercurial Hosting > luan
diff core/src/luan/modules/StringLuan.java @ 548:f4dfe9c64c25
shorten some String function names
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 15 Jun 2015 17:30:28 -0600 |
parents | 473e456444ff |
children | e25ba7a2e816 |
line wrap: on
line diff
--- a/core/src/luan/modules/StringLuan.java Mon Jun 15 01:22:58 2015 -0600 +++ b/core/src/luan/modules/StringLuan.java Mon Jun 15 17:30:28 2015 -0600 @@ -52,7 +52,7 @@ return new String(a); } - @LuanMethod public static byte[] string_to_binary(String s) { + @LuanMethod public static byte[] to_binary(String s) { return s.getBytes(); } @@ -223,7 +223,7 @@ return Luan.stringEncode(s); } - public static Number string_to_number(LuanState luan,String s,Integer base) throws LuanException { + public static Number to_number(LuanState luan,String s,Integer base) throws LuanException { Utils.checkNotNull(luan,s); try { if( base == null ) {