(String text)
| 2656 | } |
| 2657 | |
| 2658 | static boolean containsControlChars(String text) { |
| 2659 | int codePoint; |
| 2660 | for (int offset = 0; offset < text.length(); ) { |
| 2661 | codePoint = text.codePointAt(offset); |
| 2662 | offset += Character.charCount(codePoint); |
| 2663 | switch (Character.getType(codePoint)) { |
| 2664 | case Character.CONTROL: // \p{Cc} |
| 2665 | case Character.FORMAT: // \p{Cf} |
| 2666 | case Character.PRIVATE_USE: // \p{Co} |
| 2667 | case Character.SURROGATE: // \p{Cs} |
| 2668 | case Character.UNASSIGNED: // \p{Cn} |
| 2669 | return true; |
| 2670 | } |
| 2671 | } |
| 2672 | return false; |
| 2673 | } |
| 2674 | |
| 2675 | static Integer parseInt(String text) { |
| 2676 | if (TextUtils.isEmpty(text)) |
no test coverage detected