2013年(92)
分类: 信息化
2013-02-28 00:58:50
[代码] [Java]代码 package com.example.anttest; import android.text.SpannableString; import android.text.Spanned; import android.text.TextUtils; import android.widget.MultiAutoCompleteTextView.Tokeni ; zer; public class SemicolonTokenizer implements Tokenizer { private char charS; private String mSTring; public SemicolonTokenizer(char charS) { this.charS = charS; mSTring = String.valueOf(charS); } public int findTokenStart(CharSequence text, int cursor) { int i = cursor; while (i > 0