/*
 * Derived from android.telephony.PhoneNumberUtils
 * (tag android-4.4.4_r2.0.1)
 * https://android.googlesource.com/platform/frameworks/base/+/android-4.4.4_r2.0.1/telephony/java/android/telephony/PhoneNumberUtils.java
 */

package ca.bmaupin.merge.sms.android;

public class PhoneNumberUtils {

}

@@ -292,11 +292,1450 @@
 Utils %7B%0A
+    /*%0A     * Special characters%0A     *%0A     * (See %22What is a phone number?%22 doc)%0A     * 'p' --- GSM pause character, same as comma%0A     * 'n' --- GSM wild character%0A     * 'w' --- GSM wait character%0A     */%0A    public static final char PAUSE = ',';%0A    public static final char WAIT = ';';%0A    public static final char WILD = 'N';%0A%09%0A    /** True if c is ISO-LATIN characters 0-9, *, # , +, WILD, WAIT, PAUSE   */%0A    public final static boolean%0A    isNonSeparator(char c) %7B%0A        return (c %3E= '0' && c %3C= '9') %7C%7C c == '*' %7C%7C c == '#' %7C%7C c == '+'%0A                %7C%7C c == WILD %7C%7C c == WAIT %7C%7C c == PAUSE;%0A    %7D%0A%09%0A%09/**%0A     * Strips separators from a phone number string.%0A     * @param phoneNumber phone number to strip.%0A     * @return phone string stripped of separators.%0A     */%0A    public static String stripSeparators(String phoneNumber) %7B%0A        if (phoneNumber == null) %7B%0A            return null;%0A        %7D%0A        int len = phoneNumber.length();%0A        StringBuilder ret = new StringBuilder(len);%0A        for (int i = 0; i %3C len; i++) %7B%0A            char c = phoneNumber.charAt(i);%0A            // Character.digit() supports ASCII and Unicode digits (fullwidth, Arabic-Indic, etc.)%0A            int digit = Character.digit(c, 10);%0A            if (digit != -1) %7B%0A                ret.append(digit);%0A            %7D else if (isNonSeparator(c)) %7B%0A                ret.append(c);%0A            %7D%0A        %7D%0A        return ret.toString();%0A    %7D
 %0A%7D%0A

Add dependencies for Contact