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 | 7820ce6dcf054f033d243f972afb5fff1c5bdebe (patch) | |
tree | 88939e49bcffe1b323ec01c490ff1adb7676b750 /src | |
parent | 95e4b3e9fe7582623adfbc9de6385a813644156e (diff) | |
download | scintilla-mirror-7820ce6dcf054f033d243f972afb5fff1c5bdebe.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')
-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))) |