]> git.lyx.org Git - lyx.git/blobdiff - src/support/docstring.cpp
Added support for natively zipped file formats that do not need decompression for...
[lyx.git] / src / support / docstring.cpp
index 86deda1d869de654064c2a38c661d47c08c93a48..d19c2e39be7aa7396867b98662b76551fcf33619 100644 (file)
@@ -25,6 +25,7 @@
 
 using namespace std;
 
+using lyx::support::isHexChar;
 
 namespace lyx {
 
@@ -753,9 +754,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>