From 4457cd44e82ffa010e78e06b1bd7fc0ac2c82f2b Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Tue, 7 Dec 2010 22:53:07 +0000 Subject: [PATCH] Compile fix for those platforms using the locale facets implemented in docstring.cpp (this was an oversight in r36748). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36767 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/support/docstring.cpp | 1 + src/support/lstrings.cpp | 2 +- src/support/lstrings.h | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/support/docstring.cpp b/src/support/docstring.cpp index 30298b5f59..d19c2e39be 100644 --- a/src/support/docstring.cpp +++ b/src/support/docstring.cpp @@ -25,6 +25,7 @@ using namespace std; +using lyx::support::isHexChar; namespace lyx { diff --git a/src/support/lstrings.cpp b/src/support/lstrings.cpp index 4ba72d8081..18e6947ae4 100644 --- a/src/support/lstrings.cpp +++ b/src/support/lstrings.cpp @@ -332,7 +332,7 @@ bool hasDigitASCII(docstring const & str) } -static bool isHexChar(char_type c) +bool isHexChar(char_type c) { return c == '0' || c == '1' || diff --git a/src/support/lstrings.h b/src/support/lstrings.h index 46e4e814b2..d0f7480365 100644 --- a/src/support/lstrings.h +++ b/src/support/lstrings.h @@ -47,6 +47,8 @@ bool isStrDbl(std::string const & str); /// does the string contain a digit? bool hasDigitASCII(docstring const & str); +bool isHexChar(char_type); + bool isHex(docstring const & str); int hexToInt(docstring const & str);