Home | History | Annotate | Download | only in src

Lines Matching refs:PORT

48 // Returns true if the given character is a valid digit to use in a port.
124 // Found a port number: <hostname>:<port>
130 // No port: <hostname>
137 // parts. The port number will be parsed and the resulting integer will be
138 // filled into the given *port variable, or -1 if there is no port number or it
292 // and port) and the full path (path, query, and reference).
309 &parsed->host, &parsed->port);
345 parsed->port.reset();
389 parsed->port.reset();
442 // Converts a port number in a string to an integer. We'd like to just call
445 // of digits in a valid port number) that we can NULL terminate.
448 // Easy success case when there is no port.
474 // Invalid port digit, fail.
483 int port = atoi(digits);
484 if (port > 65535)
486 return port;
606 if (port.is_valid()) {
607 if (type < PORT || (type == PORT && include_delimiter))
608 return port.begin - 1; // Back over delimiter.
609 if (type == PORT)
610 return port.begin; // Don't want delimiter counted.
611 cur = port.end();
698 int ParsePort(const char* url, const Component& port) {
699 return DoParsePort(url, port);
702 int ParsePort(const char16* url, const Component& port) {
703 return DoParsePort(url, port);