Formats an email address string for display, and allows for extraction of The individual componants of the address.
| Instance Method Summary | |
getAddress() ⇒ stringGet the email address. | |
getName() ⇒ stringGet the name associated with the email address. | |
isValid() ⇒ booleanDetermines is the current object is a valid email address. | |
setAddress(string address)Set the email address. | |
setName(string name)Set the name associated with the email address. | |
toString() ⇒ stringReturn the address in a standard format: - remove extra spaces. - Surround name with quotes if it contains special characters. | |
| Static Method Summary | |
getToken_(string str, number pos) ⇒ stringGet the next token from a position in an address string. | |
isEscapedDlQuote_(string str, number pos) ⇒ booleanChecks if the character in the current position is an escaped double quote ( \" ). | |
isValidAddrSpec(string str) ⇒ booleanChecks if the provided string is a valid address spec (local@domain.com). | |
isValidAddress(string str) ⇒ booleanChecks if the provided string is a valid email address. Supports both simple email addresses (address specs) and addresses that contain display names. | |
parse(string addr) ⇒ ?goog.format.EmailAddressParse an email address of the form "name" <address> into an email address. | |
parseList(string str) ⇒ ?ArrayParse a string containing email addresses of the form "name" <address> into an array of email addresses. | |