Liking cljdoc? Tell your friends :D

phone-number.locale

Locale support for phone-number

Locale support for phone-number
raw docstring

allclj

Map of locales (keywords) to Locale values.

Map of locales (keywords) to Locale values.
sourceraw docstring

all-argclj

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.
sourceraw docstring

all-arg-vecclj

Vector of locales (keywords) suitable to be used as arguments.

Vector of locales (keywords) suitable to be used as arguments.
sourceraw docstring

all-vecclj

Vector of locales (keywords).

Vector of locales (keywords).
sourceraw docstring

availableclj

Set of available locale (keywords).

Set of available locale (keywords).
sourceraw docstring

by-valclj

Map of Locale values to locales (keywords).

Map of Locale values to locales (keywords).
sourceraw docstring

by-val-argclj

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.
sourceraw docstring

by-val-arg-vecclj

Vector of locales (Locale values) suitable to be used as method arguments.

Vector of locales (Locale values) suitable to be used as method arguments.
sourceraw docstring

by-val-vecclj

Vector of locales (Locale values).

Vector of locales (Locale values).
sourceraw docstring

defaultclj

source

default-valclj

source

generate-sampleclj

(generate-sample)
(generate-sample rng)

Generates random locale.

Generates random locale.
sourceraw docstring

generate-sample-valclj

(generate-sample-val)
(generate-sample-val rng)

Generates random locale (string value).

Generates random locale (string value).
sourceraw docstring

parseclj

(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).
sourceraw docstring

strictly-valid-arg?clj

(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).
sourceraw docstring

strictly-valid?clj

(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).
sourceraw docstring

valid-arg?clj

(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`).
sourceraw docstring

valid?clj

(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`).
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close