MCPcopy Create free account
hub / github.com/M66B/FairEmail / parseInt

Method parseInt

app/src/main/java/eu/faircode/email/Helper.java:2675–2687  ·  view source on GitHub ↗
(String text)

Source from the content-addressed store, hash-verified

2673 }
2674
2675 static Integer parseInt(String text) {
2676 if (TextUtils.isEmpty(text))
2677 return null;
2678
2679 if (!TextUtils.isDigitsOnly(text))
2680 return null;
2681
2682 try {
2683 return Integer.parseInt(text);
2684 } catch (NumberFormatException ignored) {
2685 return null;
2686 }
2687 }
2688
2689 static String toRoman(int value) {
2690 if (value < 0 || value >= 4000)

Callers 15

decodeImageMethod · 0.95
getDrawableMethod · 0.95
sanitizeMethod · 0.95
isTrackingPixelMethod · 0.95
onExecuteMethod · 0.95
loadMethod · 0.95
processSourceIpMethod · 0.95
afterTextChangedMethod · 0.95
getDataMethod · 0.95
onExecuteMethod · 0.95
verifyDKIMMethod · 0.95
verifySignatureHeaderMethod · 0.95

Calls 1

isEmptyMethod · 0.45

Tested by

no test coverage detected