diff options
Diffstat (limited to 'idlc')
-rw-r--r-- | idlc/source/scanner.l | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/idlc/source/scanner.l b/idlc/source/scanner.l index f1484bc0bab9..d455c14cbaf5 100644 --- a/idlc/source/scanner.l +++ b/idlc/source/scanner.l @@ -29,6 +29,8 @@ #include <stdlib.h> #include <string.h> +#include <rtl/character.hxx> + #include <idlc.hxx> #include <errorhandler.hxx> #include <fehelper.hxx> @@ -212,7 +214,7 @@ static void parseLineAndFile(sal_Char* pBuf) return; /* Find line number */ - for (r++; *r == ' ' || *r == '\t' || isalpha(*r); r++) ; + for (r++; *r == ' ' || *r == '\t' || rtl::isAsciiAlpha(static_cast<unsigned char>(*r)); r++) ; h = r; for (; *r != '\0' && *r != ' ' && *r != '\t'; r++) ; *r++ = 0; |