Liking cljdoc? Tell your friends :D

e85th.commons.tel

Telephone related functions

Telephone related functions
raw docstring

default-country-codeclj

US ISO country code

US ISO country code
sourceraw docstring

invalid?clj

source

IPhoneNumbercljprotocol

formatclj

(format this)
(format this phone-nbr-fmt)

Format the phone number according to the national convention by default. phone-nbr-fmt is an instance of PhoneNumberUtil$PhoneNumberFormat

Format the phone number according to the national convention by default. phone-nbr-fmt is an instance of PhoneNumberUtil$PhoneNumberFormat

match?clj

(match? this other)
(match? this other iso-country-code)

Answers if phone numbers match.

Answers if phone numbers match.

normalizeclj

(normalize this)

Normalize a phone number to E164 format.

Normalize a phone number to E164 format.

parseclj

(parse this)
(parse this iso-country-code)

Parses to a Phonenumber$PhoneNumber instance or return nil if parse failed

Parses to a Phonenumber$PhoneNumber instance or return nil if parse failed

valid?clj

(valid? this)

Answer if phone is valid.

Answer if phone is valid.
source

phone-number-instance?clj

Tests to see if it is an instance of Phonenumber$PhoneNumber

Tests to see if it is an instance of Phonenumber$PhoneNumber
sourceraw docstring

phone-number?clj

(phone-number? x)
source

str->phone-numberclj

(str->phone-number nbr)
(str->phone-number nbr iso-country-code)

Parse a valid phone number otherwise returns nil

Parse a *valid* phone number otherwise returns nil
sourceraw docstring

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

× close