]> git.lyx.org Git - lyx.git/blobdiff - src/support/docstring.cpp
#7026 substitute isDigit() by isDigitASCII() and ditch isDigit(); introduce isNumber...
[lyx.git] / src / support / docstring.cpp
index 86deda1d869de654064c2a38c661d47c08c93a48..30298b5f59a9a6e310847bcae490ee0c5e1597ee 100644 (file)
@@ -753,9 +753,9 @@ private:
        bool isNumpunct(lyx::char_type const c) const
        {
                /// Only account for the standard numpunct "C" locale facet.
-               return c < 0x80 && (c == '-' || c == '+' || isdigit(c)
-                       || ('a' <= c && c <= 'f') || ('A' <= c && c <= 'F')
-                       || c == 'x' || c == 'X');
+               return c == '-' || c == '+'
+                       || c == 'x' || c == 'X'
+                       || isHexChar(c);
        }
 
        template <typename ValueType>