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)