Cldr.quote

You're seeing just the function quote, go back to Cldr module for more information.
Link to this function

quote(string, backend \\ default_backend!(), options \\ [])

View Source

Specs

quote(String.t(), backend(), Keyword.t()) :: String.t()

Add locale-specific quotation marks around a string.

Arguments

  • string is any valid Elixir string

  • backend is any module that includes use Cldr and therefore is a Cldr backend module. The default is Cldr.default_backend/0. Note that Cldr.default_backend/0 will raise an exception if no :default_backend is configured under the :ex_cldr key in config.exs.

  • options is a keyword list of options

Options

Examples

iex> Cldr.quote "Quoted String", MyApp.Cldr
"“Quoted String”"

iex> Cldr.quote "Quoted String", MyApp.Cldr, locale: "ja"
"「Quoted String」"