Packages

Common Locale Data Repository (CLDR) icu4c NIF-based collator providing Unicode default collation sorting. Useful sorting not-ASCII strings.

Current section

Files

Jump to
ex_cldr_collation_test lib cased sensitive.ex
Raw

lib/cased/sensitive.ex

defmodule Cldr.Collation.Sensitive do
@moduledoc """
Compare two strings using the UCA
in a case-sensitive manner
"""
@sensitive 0
@dialyzer {:no_return, compare: 2}
def compare(a, b) do
Cldr.Collation.nif_compare(a, b, @sensitive)
end
end