internationalizedemailaddress.js
No description.

File Location

/goog/format/internationalizedemailaddress.js

Classes

goog.format.InternationalizedEmailAddress
Formats an email address string for display, and allows for extraction of the individual components of the address.

Public Protected Private

Global Functions

goog.format.InternationalizedEmailAddress.isValidAddrSpec(str) boolean
Checks if the provided string is a valid address spec (local@domain.com).
Arguments:
str : string
The email address to check.
Returns: boolean  Whether the provided string is a valid address spec.
code »
goog.format.InternationalizedEmailAddress.isValidAddress(str) boolean
Checks if the provided string is a valid email address. Supports both simple email addresses (address specs) and addresses that contain display names.
Arguments:
str : string
The email address to check.
Returns: boolean  Whether the provided string is a valid address.
code »
goog.format.InternationalizedEmailAddress.isValidDomainPartSpec(str) boolean
Checks if the provided string is a valid domain part (part after the '@') of an EAI email address.
Arguments:
str : string
The domain part to check.
Returns: boolean  Whether the provided string is a valid domain part.
code »
goog.format.InternationalizedEmailAddress.isValidLocalPartSpec(str) boolean
Checks if the provided string is a valid local part (part before the '@') of an EAI email address.
Arguments:
str : string
The local part to check.
Returns: boolean  Whether the provided string is a valid local part.
code »
goog.format.InternationalizedEmailAddress.parse(addr) !goog.format.EmailAddress
Parses an email address of the form "name" <address> into an email address.
Arguments:
addr : string
The address string.
Returns: !goog.format.EmailAddress  The parsed address.
code »
goog.format.InternationalizedEmailAddress.parseList(str) !Array.<!goog.format.EmailAddress>
Parses a string containing email addresses of the form "name" <address> into an array of email addresses.
Arguments:
str : string
The address list.
Returns: !Array.<!goog.format.EmailAddress>  The parsed emails.
code »

Directory format

File Reference