object
url(Representation)ï
Representation- URL and is components representation. Valid values areatom,codes, andchars.
URL validating, parsing, and normalizing predicates following RFC3986 nomenclature.
logtalk_load(url(loader))static, context_switching_callsPublic predicatesï
valid/1ï
True iff the argument is a valid URL, including optional query and fragment components.
staticvalid(URL)valid(++text) - zero_or_oneparse/2ï
Parses a URL into a list of its components: [scheme(Scheme), authority(Authority), path(Path), query(Query), fragment(Fragment)]. Fails if the URL is invalid and cannot be parsed.
staticparse(URL,Components)parse(++text,-list(compound)) - zero_or_onegenerate/2ï
Generates a normalized URL from a list of its components: [scheme(Scheme), authority(Authority), path(Path), query(Query), fragment(Fragment)] for standard URLs, or scheme-specific components for mailto, news, tel, and urn URLs. Fails if the components are invalid.
staticgenerate(Components,URL)generate(++list(compound),-text) - zero_or_onenormalize/2ï
Normalizes a URL by standardizing its components. Normalization includes converting the scheme to lowercase, percent-encoding characters that require escaping, ensuring proper path separators, and handling relative paths.
staticnormalize(URL,NormalizedURL)normalize(++text,-text) - onefile_path_components/2ï
Converts a file-system path into file URL components represented as [authority(Authority), path(Path)]. Windows drive-letter and UNC paths are normalized to RFC3986-compatible file URL components.
staticfile_path_components(FilePath,Components)file_path_components(++text,-list(compound)) - oneProtected predicatesï
(no local declarations; see entity ancestors if any)
Private predicatesï
downcase_text/2ï
Converts text to lowercase (ASCII only). Only uppercase letters A-Z are converted to lowercase.
staticdowncase_text(Text,LowerText)downcase_text(+text,-text) - oneOperatorsï
(none)