//中文字切割函數
public String ChiSubStr(String s,int index,int count){
if ("".equals(s))
return "";
byte[] b1=s.getBytes();
byte[] b2=new byte[b1.length];
String temp;
System.arraycopy(b1,index,b2,0,count);
temp=(new String(b2)).trim();
b1=b2=null;
return temp;
}
中文字切割函數
最新推荐文章于 2021-10-22 14:33:52 发布