Skip to content

Commit 90b8aaa

Browse files
Added fix for Unicode characters
1 parent 0f28835 commit 90b8aaa

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/CaseChangingCharStream.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,15 @@ size_t CaseChangingCharStream::LA(ssize_t i)
4646
{
4747
return c;
4848
}
49+
#ifdef _WIN64
50+
if (upper)
51+
{
52+
return size_t(toupper(int(c)));
53+
}
4954

55+
return size_t(tolower(int(c)));
56+
#endif
57+
#ifndef _WIN64
5058
char o = char(c);
5159

5260
if (upper)
@@ -55,6 +63,7 @@ size_t CaseChangingCharStream::LA(ssize_t i)
5563
}
5664

5765
return size_t(tolower(o));
66+
#endif
5867
}
5968

6069
ssize_t CaseChangingCharStream::mark()

0 commit comments

Comments
 (0)