42 typedef boost::tokenizer<boost::escaped_list_separator<wchar_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(name, email));
68 if (!addressee.empty())
69 contacts.push_back(
Contact(L
"", addressee));
virtual void setText(const WString &text)
const WString & text() const
void setColumns(int cols)