Skip to main content

Module util

Module util 

Source
Expand description

Common utils

Includes range transformations between std::ops::Range and [swls_core::lsp_types::Range]. And commonly used Spanned.

Modules§

fs
ns
Commonly used RDF prefixes
token
triple

Structs§

Spanned

Functions§

lsp_range_to_range
offset_to_position
offsets_to_range
position_to_offset
range_to_range
resolve_iri
Resolve relative against base using RFC 3986 path resolution, without any IRI validation. This intentionally accepts non-standard / “invalid” IRIs so that tokens in the source document can be round-tripped back to the triple store without percent-encoding transformations.
spanned
token_to_location