Home
last modified time | relevance | path

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

/external/guava/guava/src/com/google/common/net/
DHostAndPort.java215 int closeBracketIndex = 0; in getHostAndPortFromBracketedHost() local
219 closeBracketIndex = hostPortString.lastIndexOf(']'); in getHostAndPortFromBracketedHost()
220 checkArgument(colonIndex > -1 && closeBracketIndex > colonIndex, in getHostAndPortFromBracketedHost()
223 String host = hostPortString.substring(1, closeBracketIndex); in getHostAndPortFromBracketedHost()
224 if (closeBracketIndex + 1 == hostPortString.length()) { in getHostAndPortFromBracketedHost()
227 checkArgument(hostPortString.charAt(closeBracketIndex + 1) == ':', in getHostAndPortFromBracketedHost()
229 for (int i = closeBracketIndex + 2; i < hostPortString.length(); ++i) { in getHostAndPortFromBracketedHost()
233 return new String[] { host, hostPortString.substring(closeBracketIndex + 2) }; in getHostAndPortFromBracketedHost()