From 87e59817db5e6cfd18b07f160b4b468b196072a5 Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 21 Jul 2013 15:20:45 +1000 Subject: Replace all instances of isascii with Scintilla-specific IsASCII. iasascii is not part of ISO C or C++ but is a BSD extension so caused problems when compiling in strict compliance mode. --- src/Document.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/Document.cxx b/src/Document.cxx index 0637c8d50..98574fe13 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -38,7 +38,7 @@ using namespace Scintilla; #endif static inline bool IsPunctuation(char ch) { - return isascii(ch) && ispunct(ch); + return IsASCII(ch) && ispunct(ch); } void LexInterface::Colourise(int start, int end) { @@ -1965,10 +1965,10 @@ int Document::WordPartLeft(int pos) { --pos; if (!isspacechar(cb.CharAt(pos))) ++pos; - } else if (!isascii(startChar)) { - while (pos > 0 && !isascii(cb.CharAt(pos))) + } else if (!IsASCII(startChar)) { + while (pos > 0 && !IsASCII(cb.CharAt(pos))) --pos; - if (isascii(cb.CharAt(pos))) + if (IsASCII(cb.CharAt(pos))) ++pos; } else { ++pos; @@ -1986,8 +1986,8 @@ int Document::WordPartRight(int pos) { ++pos; startChar = cb.CharAt(pos); } - if (!isascii(startChar)) { - while (pos < length && !isascii(cb.CharAt(pos))) + if (!IsASCII(startChar)) { + while (pos < length && !IsASCII(cb.CharAt(pos))) ++pos; } else if (IsLowerCase(startChar)) { while (pos < length && IsLowerCase(cb.CharAt(pos))) -- cgit v1.2.3