19 label_ = labelParent->addWidget(std::make_unique<Label>(label, labelParent));
21 setRows(3); setColumns(55);
22 resize(WLength(99, LengthUnit::Percentage), WLength::Auto);
42 typedef boost::tokenizer<boost::escaped_list_separator<char32_t>,
43 std::wstring::const_iterator, std::wstring>
46 std::wstring t = text();
49 for (CsvTokenizer::iterator i = tok.begin(); i != tok.end(); ++i) {
50 std::wstring addressee = *i;
52 boost::trim(addressee);
53 std::wstring::size_type pos = addressee.find_last_of(
' ');
54 if (pos != std::string::npos) {
55 std::wstring email = addressee.substr(pos + 1);
56 std::wstring name = addressee.substr(0, pos);
61 email = email.substr(1);
62 if (email[email.length() - 1] ==
'>')
63 email = email.substr(0, email.length() - 1);
66 contacts.push_back(
Contact(Wt::toUTF32(name), Wt::toUTF32(email)));
68 if (!addressee.empty())
69 contacts.push_back(
Contact(U
"", Wt::toUTF32(addressee)));