Lines Matching refs:text

27 import android.text.Annotation;
28 import android.text.Editable;
29 import android.text.Layout;
30 import android.text.Spannable;
31 import android.text.SpannableString;
32 import android.text.SpannableStringBuilder;
33 import android.text.Spanned;
34 import android.text.TextUtils;
35 import android.text.TextWatcher;
65 * back and edits that part of the text, it no longer corresponds
222 // recipient, this would eliminate the span inside the text. The span contains the
273 Spanned text = getText();
274 if (mLongPressedPosition <= text.length()) {
275 int start = mTokenizer.findTokenStart(text, mLongPressedPosition);
276 int end = mTokenizer.findTokenEnd(text, start);
339 * <code>cursor</code> within <code>text</code>.
342 public int findTokenStart(CharSequence text, int cursor) {
346 while (i > 0 && (c = text.charAt(i - 1)) != ',' && c != ';') {
349 while (i < cursor && text.charAt(i) == ' ') {
358 * that begins at offset <code>cursor</code> within <code>text</code>.
361 public int findTokenEnd(CharSequence text, int cursor) {
363 int len = text.length();
367 if ((c = text.charAt(i)) == ',' || c == ';') {
378 * Returns <code>text</code>, modified, if necessary, to ensure that
382 public CharSequence terminateToken(CharSequence text) {
383 int i = text.length();
385 while (i > 0 && text.charAt(i - 1) == ' ') {
390 if (i > 0 && ((c = text.charAt(i - 1)) == ',' || c == ';')) {
391 return text;
396 if (text instanceof Spanned) {
397 SpannableString sp = new SpannableString(text + separator);
398 TextUtils.copySpansFrom((Spanned) text, 0, text.length(),
402 return text + separator;