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.7 2001/01/26 14:54:31 jhs Exp $ + // $Id: URI.pike,v 1.8 2001/07/11 21:13:05 js 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:356:    case "string":    return _sprintf('s');    case "mapping":    array(string) i = ({ "scheme", "authority", "user", "password", "host", "port",    "path", "query", "fragment",    "raw_uri", "base_uri", });    return mkmapping(i, rows(this_object(), i));    }   }    + string get_path_query() + { +  return (path||"") + (query ? "?" + query : ""); + } +    string _sprintf(int how, mapping|void args)   {    string look, _scheme = scheme, _host = host, getstring;    switch(how)    {    case 't':    return "Standards.URI";       case 'x': // A case-mangling version, especially suited for readable hash values    if(_host) _host = lower_case(_host);