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. - // $Id: URI.pike,v 1.10 2002/01/15 22:34:47 nilsson Exp $ + // $Id: URI.pike,v 1.11 2002/03/17 18:10:34 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:32:   //! The base URI object, if present   object(this_program) base_uri;      // URI hacker docs:   // This string is the raw uri the object was instantiated from in the   // first place. We save it here for the sole purpose of being able to   // replace the base URI, hence also needing to reresolve all of our   // properties with respect to that change.   string raw_uri;    - #define error(S) throw( ({ (S), backtrace() }) ) +    #ifdef STANDARDS_URI_DEBUG   #define DEBUG(X, Y ...) werror("Standards.URI: "+X+"\n", Y)   #else   #define DEBUG(X, Y ...)   #endif      // Parse authority component (according to RFC 1738, § 3.1)   static void parse_authority()   {    if(sscanf(authority, "%[^@]@%s", string auth, authority) == 2)