diff options
author | nyamatongwe <devnull@localhost> | 2001-05-31 01:52:58 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2001-05-31 01:52:58 +0000 |
commit | f2564bf50771ff7a5b32fa5336fd0065dcd884a6 (patch) | |
tree | 3819064417fdc6b1085b2f9f180cf824afe39122 | |
parent | b39869ace3a4df7527c132b8bdaf2ddb5e0ca2bc (diff) | |
download | scintilla-mirror-f2564bf50771ff7a5b32fa5336fd0065dcd884a6.tar.gz |
Made argument to IsAlphabetic be an unsigned int to handle DBCS
and Unicode characters. Unsure about this. Java doesn't have unsigned.
-rw-r--r-- | include/PropSet.h | 2 |
1 files changed, 1 insertions, 1 deletions
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')); } |