unicode_char

In this library are implemented functions (Char.lower?, Char.digit?, etc) to work with Unicode characters, which are is missing in the stdlib.


License
Other

Documentation

Unicode.Char

In this library are implemented functions (Char.lower?, Char.digit?, etc) to work with Unicode characters, which are is missing in the stdlib.

Installation

Add unicode_char to your list of dependencies in mix.exs:

def deps do
  [{:unicode_char, "~> 0.5.0"}]
end

Implemented functions

  • lower?
  • upper?
  • digit?
  • control?
  • whitespace?

Using

defmodule MyModule do
  alias Unicode.Char # for convenience

  if Char.upper?("È") do
    # do something with upper case letter
  else
    # otherwise
  end
end