diff options
Diffstat (limited to 'telephony')
-rw-r--r-- | telephony/java/com/android/internal/telephony/GsmAlphabet.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/telephony/java/com/android/internal/telephony/GsmAlphabet.java b/telephony/java/com/android/internal/telephony/GsmAlphabet.java index d1c8ef0..ef39a6c 100644 --- a/telephony/java/com/android/internal/telephony/GsmAlphabet.java +++ b/telephony/java/com/android/internal/telephony/GsmAlphabet.java @@ -754,6 +754,18 @@ public class GsmAlphabet { } } + public static boolean isGsmSeptets(char c) { + if (sCharsToGsmTables[0].get(c, -1) != -1) { + return true; + } + + if (sCharsToShiftTables[0].get(c, -1) != -1) { + return true; + } + + return false; + } + /** * Returns the count of 7-bit GSM alphabet characters needed * to represent this string, using the specified 7-bit language table |