(CharSequence sequence)
| 1217 | } |
| 1218 | |
| 1219 | public static int parseIPv4UDP(CharSequence sequence) throws NumericException { |
| 1220 | if (sequence == null || sequence.isEmpty()) { |
| 1221 | return IPv4_NULL; |
| 1222 | } |
| 1223 | // discards quote marks around ip address |
| 1224 | if (sequence.charAt(0) == '"' && sequence.charAt(sequence.length() - 1) == '"') { |
| 1225 | return parseIPv4_0(sequence, 1, sequence.length() - 1); |
| 1226 | } |
| 1227 | return parseIPv4_0(sequence, 0, sequence.length()); |
| 1228 | } |
| 1229 | |
| 1230 | public static int parseIPv4_0(CharSequence sequence, final int p, int lim) throws NumericException { |
| 1231 | if (lim == 0) { |
no test coverage detected