Word (owoify_ex v0.1.2) View Source

Link to this section Summary

Link to this section Types

Specs

replaced_words() :: [String.t()]

Specs

t() :: %Word{replaced_words: replaced_words(), word: word()}

Specs

word() :: String.t()

Link to this section Functions

Specs

new(String.t()) :: t()
Link to this function

replace(w, search_value, replace_value, replace_replaced_words \\ false)

View Source

Specs

replace(t(), Regex.t(), String.t(), boolean()) :: t()
Link to this function

replace_with_func_multiple(w, search_value, func, replace_replaced_words \\ false)

View Source

Specs

replace_with_func_multiple(
  t(),
  Regex.t(),
  (String.t(), String.t() -> String.t()),
  false
) :: t()
Link to this function

replace_with_func_single(w, search_value, func, replace_replaced_words \\ false)

View Source

Specs

replace_with_func_single(t(), Regex.t(), (() -> String.t()), boolean()) :: t()

Specs

to_string(t()) :: String.t()