¡@

Home 

2014/10/16 ¤W¤È 08:18:38

android Programming Glossary: match..

Android Bug? : String.substring(5).replace(?œâ€? ?œâ€? // empty string

http://stackoverflow.com/questions/16475317/android-bug-string-substring5-replace-empty-string

return result.toString StringBuilder result new StringBuilder count int searchStart 0 do Copy characters before the match... result.append value offset searchStart matchStart searchStart Insert the replacement... result.append replacementString.. offset searchStart matchStart searchStart Insert the replacement... result.append replacementString And skip over the match... searchStart matchStart targetLength while matchStart indexOf targetString searchStart 1 Copy any trailing chars... result.append.. give exact length final StringBuilder result new StringBuilder count int searchStart 0 do Copy characters before the match... result.append value searchStart matchStart searchStart Insert the replacement... result.append replacementString And skip..