Packages

A wildcard matching library that implements unix-style blob pattern matching functionality for Elixir binaries. It works on all binary input and defaults to working with codepoint representations of binaries, but other modes are also available.

Current section

Files

Jump to
wild lib wild byte.ex
Raw

lib/wild/byte.ex

defmodule Wild.Byte do
@moduledoc false
use Wild.Matcher
@question_mark ??
@asterisk ?*
@backslash ?\\
@left_square_bracket ?[
@right_square_bracket ?]
@dash ?-
@exclamation_mark ?!
def split(string), do: :binary.bin_to_list(string)
def range_to_list(range_start, range_end) do
Enum.to_list(range_start..range_end)
end
end