contact: implement to_string

Make it easy to get a string for a sequence of contacts.
This commit is contained in:
Dirk-Jan C. Binnema
2022-04-04 23:51:24 +03:00
parent 97c1725461
commit 187c3da408
2 changed files with 27 additions and 0 deletions

View File

@ -164,6 +164,17 @@ make_contacts(/*const*/ struct _InternetAddressList* addr_lst,
Contacts
make_contacts(const std::string& addrs,
Field::Id field_id, int64_t message_date);
/**
* Get contacts as a comma-separated list.
*
* @param contacts contacs
*
* @return string with contacts.
*/
std::string to_string(const Contacts& contacts);
} // namespace Mu
/**