Home
last modified time | relevance | path

Searched refs:ipString (Results 1 – 2 of 2) sorted by relevance

/external/guava/guava/src/com/google/common/net/
DInetAddresses.java148 public static InetAddress forString(String ipString) { in forString() argument
149 byte[] addr = ipStringToBytes(ipString); in forString()
154 String.format("'%s' is not an IP string literal.", ipString)); in forString()
167 public static boolean isInetAddress(String ipString) { in isInetAddress() argument
168 return ipStringToBytes(ipString) != null; in isInetAddress()
171 private static byte[] ipStringToBytes(String ipString) { in ipStringToBytes() argument
175 for (int i = 0; i < ipString.length(); i++) { in ipStringToBytes()
176 char c = ipString.charAt(i); in ipStringToBytes()
192 ipString = convertDottedQuadToHex(ipString); in ipStringToBytes()
193 if (ipString == null) { in ipStringToBytes()
[all …]
/external/guava/guava-tests/test/com/google/common/net/
DInetAddressesTest.java166 for (String ipString : ipStrings) { in testConvertDottedQuadToHex()
168 InetAddress ipv6Addr = InetAddress.getByName(ipString); in testConvertDottedQuadToHex()
169 assertEquals(ipv6Addr, InetAddresses.forString(ipString)); in testConvertDottedQuadToHex()
170 assertTrue(InetAddresses.isInetAddress(ipString)); in testConvertDottedQuadToHex()