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 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 scheme and authority to lowercase, ensuring proper path separators, and handling relative paths.
staticnormalize(URL,NormalizedURL)normalize(++text,-text) - 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)