Mercurial Hosting > luan
comparison core/src/luan/modules/StringLuan.java @ 578:60c549d43988
remove LuanState.exception()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 14 Jul 2015 17:40:48 -0600 |
parents | 4723d22062ce |
children | a140be489a72 |
comparison
equal
deleted
inserted
replaced
577:d7a85fbe15f1 | 578:60c549d43988 |
---|---|
200 i++; | 200 i++; |
201 } | 201 } |
202 m.appendTail(sb); | 202 m.appendTail(sb); |
203 return new Object[]{ sb.toString(), i }; | 203 return new Object[]{ sb.toString(), i }; |
204 } | 204 } |
205 throw luan.exception( "bad argument #3 to 'gsub' (string/function/table expected)" ); | 205 throw new LuanException(luan, "bad argument #3 to 'gsub' (string/function/table expected)" ); |
206 } | 206 } |
207 | 207 |
208 // note - String.format() is too stupid to convert between ints and floats. | 208 // note - String.format() is too stupid to convert between ints and floats. |
209 public static String format(String format,Object... args) { | 209 public static String format(String format,Object... args) { |
210 return String.format(format,args); | 210 return String.format(format,args); |