}
-void InsetMathString::mathmlize(MathStream & /*os*/) const
+void InsetMathString::mathmlize(MathStream &) const
{
// useless, no doubt, but we should not be here
- LASSERT(false, /* */);
+ LATTEST(false);
}
docstring command(1, c);
try {
bool termination = false;
- if (c < 0x80 ||
+ if (isASCII(c) ||
Encodings::latexMathChar(c, mathmode, os.encoding(), command, termination)) {
if (os.textMode()) {
if (in_forced_mode) {
os.textMode(false);
in_forced_mode = false;
}
- if (c >= 0x80 && os.textMode()) {
+ if (!isASCII(c) && os.textMode()) {
os << "\\ensuremath{";
os.textMode(false);
in_forced_mode = true;
}
- } else if (c < 0x80 && in_forced_mode) {
+ } else if (isASCII(c) && in_forced_mode) {
// we were inside \ensuremath
os << '}';
os.textMode(true);
// and the last char is ASCII.
if (termination)
os.pendingSpace(true);
- } catch (EncodingException & e) {
+ } catch (EncodingException const & e) {
switch (os.output()) {
case WriteStream::wsDryrun: {
os << "<" << _("LyX Warning: ")