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

version» Context lines:

pike.git/lib/modules/Standards.pmod/URI.pike:452:    return value;       case "base_uri":    if(!stringp(value) && value!=0 && !objectp(value))    error("base_uri value neither object nor string.\n");    reparse_uri([object(this_program)|string]value);    return base_uri;       case "query":    variables = 0; -  return ::`[]=(property, value); +  ::`[]=(property, value); +  return value;       case "scheme":    /* RFC 3986 ยง3.1    *    * An implementation should accept uppercase letters as equivalent    * to lowercase in scheme names (e.g., allow "HTTP" as well as    * "http") for the sake of robustness but should only produce    * lowercase scheme names for consistency.    */    if(!stringp(value) && value!=0)    error("scheme value not string.\n");    value = lower_case([string]value);       // FALL_THROUGH    default: -  return ::`[]=(property, value); // Set and return the new value +  ::`[]=(property, value); // Set and return the new value +  return 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.   protected string|mapping cast(string to)   {    switch(to)
pike.git/lib/modules/Standards.pmod/URI.pike:638:    P(port),    P(base_uri),    P(raw_uri),    // variables is only a cache    ]);   #undef P   }      // Master codec API function. Allows for deserialization with   // decode_value. - void _decode(mapping m) + void _decode(mapping(string:mixed) m)   { -  foreach(m; mixed index; mixed value) +  foreach(m; string index; mixed value)    ::`[]=(index, value);   }      #if 0   // Not used yet.   string quote(string s)   {    return replace(s,    ({ "\000", "\001", "\002", "\003", "\004", "\005", "\006",    "\007", "\010", "\011", "\012", "\013", "\014", "\015",