#include "author.h"
-#include "support/std_istream.h"
#include "support/lstrings.h"
#include <boost/assert.hpp>
+#include "support/std_istream.h"
+
+
+namespace lyx {
+
+using support::token;
+using support::trim;
+
+using std::string;
-using namespace lyx::support;
bool operator==(Author const & l, Author const & r)
{
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