Packages
Unicode locale-aware case folding, case mapping (upcase, downcase and titlecase) case-insensitive equality as well as word, line, grapheme and sentence breaking and streaming.
Current section
Files
Jump to
Current section
Files
lib/unicode/trie.ex
defmodule Unicode.String.Trie do
def new(list) do
:btrie.new(list)
end
def find_prefix(string, dictionary) do
:btrie.find_prefix(string, dictionary)
end
def has_key(string, dictionary) do
:btrie.is_key(string, dictionary)
end
end