Cldr.quote
You're seeing just the function
quote
, go back to Cldr module for more information.
Specs
Add locale-specific quotation marks around a string.
Arguments
string
is any valid Elixir stringbackend
is any module that includesuse Cldr
and therefore is aCldr
backend module. The default isCldr.default_backend/0
. Note thatCldr.default_backend/0
will raise an exception if no:default_backend
is configured under the:ex_cldr
key inconfig.exs
.options
is a keyword list of options
Options
:locale
is any valid locale name returned byCldr.known_locale_names/1
. The default isCldr.get_locale/0
Examples
iex> Cldr.quote "Quoted String", MyApp.Cldr
"“Quoted String”"
iex> Cldr.quote "Quoted String", MyApp.Cldr, locale: "ja"
"「Quoted String」"