pike.git / lib / modules / Standards.pmod / URI.pike

version» Context lines:

pike.git/lib/modules/Standards.pmod/URI.pike:1:   //! This class implements URI parsing and resolving of relative references to   //! absolute form, as defined in RFC 2396      // Implemented by Johan Sundström and Johan Schön.   // Copyright (c) Roxen Internet Software 2001 - // $Id: URI.pike,v 1.4 2001/01/13 00:09:52 grubba Exp $ + // $Id: URI.pike,v 1.5 2001/01/14 16:16:02 jhs Exp $      #pragma strict_types      //! Scheme component of URI   string scheme;      //! Authority component of URI (formerly called net_loc, from RFC 2396 known as authority)   string authority;      //! Path component of URI. May be empty, but not undefined.
pike.git/lib/modules/Standards.pmod/URI.pike:213:    debug("Found scheme %O", scheme);       // Parse authority/login    if(sscanf(uri, "//%[^/]%s", authority, uri))    {    debug("Found authority %O", authority);    }       // Parse query information    sscanf(uri, "%s?%s", uri, query); -  if(query && !sizeof(query)) query = 0; +     debug("Found query %O", query);       // Parse path:    path = uri;    debug("Found path %O", path);       // 3) If the scheme component is defined, indicating that the reference    // starts with a scheme name, then the reference is interpreted as an    // absolute URI and we are done. Otherwise, the reference URI's    // scheme is inherited from the base URI's scheme component.