Home | History | Annotate | Download | only in gfx

Lines Matching refs:email

37 // Elides a well-formed email address (e.g. username@domain.com) to fit into
42 // If possible: this elides only the username portion of the |email|. Otherwise,
47 base::string16 ElideEmail(const base::string16& email,
50 if (GetStringWidthF(email, font_list) <= available_pixel_width)
51 return email;
53 // Split the email into its local-part (username) and domain-part. The email
55 // email under some special requirements. It is guaranteed that there is no @
56 // symbol in the domain part of the email however so splitting at the last @
58 const size_t split_index = email.find_last_of('@');
60 base::string16 username = email.substr(0, split_index);
61 base::string16 domain = email.substr(split_index + 1);