mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-04-28 12:17:57 +03:00
12 lines
348 B
Java
12 lines
348 B
Java
package android.telephony;
|
|
|
|
public class PhoneNumberUtils {
|
|
|
|
public static boolean isNonSeparator(char c) {
|
|
return c != ' ' && c != '\t' && c != '\n' && c != '\r' && c != '-';
|
|
}
|
|
|
|
public static boolean isGlobalPhoneNumber(String phoneNumber) {
|
|
return phoneNumber != null && (phoneNumber.startsWith("+") || phoneNumber.startsWith("00"));
|
|
}
|
|
}
|