for (; it != end; ++it) {
if (it != begin)
- s += lyx::from_ascii(", ");
- if (*it == lyx::char_type(' '))
+ s += ", ";
+ if (*it == ' ')
s += _("space");
else
s += *it;
return acceptable_if_empty_ ?
QValidator::Acceptable : QValidator::Intermediate;
- docstring invalid_chars = lyx::from_ascii("#$%{}()[]\"^");
+ docstring invalid_chars = from_ascii("#$%{}()[]\"^");
if (!tex_allows_spaces_)
invalid_chars += ' ';
switch (static_cast<CounterTags>(le)) {
case CT_NAME:
lexrc.next();
- name = lyx::from_ascii(lexrc.getString());
+ name = from_ascii(lexrc.getString());
break;
case CT_WITHIN:
lexrc.next();
- within = lyx::from_ascii(lexrc.getString());
- if (within == lyx::from_ascii("none"))
+ within = from_ascii(lexrc.getString());
+ if (within == "none")
within.erase();
break;
case CT_END: