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.9 2001/06/16 13:47:57 per Exp $ + // $Id: URI.pike,v 1.10 2002/01/15 22:34:47 nilsson 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:72:    path = uri->path; fragment = uri->fragment;   }      //! Compare this URI to something, in a canonical way.   //! @param something   //! Compare the URI to this   int `==(mixed something)   {    return    _sprintf('t') == sprintf("%t", something) && -  _sprintf('x') == sprintf("%x", something); +  _sprintf('x') == sprintf("%x", [object]something);   }      string combine_uri_path(string base, string rel)   {    string buf;       // RFC 2396, §5.2.6:    // a) All but the last segment of the base URI's path component is    // copied to the buffer. In other words, any characters after the    // last (right-most) slash character, if any, are excluded.