Skip to content

RemoveDotSegments

[Source]

Remove dot segments from a URI path per RFC 3986 section 5.2.4.

Dot segments (. and ..) are special path segments used for relative navigation. This algorithm resolves them into an equivalent path without dot segments — e.g., /a/b/../c becomes /a/c.

Used internally by ResolveURI during reference resolution, but also useful on its own for path normalization.

primitive val RemoveDotSegments

Constructors

create

[Source]

new val create()
: RemoveDotSegments val^

Returns


Public Functions

apply

[Source]

Remove all . and .. segments from path, returning the normalized result. Implements the iterative algorithm from RFC 3986 section 5.2.4.

fun box apply(
  path: String val)
: String val

Parameters

Returns


eq

[Source]

fun box eq(
  that: RemoveDotSegments val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: RemoveDotSegments val)
: Bool val

Parameters

Returns