Merge "Added interface to get the decimal digit from hex ICCID."

am: c173c93c1c

Change-Id: Ib9851f91a687fb56ba2488710fa3a580cd3f1e91
This commit is contained in:
Jordan Liu
2017-11-01 23:29:01 +00:00
committed by android-build-merger

View File

@@ -567,4 +567,12 @@ public class IccUtils {
} while (valueIndex < endIndex);
return result;
}
public static String getDecimalSubstring(String iccId) {
int position;
for (position = 0; position < iccId.length(); position ++) {
if (!Character.isDigit(iccId.charAt(position))) break;
}
return iccId.substring( 0, position );
}
}