(String text)
| 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) |
no test coverage detected