Use toupper, iswspace from cwctype header

This commit is contained in:
Max Brunsfeld 2018-06-11 17:12:34 -07:00
parent d41a8ca50b
commit 43e4826bb7
1 changed files with 2 additions and 2 deletions

4
src/scanner.cc vendored
View File

@ -2,7 +2,7 @@
#include <algorithm>
#include <vector>
#include <string>
#include <locale>
#include <cwctype>
#include "tag.h"
namespace {
@ -62,7 +62,7 @@ struct Scanner {
string scan_tag_name(TSLexer *lexer) {
string tag_name;
while (iswalpha(lexer->lookahead) || lexer->lookahead == '-' || lexer->lookahead == ':') {
tag_name += std::toupper(lexer->lookahead);
tag_name += towupper(lexer->lookahead);
lexer->advance(lexer, false);
}
return tag_name;