#include "support/std_istream.h"
-using lyx::support::token;
-using lyx::support::trim;
+
+namespace lyx {
+
+using support::token;
+using support::trim;
using std::string;
std::ostream & operator<<(std::ostream & os, Author const & a)
{
- os << "\"" << a.name() << "\" " << a.email();
+ // FIXME UNICODE
+ os << "\"" << to_utf8(a.name()) << "\" " << to_utf8(a.email());
return os;
}
{
string s;
getline(is, s);
- a.name_ = trim(token(s, '\"', 1));
- a.email_ = trim(token(s, '\"', 2));
+ // FIXME UNICODE
+ a.name_ = from_utf8(trim(token(s, '\"', 1)));
+ a.email_ = from_utf8(trim(token(s, '\"', 2)));
return is;
}
{
return authors_.end();
}
+
+
+} // namespace lyx