MyApp.Cldr.Territory.to_unicode_flag
You're seeing just the function
to_unicode_flag
, go back to MyApp.Cldr.Territory module for more information.
Specs
to_unicode_flag( Cldr.Territory.atom_binary_tag() | {:ok, atom()} | {:error, Cldr.Territory.error()} ) :: {:ok, binary()} | {:error, Cldr.Territory.error()}
Unicode flag for the given territory code.
Returns {:ok, flag}
if successful, otherwise {:error, reason}
.
Example
iex> MyApp.Cldr.Territory.to_unicode_flag(:US)
{:ok, "πΊπΈ"}
iex> MyApp.Cldr.Territory.to_unicode_flag(:EZ)
{:error, {Cldr.UnknownFlagError, "The territory :EZ has no flag"}}