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

Method parseIPv4

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

Source from the content-addressed store, hash-verified

1183 }
1184
1185 public static int parseIPv4(CharSequence sequence) throws NumericException {
1186 if (sequence == null || Chars.equalsIgnoreCase("null", sequence)) {
1187 return IPv4_NULL;
1188 }
1189 return parseIPv4_0(sequence, 0, sequence.length());
1190 }
1191
1192 public static int parseIPv4(Utf8Sequence sequence) throws NumericException {
1193 if (sequence == null || Utf8s.equalsIgnoreCaseAscii("null", sequence)) {

Calls 6

equalsIgnoreCaseMethod · 0.95
parseIPv4_0Method · 0.95
equalsIgnoreCaseAsciiMethod · 0.95
lengthMethod · 0.65
asAsciiCharSequenceMethod · 0.65
sizeMethod · 0.65