MCPcopy Create free account
hub / github.com/MailCore/mailcore2 / displayStringForAddress

Method displayStringForAddress

src/core/renderer/MCAddressDisplay.cpp:29–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29String * AddressDisplay::displayStringForAddress(Address * address)
30{
31 if (address->displayName() != NULL) {
32 return String::stringWithUTF8Format("%s <%s>",
33 MCUTF8(AddressDisplay::sanitizeDisplayName(address->displayName())),
34 MCUTF8(address->mailbox()));
35 }
36 else {
37 return address->mailbox();
38 }
39}
40
41String * AddressDisplay::shortDisplayStringForAddress(Address * address)
42{

Callers

nothing calls this directly

Calls 2

displayNameMethod · 0.45
mailboxMethod · 0.45

Tested by

no test coverage detected