/usr/lib/swipl/library/ext/clib/uri.pl
All Application Manual Name SummaryHelp

  • ext
    • clib
      • socket.pl
      • uid.pl
      • unix.pl -- Unix specific operations
      • syslog.pl -- Unix syslog interface
      • memfile.pl
      • time.pl -- Time and alarm library
      • uri.pl -- Process URIs
        • uri_components/2
        • uri_data/3
        • uri_data/4
        • uri_normalized/2
        • iri_normalized/2
        • uri_normalized_iri/2
        • uri_is_global/1
        • uri_resolve/3
        • uri_normalized/3
        • iri_normalized/3
        • uri_normalized_iri/3
        • uri_query_components/2
        • uri_authority_components/2
        • uri_authority_data/3
        • uri_encoded/3
        • uri_iri/2
        • uri_file_name/2
        • uri_edit/3
      • filesex.pl
      • uuid.pl -- Universally Unique Identifier (UUID) Library
      • sha.pl -- SHA secure hashes
      • process.pl
      • hash_stream.pl -- Maintain a hash on a stream
      • md5.pl -- MD5 hashes
      • rlimit.pl
      • mallocinfo.pl
      • prolog_stream.pl -- A stream with Prolog callbacks
      • udp_broadcast.pl
      • crypt.pl
      • streampool.pl
      • cgi.pl -- Read CGI parameters
      • prolog_server.pl
 uri_is_global(+URI) is semidet
True if URI has a scheme. The semantics is the same as the code below, but the implementation is more efficient as it does not need to parse the other components, nor needs to bind the scheme. The condition to demand a scheme of more than one character is added to avoid confusion with DOS path names.
uri_is_global(URI) :-
        uri_components(URI, Components),
        uri_data(scheme, Components, Scheme),
        nonvar(Scheme),
        atom_length(Scheme, Len),
        Len > 1.