]> git.lyx.org Git - lyx.git/blobdiff - src/support/lstrings.C
Make it possible to uses non-ascii labelstring, endlabelstring and
[lyx.git] / src / support / lstrings.C
index 3f97e9202e65f9972e022b248b5a1c1910726315..939d48531b78e621422d5a2a2ee8bc2fad22d9e9 100644 (file)
@@ -279,6 +279,16 @@ int hexToInt(docstring const & str)
 }
 
 
+bool isAscii(docstring const & str)
+{
+       int const len = str.length();
+       for (int i = 0; i < len; ++i)
+               if (str[i] >= 0x80)
+                       return false;
+       return true;
+}
+
+
 char lowercase(char c)
 {
        return char(tolower(c));