RemoveDotSegments¶
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.
Constructors¶
create¶
Returns¶
- RemoveDotSegments val^
Public Functions¶
apply¶
Remove all . and .. segments from path, returning the normalized
result. Implements the iterative algorithm from RFC 3986 section 5.2.4.
Parameters¶
- path: String val
Returns¶
- String val
eq¶
Parameters¶
- that: RemoveDotSegments val
Returns¶
- Bool val
ne¶
Parameters¶
- that: RemoveDotSegments val
Returns¶
- Bool val