}
-int Paragraph::erase(pos_type start, pos_type end, bool trackChanges)
+int Paragraph::eraseChars(pos_type start, pos_type end, bool trackChanges)
{
- return pimpl_->erase(start, end, trackChanges);
+ return pimpl_->eraseChars(start, end, trackChanges);
}
-void Paragraph::insert(pos_type start, string const & str,
+void Paragraph::insert(pos_type start, docstring const & str,
LyXFont const & font, Change const & change)
{
for (size_t i = 0, n = str.size(); i != n ; ++i)
pos_type end = size();
if (i < end && !isNewline(i)) {
++i;
- char previous_char = 0;
- char temp = 0;
+ char_type previous_char = 0;
+ char_type temp = 0;
if (i < end) {
previous_char = text_[i];
if (!isNewline(i)) {
InsetBase::Code lyx_code = inset->lyxCode();
if (lyx_code == InsetBase::LABEL_CODE) {
string const id = static_cast<InsetCommand const *>(inset)->getContents();
- return "id=\"" + sgml::cleanID(buf, runparams, id) + "\"";
+ return "id='" + to_utf8(sgml::cleanID(buf, runparams, from_utf8(id))) + "'";
}
}