Locale support for phone-number
Locale support for phone-number
Map of locales (keywords) to Locale values.
Map of locales (keywords) to Locale values.
Map of locales (keywords) to Locale values suitable to be passed as arguments.
Map of locales (keywords) to Locale values suitable to be passed as arguments.
Vector of locales (keywords) suitable to be used as arguments.
Vector of locales (keywords) suitable to be used as arguments.
Set of available locale (keywords).
Set of available locale (keywords).
Map of Locale values to locales (keywords).
Map of Locale values to locales (keywords).
Map of Locale values to locales (keywords) suitable to be passed as method arguments.
Map of Locale values to locales (keywords) suitable to be passed as method arguments.
Vector of locales (Locale values) suitable to be used as method arguments.
Vector of locales (Locale values) suitable to be used as method arguments.
Vector of locales (Locale values).
Vector of locales (Locale values).
(generate-sample)
(generate-sample rng)
Generates random locale.
Generates random locale.
(generate-sample-val)
(generate-sample-val rng)
Generates random locale (string value).
Generates random locale (string value).
(parse locale-specification)
(parse locale-specification use-infer)
Parses locale. If it is a java.util.Locale
object it returns it. If it's not
keyword then it parses it by calling trptr.java-wrapper.locale/locale
. If it is a
keyword it first tries to infer a namespace (if not present and the use-infer
is
set to some truthy value) and then looks it up in locales map. If the value is
found, returns the associated Locale
object. Otherwise it falls back to getting
locale using the function from trptr.java-wrapper.locale/locale
(before doing so
it strips any namespace from a keyword, if found).
Parses locale. If it is a `java.util.Locale` object it returns it. If it's not keyword then it parses it by calling `trptr.java-wrapper.locale/locale`. If it is a keyword it first tries to infer a namespace (if not present and the `use-infer` is set to some truthy value) and then looks it up in locales map. If the value is found, returns the associated `Locale` object. Otherwise it falls back to getting locale using the function from `trptr.java-wrapper.locale/locale` (before doing so it strips any namespace from a keyword, if found).
(strictly-valid-arg? locale-specification)
(strictly-valid-arg? locale-specification use-infer)
Returns true
if the given locale specification is valid and supported, false
otherwise. For nil
it returns false
and for keywords it only checks if they are
in the locale map (phone-number.locale/all
). If the key is not there, it returns
false
. Namespace inference is supported using the second argument (the default is
not to infer).
Returns `true` if the given locale specification is valid and supported, `false` otherwise. For `nil` it returns `false` and for keywords it only checks if they are in the locale map (`phone-number.locale/all`). If the key is not there, it returns `false`. Namespace inference is supported using the second argument (the default is not to infer).
(strictly-valid? locale-specification)
(strictly-valid? locale-specification use-infer)
Returns true
if the given locale specification is valid and supported, false
otherwise. For nil
it returns false
and for keywords it only checks if they are
in the locale map (phone-number.locale/all
). If the key is not there, it returns
false
. Namespace inference is supported using the second argument (the default is
not to infer).
Returns `true` if the given locale specification is valid and supported, `false` otherwise. For `nil` it returns `false` and for keywords it only checks if they are in the locale map (`phone-number.locale/all`). If the key is not there, it returns `false`. Namespace inference is supported using the second argument (the default is not to infer).
(valid-arg? locale-specification)
(valid-arg? locale-specification use-infer)
(valid-arg? locale-specification use-infer strict)
Returns true
if the given locale specification is valid and supported, false
otherwise. For nil
it returns true
assuming it will be a default, system
locale. If strict
flag is set then for nil value it returns false
and for
keywords it only checks if they are in the locale
map (phone-number.locale/all
).
Returns `true` if the given locale specification is valid and supported, `false` otherwise. For `nil` it returns `true` assuming it will be a default, system locale. If `strict` flag is set then for nil value it returns `false` and for keywords it only checks if they are in the locale map (`phone-number.locale/all`).
(valid? locale-specification)
(valid? locale-specification use-infer)
(valid? locale-specification use-infer strict)
Returns true
if the given locale specification is valid and supported, false
otherwise. For nil
it returns true
assuming it will be a default, system
locale. If strict
flag is set then for nil value it returns false
and for
keywords it only checks if they are in the locale map (phone-number.locale/all
).
Returns `true` if the given locale specification is valid and supported, `false` otherwise. For `nil` it returns `true` assuming it will be a default, system locale. If `strict` flag is set then for nil value it returns `false` and for keywords it only checks if they are in the locale map (`phone-number.locale/all`).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close