Lines Matching refs:hostinfo
727 const char *hostinfo;
836 hostinfo = s;
840 uri = s; /* whatever follows hostinfo is start of uri */
841 uptr->hostinfo = apr_pstrmemdup(p, hostinfo, uri - hostinfo);
844 * too bad there's no memrchr()... For the C purists, note that hostinfo
846 * &hostinfo[-1] < &hostinfo[0] ... and this loop is valid C.
850 } while (s >= hostinfo && *s != '@');
851 if (s < hostinfo) {
854 /* We expect hostinfo to point to the first character of
858 if (*hostinfo == '[') {
861 s = memchr(hostinfo, ']', uri - hostinfo);
870 s = memchr(hostinfo, ':', uri - hostinfo);
875 hostinfo + v6_offset1,
876 uri - hostinfo - v6_offset2);
880 hostinfo + v6_offset1,
881 s - hostinfo - v6_offset2);
898 s1 = memchr(hostinfo, ':', s - hostinfo);
900 uptr->user = apr_pstrmemdup(p, hostinfo, s1 - hostinfo);
905 uptr->user = apr_pstrmemdup(p, hostinfo, s - hostinfo);
907 hostinfo = s + 1;
911 /* Special case for CONNECT parsing: it comes with the hostinfo part only */
917 const char *hostinfo,
930 uptr->hostinfo = apr_pstrdup(p, hostinfo);
932 /* We expect hostinfo to point to the first character of
935 if (*hostinfo == '[') {
936 if ((rsb = strchr(hostinfo, ']')) == NULL ||
942 ++hostinfo;
946 s = strchr(hostinfo, ':');
951 uptr->hostname = apr_pstrndup(p, hostinfo, s - hostinfo - v6_offset1);