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

version» Context lines:

pike.git/lib/modules/Standards.pmod/URI.pike:445:    // FALL_THROUGH    default:    return ::`[]=(property, value); // Set and return the new value    }   }      //! When cast to string, return the URI (in a canonicalized form).   //! When cast to mapping, return a mapping with scheme, authority,   //! user, password, host, port, path, query, fragment, raw_uri,   //! base_uri as documented above. - string|mapping cast(string to) + protected string|mapping cast(string to)   {    switch(to)    {    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, i));    } -  +  return UNDEFINED;   }      //! Returns path and query part of the URI if present.   string get_path_query()   {    return (path||"") + (query ? "?" + query : "");   }      protected mapping(string:string) variables;