(C) 1999 Antti Koivisto (koivisto@kde.org)
(C) 2001 Dirk Mueller (mueller@kde.org)
Copyright (C) 2004, 2005, 2006 Apple Computer, Inc.
+ Copyright (C) 2005, 2006 Alexey Proskuryakov (ap@nypop.com)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
//
// There may be better equivalents
-// We need this for entities at least. For non-entity text, we could
-// handle this in the text encoding.
-
-// To cover non-entity text, I think this function would need to be called
-// in more places. There seem to be some places that don't call fixUpChar.
+// We only need this for entities. For non-entity text, we handle this in the text encoding.
static const unsigned short windowsLatin1ExtensionArray[32] = {
0x20AC, 0x0081, 0x201A, 0x0192, 0x201E, 0x2026, 0x2020, 0x2021, // 80-87
scriptCodeSize = scriptCodeDest-scriptCode;
}
else {
- scriptCode[scriptCodeSize++] = fixUpChar(*src);
+ scriptCode[scriptCodeSize++] = *src;
++src;
}
}
state.setSkipLF(true);
*dest++ = '\n';
} else
- *dest++ = fixUpChar(cc);
+ *dest++ = cc;
++src;
}
break;
}
}
- *dest++ = fixUpChar(*src);
+ *dest++ = *src;
++src;
}
break;
}
}
- *dest++ = fixUpChar(*src);
+ *dest++ = *src;
++src;
}
break;
++src;
} else {
state.setDiscardLF(false);
- *dest++ = fixUpChar(*src);
+ *dest++ = *src;
++src;
}
}