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

version» Context lines:

pike.git/lib/modules/Standards.pmod/URI.pike:273:    * "http") for the sake of robustness but should only produce    * lowercase scheme names for consistency.    */    scheme = lower_case(scheme);    }    DEBUG("Found scheme %O", scheme);       // DWIM for "www.cnn.com" style input, when parsed in the context of    // base "http://".    if( !has_prefix(uri, "//") && !scheme && this::base_uri?->scheme && -  !sizeof(this::base_uri->authority || "") && +  this::base_uri->authority && +  !sizeof(this::base_uri->authority) &&    !sizeof(this::base_uri->path))    {    DEBUG("DWIM authority: %O\n", uri);    uri = "//"+uri;    }       // Parse authority/login    //    // hier-part = "//" authority path-abempty / path-absolute    // / path-rootless / path-empty