Telephone related functions
Telephone related functions
(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? this other)
(match? this other iso-country-code)
Answers if phone numbers match.
Answers if phone numbers match.
(normalize this)
Normalize a phone number to E164 format.
Normalize a phone number to E164 format.
(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? this)
Answer if phone is valid.
Answer if phone is valid.
Tests to see if it is an instance of Phonenumber$PhoneNumber
Tests to see if it is an instance of Phonenumber$PhoneNumber
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close