MCPcopy Create free account
hub / github.com/questdb/questdb / parseIPv4UDP

Method parseIPv4UDP

core/src/main/java/io/questdb/std/Numbers.java:1219–1228  ·  view source on GitHub ↗
(CharSequence sequence)

Source from the content-addressed store, hash-verified

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) {

Callers 1

putValueMethod · 0.95

Calls 4

parseIPv4_0Method · 0.95
isEmptyMethod · 0.65
lengthMethod · 0.65
charAtMethod · 0.45

Tested by

no test coverage detected