Current section
Files
Jump to
Current section
Files
src/owoify_gleam.erl
-module(owoify_gleam).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export([owoify/1, uwuify/1, uvuify/1, owoify_with_level/2]).
-export_type([owoify_level/0]).
-type owoify_level() :: owo | uwu | uvu.
-spec owoify(binary()) -> binary().
owoify(Source) ->
owoify_erl:owoify(Source).
-spec uwuify(binary()) -> binary().
uwuify(Source) ->
owoify_erl:uwuify(Source).
-spec uvuify(binary()) -> binary().
uvuify(Source) ->
owoify_erl:uvuify(Source).
-spec owoify_with_level(binary(), owoify_level()) -> binary().
owoify_with_level(Source, Level) ->
Owoness_level = case Level of
owo ->
erlang:binary_to_atom(<<"owo"/utf8>>);
uwu ->
erlang:binary_to_atom(<<"uwu"/utf8>>);
uvu ->
erlang:binary_to_atom(<<"uvu"/utf8>>)
end,
owoify_erl:owoify(Source, Owoness_level).