Lines Matching defs:text
19 import android.text.Editable;
157 public static void format(Editable text) {
162 int length = text.length();
164 && text.subSequence(0, 3).toString().equals("+81")) {
166 } else if (length < 1 || text.charAt(0) != '0') {
170 CharSequence saved = text.subSequence(0, length);
174 while (i < text.length()) {
175 if (text.charAt(i) == '-') {
176 text.delete(i, i + 1);
182 length = text.length();
188 char ch = text.charAt(i);
190 text.replace(0, length, saved);
196 text.replace(0, length, saved);
201 text.insert(dashPos2, "-");
205 text.insert(dashPos1, "-");
215 text.insert(rootIndex, "-");