aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexConf.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2013-07-21 15:20:45 +1000
committerNeil <nyamatongwe@gmail.com>2013-07-21 15:20:45 +1000
commit87e59817db5e6cfd18b07f160b4b468b196072a5 (patch)
treea6759b4ddda9d665be1b2faae31d2c1721cbe94d /lexers/LexConf.cxx
parent84c83f9655629911abf29a012979d94040c4c2cd (diff)
downloadscintilla-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 'lexers/LexConf.cxx')
-rw-r--r--lexers/LexConf.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/lexers/LexConf.cxx b/lexers/LexConf.cxx
index 23ed5a6c8..cbd01094d 100644
--- a/lexers/LexConf.cxx
+++ b/lexers/LexConf.cxx
@@ -74,17 +74,17 @@ static void ColouriseConfDoc(unsigned int startPos, int length, int, WordList *k
} else if( ch == '"') {
state = SCE_CONF_STRING;
styler.ColourTo(i,SCE_CONF_STRING);
- } else if( isascii(ch) && ispunct(ch) ) {
+ } else if( IsASCII(ch) && ispunct(ch) ) {
// signals an operator...
// no state jump necessary for this
// simple case...
styler.ColourTo(i,SCE_CONF_OPERATOR);
- } else if( isascii(ch) && isalpha(ch) ) {
+ } else if( IsASCII(ch) && isalpha(ch) ) {
// signals the start of an identifier
bufferCount = 0;
buffer[bufferCount++] = static_cast<char>(tolower(ch));
state = SCE_CONF_IDENTIFIER;
- } else if( isascii(ch) && isdigit(ch) ) {
+ } else if( IsASCII(ch) && isdigit(ch) ) {
// signals the start of a number
bufferCount = 0;
buffer[bufferCount++] = ch;
@@ -111,7 +111,7 @@ static void ColouriseConfDoc(unsigned int startPos, int length, int, WordList *k
// if we find a non-alphanumeric char,
// we simply go to default state
// else we're still dealing with an extension...
- if( (isascii(ch) && isalnum(ch)) || (ch == '_') ||
+ if( (IsASCII(ch) && isalnum(ch)) || (ch == '_') ||
(ch == '-') || (ch == '$') ||
(ch == '/') || (ch == '.') || (ch == '*') )
{
@@ -133,7 +133,7 @@ static void ColouriseConfDoc(unsigned int startPos, int length, int, WordList *k
case SCE_CONF_IDENTIFIER:
// stay in CONF_IDENTIFIER state until we find a non-alphanumeric
- if( (isascii(ch) && isalnum(ch)) || (ch == '_') || (ch == '-') || (ch == '/') || (ch == '$') || (ch == '.') || (ch == '*')) {
+ if( (IsASCII(ch) && isalnum(ch)) || (ch == '_') || (ch == '-') || (ch == '/') || (ch == '$') || (ch == '.') || (ch == '*')) {
buffer[bufferCount++] = static_cast<char>(tolower(ch));
} else {
state = SCE_CONF_DEFAULT;
@@ -158,7 +158,7 @@ static void ColouriseConfDoc(unsigned int startPos, int length, int, WordList *k
case SCE_CONF_NUMBER:
// stay in CONF_NUMBER state until we find a non-numeric
- if( (isascii(ch) && isdigit(ch)) || ch == '.') {
+ if( (IsASCII(ch) && isdigit(ch)) || ch == '.') {
buffer[bufferCount++] = ch;
} else {
state = SCE_CONF_DEFAULT;