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

version» Context lines:

pike.git/lib/modules/Standards.pmod/URI.pike:1:   #pike __REAL_VERSION__      //! 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. - // $Id: URI.pike,v 1.13 2002/09/21 15:08:30 mast Exp $ + // $Id: URI.pike,v 1.14 2002/12/11 22:18:02 anders 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;   
pike.git/lib/modules/Standards.pmod/URI.pike:360:    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);