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
220 closeBracketIndex = hostPortString.lastIndexOf(']'); in getHostAndPortFromBracketedHost()
221 checkArgument(colonIndex > -1 && closeBracketIndex > colonIndex, in getHostAndPortFromBracketedHost()
224 String host = hostPortString.substring(1, closeBracketIndex); in getHostAndPortFromBracketedHost()
225 if (closeBracketIndex + 1 == hostPortString.length()) { in getHostAndPortFromBracketedHost()
228 checkArgument(hostPortString.charAt(closeBracketIndex + 1) == ':', in getHostAndPortFromBracketedHost()
230 for (int i = closeBracketIndex + 2; i < hostPortString.length(); ++i) { in getHostAndPortFromBracketedHost()
234 return new String[] { host, hostPortString.substring(closeBracketIndex + 2) }; in getHostAndPortFromBracketedHost()