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

version» Context lines:

pike.git/lib/modules/Standards.pmod/URI.pike:213:       // Parse fragment identifier    // fragment = *( pchar / "/" / "?" )    // pchar = unreserved / pct-encoded / sub-delims / ":" / "@"    if( sscanf(uri, "%s#%s", uri, fragment)==2 )    {    DEBUG("Found fragment %O", fragment);    if( !sizeof(uri) )    {    DEBUG("Fragment only. Using entire base URI, except fragment."); +  if( !this_program::base_uri ) +  error("fragment only URI lacking base URI.\n");    string f = fragment;    inherit_properties(this_program::base_uri);    fragment = f;    return;    }    }       // Parse scheme    // scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )    if(sscanf(uri, "%[A-Za-z0-9+.-]:%s", scheme, uri) < 2)
pike.git/lib/modules/Standards.pmod/URI.pike:350:   //! @param uri   //! When uri is another URI object, the created   //! URI will inherit all properties of the supplied uri   //! except, of course, for its base_uri.   void create(this_program|string uri,    this_program|string|void base_uri)   {    DEBUG("create(%O, %O) called!", uri, base_uri);    if(stringp(uri))    raw_uri = [string]uri; // Keep for future runs of reparse_uri after a base_uri change -  else // if(objectp(uri)) (implied) +  else if(objectp(uri)) // If uri is 0, we want to inherit from the base_uri.    {    raw_uri = uri->raw_uri;    inherit_properties([object(this_program)]uri);    }       reparse_uri(base_uri);   }      //! Assign a new value to a property of URI   //! @param property