Home
last modified time | relevance | path

Searched refs:CharMatcher (Results 1 – 10 of 10) sorted by relevance

/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
DCharMatcher.java45 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 …]
DSplitter.java94 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;
DStringUtil.java86 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 …]
DPlatform.java54 static CharMatcher precomputeCharMatcher(CharMatcher matcher) { in precomputeCharMatcher()
/packages/apps/Messaging/src/com/android/messaging/util/
DEmailAddress.java19 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/
DHtmlTree.java20 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()
DHtmlParser.java19 import com.google.android.mail.common.base.CharMatcher;
373 originalHtml = CharMatcher.is('<').replaceFrom(htmlTail, "&lt;"); in scanText()
765 CharMatcher.is('<').replaceFrom(html.substring(start, end), "&lt;"); in scanTag()
DHtmlDocument.java20 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/
DSearchActivity.java36 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/
DHtmlUtils.java32 import com.google.android.mail.common.base.CharMatcher;