Georg Baum wrote:
Am Sonntag, 3. September 2006 12:28 schrieb Abdelrazak Younes:
Georg Baum wrote:
Am Sonntag, 3. September 2006 12:11 schrieb Abdelrazak Younes:
This patch fixes the isDigit() MSVC warning in ControlSpellchecker.C.
If that is really the correct isDigit() check for unciode
My understanding is that ascii is a subset of ucs4 so it must work as is.
That is true, but the question is rather: For what purpose is isDigits
used? Shall it be true for digits in other scripts, or are ASCII digits
enough? I don't know.
For one, isDigit() is used in LyXText::insertChar() and it works with my
change.
isLineSeparatorChar() is also used there and it works as expected.
then you simply
could have changed the argument type of the existing function.
I did not touch this on purpose because of the FIXME comment...
So why not changing all the methods in textutils.h instead?
Because it is not that easy. E.g. isPrintable() is clearly wrong now (it
was already wrong for e.g. latin1).
IMHO, the conversion to char_type is independent of the algorithm
inside. This is just type conversion and it works as is.
Most of our
use are unicode anyway.
Yes, but I'd rather try to get rid of things like isLetterChar etc. These
do not really make sense with unicode anymore.
Agreed but, again, independent of the patch. We can get of them afterward.
Abdel.