aboutsummaryrefslogtreecommitdiff
path: root/build2/parser.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-08-08 14:55:26 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-08-10 15:02:45 +0300
commita1b2319ff2ddc8a6f139ee364cabe236ca62e23e (patch)
tree401acff7ca7f009455aa355f5e1e008f0b50810c /build2/parser.cxx
parent5352f2fb6b911c804e70ea98c1bb335c54fea6b5 (diff)
Add ignore case support for find_option()
Diffstat (limited to 'build2/parser.cxx')
-rw-r--r--build2/parser.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/build2/parser.cxx b/build2/parser.cxx
index 82be698..9fd584a 100644
--- a/build2/parser.cxx
+++ b/build2/parser.cxx
@@ -4,7 +4,6 @@
#include <build2/parser>
-#include <cctype> // is{alpha alnum}()
#include <iostream>
#include <build2/version>
@@ -2754,7 +2753,7 @@ namespace build2
for (size_t i (0); i != n.value.size (); ++i)
{
char c (n.value[i]);
- if (c != '_' && !(i != 0 ? isalnum (c) : isalpha (c)))
+ if (c != '_' && !(i != 0 ? alnum (c) : alpha (c)))
return false;
}