Packages

Path parsing and manipulation

Current section

Files

Jump to
gleam_community_path src gleam_community@path_string.erl
Raw

src/gleam_community@path_string.erl

-module(gleam_community@path_string).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function]).
-export([normalize/1, and_then/2, append/2]).
-spec normalize(binary()) -> binary().
normalize(Path_string) ->
_pipe = Path_string,
_pipe@1 = gleam_community@path:from_string(_pipe),
gleam_community@path:to_string(_pipe@1).
-spec and_then(binary(), binary()) -> binary().
and_then(Self, Path_string) ->
_pipe = Self,
_pipe@1 = gleam_community@path:from_string(_pipe),
_pipe@2 = gleam_community@path:and_then_string(_pipe@1, Path_string),
gleam_community@path:to_string(_pipe@2).
-spec append(binary(), binary()) -> binary().
append(Self, Path_string) ->
_pipe = Self,
_pipe@1 = gleam_community@path:from_string(_pipe),
_pipe@2 = gleam_community@path:append_string(_pipe@1, Path_string),
gleam_community@path:to_string(_pipe@2).