comparison src/luan/modules/StringLuan.java @ 1683:ea56e3b04c03

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 05 Jun 2022 12:44:38 -0600
parents f7e2df85fc0a
children ad44e849c60c
comparison
equal deleted inserted replaced
1682:97cc73664ca8 1683:ea56e3b04c03
231 return Pattern.compile(pattern).matcher(s).find(); 231 return Pattern.compile(pattern).matcher(s).find();
232 } 232 }
233 233
234 public static String[] split(String s,String pattern,Integer limit) throws LuanException { 234 public static String[] split(String s,String pattern,Integer limit) throws LuanException {
235 Utils.checkNotNull(s); 235 Utils.checkNotNull(s);
236 Utils.checkNotNull(pattern,1);
236 int n = limit==null ? -1 : limit; 237 int n = limit==null ? -1 : limit;
237 return s.split(pattern,n); 238 return s.split(pattern,n);
238 } 239 }
239 240
240 public static String digest_message(String algorithm,String input) throws LuanException, NoSuchAlgorithmException { 241 public static String digest_message(String algorithm,String input) throws LuanException, NoSuchAlgorithmException {