Dust.Protocol.Path.LegacyDot (dustlayer v0.1.1)

Copy Markdown View Source

Dotted-path helpers from the pre-segment-first capability version.

Visibly named + separate so callers can be migrated one at a time without breaking the SDK build. Deleted at the end of the migration.

Mirrors DustProtocol.Path.LegacyDot in the canonical package.

Summary

Functions

normalize(path)

@spec normalize(binary()) :: {:ok, binary()} | {:error, atom()}

normalize_pattern(pattern)

@spec normalize_pattern(binary()) :: {:ok, binary()} | {:error, atom()}

parse(path)

@spec parse(binary()) :: {:ok, [binary()]} | {:error, atom()}

to_string(segments)

@spec to_string([binary()]) :: binary()