Searched refs:CharMatcher (Results 1 – 10 of 10) sorted by relevance
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/ |
D | CharMatcher.java | 45 public abstract class CharMatcher implements Predicate<Character> { class 68 public static final CharMatcher WHITESPACE = 80 public static final CharMatcher BREAKING_WHITESPACE = 89 public static final CharMatcher ASCII = inRange('\0', '\u007f'); 95 public static final CharMatcher DIGIT; 98 CharMatcher digit = inRange('0', '9'); 115 public static final CharMatcher JAVA_WHITESPACE 131 public static final CharMatcher JAVA_DIGIT = new CharMatcher() { 143 public static final CharMatcher JAVA_LETTER = new CharMatcher() { 153 public static final CharMatcher JAVA_LETTER_OR_DIGIT = new CharMatcher() { [all …]
|
D | Splitter.java | 94 private final CharMatcher trimmer; 99 this(strategy, false, CharMatcher.NONE); in Splitter() 103 CharMatcher trimmer) { in Splitter() 118 return on(CharMatcher.is(separator)); in on() 131 public static Splitter on(final CharMatcher separatorMatcher) { in on() 306 return trimResults(CharMatcher.WHITESPACE); 320 public Splitter trimResults(CharMatcher trimmer) { 348 final CharMatcher trimmer;
|
D | StringUtil.java | 86 return string == null || CharMatcher.WHITESPACE.matchesAllOf(string); in isEmptyOrWhitespace() 451 Splitter.on(CharMatcher.BREAKING_WHITESPACE).omitEmptyStrings(); 548 CharMatcher matcher = CharMatcher.anyOf(what); in megastrip() 572 return (str == null) ? null : CharMatcher.LEGACY_WHITESPACE.trimFrom(str); in strip() 588 : CharMatcher.LEGACY_WHITESPACE.trimAndCollapseFrom(str, ' '); in stripAndCollapse() 669 return CharMatcher.JAVA_DIGIT.retainFrom(str); in stripNonDigits() 705 return CharMatcher.anyOf(oldchars).replaceFrom(str, newchar); in replaceChars() 717 return CharMatcher.anyOf(oldchars).removeFrom(str); in removeChars() 721 private static final CharMatcher FANCY_SINGLE_QUOTE 722 = CharMatcher.anyOf("\u0091\u0092\u2018\u2019"); [all …]
|
D | Platform.java | 54 static CharMatcher precomputeCharMatcher(CharMatcher matcher) { in precomputeCharMatcher()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | EmailAddress.java | 19 import com.google.common.base.CharMatcher; 25 private static final CharMatcher ANY_WHITESPACE = CharMatcher.anyOf( 27 private static final CharMatcher EMAIL_ALLOWED_CHARS = CharMatcher.inRange((char) 0, (char) 31) 28 .or(CharMatcher.is((char) 127)) 29 .or(CharMatcher.anyOf(" @,:<>")) 163 || (!allowI18n && !CharMatcher.ASCII.matchesAllOf(host))) { in isValidInternal() 185 || (!allowI18n && !CharMatcher.ASCII.matchesAllOf(user))) { in isValidInternal()
|
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/ |
D | HtmlTree.java | 20 import com.google.android.mail.common.base.CharMatcher; 53 private static final CharMatcher HTML_WHITESPACE = CharMatcher.anyOf(" \t\f\u200b\r\n"); 743 text = CharMatcher.anyOf(HTML_SPACE_EQUIVALENTS).trimFrom(text); in appendNormalText() 746 text = CharMatcher.anyOf(HTML_SPACE_EQUIVALENTS).collapseFrom(text, ' '); in appendNormalText()
|
D | HtmlParser.java | 19 import com.google.android.mail.common.base.CharMatcher; 373 originalHtml = CharMatcher.is('<').replaceFrom(htmlTail, "<"); in scanText() 765 CharMatcher.is('<').replaceFrom(html.substring(start, end), "<"); in scanTag()
|
D | HtmlDocument.java | 20 import com.google.android.mail.common.base.CharMatcher; 1240 String collapsed = CharMatcher.LEGACY_WHITESPACE.trimAndCollapseFrom(noNewlines, ' '); in writeCollapsed()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | SearchActivity.java | 36 import com.google.common.base.CharMatcher; 331 String query = CharMatcher.WHITESPACE.trimAndCollapseFrom(getQuery(), ' '); in onSearchClicked() 474 final String query = CharMatcher.WHITESPACE.trimLeadingFrom(getQuery()); in updateSuggestions()
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
D | HtmlUtils.java | 32 import com.google.android.mail.common.base.CharMatcher;
|