diff options
author | Neil <nyamatongwe@gmail.com> | 2013-07-21 15:20:45 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2013-07-21 15:20:45 +1000 |
commit | 87e59817db5e6cfd18b07f160b4b468b196072a5 (patch) | |
tree | a6759b4ddda9d665be1b2faae31d2c1721cbe94d /src/Document.cxx | |
parent | 84c83f9655629911abf29a012979d94040c4c2cd (diff) | |
download | scintilla-mirror-87e59817db5e6cfd18b07f160b4b468b196072a5.tar.gz |
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.
Diffstat (limited to 'src/Document.cxx')
-rw-r--r-- | src/Document.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
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))) |