From c0a33c91a2a472e5960b3f38e5799d3967d5e7e6 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 31 May 2001 01:52:58 +0000 Subject: Made argument to IsAlphabetic be an unsigned int to handle DBCS and Unicode characters. Unsure about this. Java doesn't have unsigned. --- include/PropSet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/PropSet.h') diff --git a/include/PropSet.h b/include/PropSet.h index 449bea3f1..6f6bf410f 100644 --- a/include/PropSet.h +++ b/include/PropSet.h @@ -79,7 +79,7 @@ inline bool nonFuncChar(char ch) { return strchr("\t\n\r !\"#$%&'()*+,-./:;<=>?@[\\]^`{|}~", ch) != NULL; } -inline bool IsAlphabetic(char ch) { +inline bool IsAlphabetic(unsigned int ch) { return ((ch >= 'A') && (ch <= 'Z')) || ((ch >= 'a') && (ch <= 'z')); } -- cgit v1.2.3