Home
last modified time | relevance | path

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

/external/apache-http/src/org/apache/http/message/
DBasicLineParser.java145 final int protolength = protoname.length(); in parseProtocolVersion() local
155 if (i + protolength + 4 > indexTo) { in parseProtocolVersion()
163 for (int j=0; ok && (j<protolength); j++) { in parseProtocolVersion()
167 ok = (buffer.charAt(i+protolength) == '/'); in parseProtocolVersion()
175 i += protolength+1; in parseProtocolVersion()
241 final int protolength = protoname.length(); in hasProtocolVersion() local
243 if (buffer.length() < protolength+4) in hasProtocolVersion()
249 index = buffer.length() -4 -protolength; in hasProtocolVersion()
259 if (index + protolength + 4 > buffer.length()) in hasProtocolVersion()
265 for (int j=0; ok && (j<protolength); j++) { in hasProtocolVersion()
[all …]