| ReturnStr=Str; return ReturnStr; } //----------------------------ubb替换-------------------------- public String LCReplace(String Str,String BStr,String EStr,String ReStr) { String ReturnStr="",Str1="",Str2=""; int i,j,n; n=0; if ((Str.indexOf(BStr)>-1)&&((Str.indexOf(EStr)>-1))) { while(Str.indexOf(BStr,n)>-1) { i=Str.indexOf(BStr); j=Str.indexOf(EStr); Str1=Str.substring((i+BStr.length()),j); Str2=ebbReplace(ReStr,"$lichao$",Str1); Str1=BStr+Str1+EStr; Str=ebbReplace(Str,Str1,Str2); n=i+Str2.length()-Str1.length(); } } ReturnStr=Str; return ReturnStr; } }
上一页 [1] [2] [3] [4] [5] |