bool ControlChanges::find()
{
- return find::findNextChange(kernel().bufferview());
+ return findNextChange(kernel().bufferview());
}
}
-string const ControlChanges::getChangeDate()
+docstring const ControlChanges::getChangeDate()
{
Change c(kernel().bufferview()->getCurrentChange());
if (c.type == Change::UNCHANGED || !c.changetime)
- return string();
+ return docstring();
- return formatted_time(c.changetime);
+ // FIXME UNICODE
+ return from_utf8(formatted_time(c.changetime));
}
-string const ControlChanges::getChangeAuthor()
+docstring const ControlChanges::getChangeAuthor()
{
Change c(kernel().bufferview()->getCurrentChange());
if (c.type == Change::UNCHANGED)
- return string();
+ return docstring();
Author const & a(kernel().buffer().params().authors().get(c.author));
- string author(a.name());
+ docstring author(a.name());
if (!a.email().empty()) {
author += " (";
- author += a.email() + ")";
+ author += a.email();
+ author += ")";
}
return author;
bool ControlChanges::accept()
{
kernel().dispatch(FuncRequest(LFUN_CHANGE_ACCEPT));
- return find::findNextChange(kernel().bufferview());
+ return findNextChange(kernel().bufferview());
}
bool ControlChanges::reject()
{
kernel().dispatch(FuncRequest(LFUN_CHANGE_REJECT));
- return find::findNextChange(kernel().bufferview());
+ return findNextChange(kernel().bufferview());
}