(String value)
| 1000 | } |
| 1001 | |
| 1002 | static int countParts(String value) |
| 1003 | { |
| 1004 | if(value == null) |
| 1005 | return 0; |
| 1006 | |
| 1007 | int count = 0; |
| 1008 | int index = -1; |
| 1009 | while((index = value.indexOf('.', index + 1)) != -1) |
| 1010 | count++; |
| 1011 | return count + 1; |
| 1012 | } |
| 1013 | |
| 1014 | static String prefix(String value) |
| 1015 | { |
no outgoing calls
no test coverage detected