diff options
author | nyamatongwe <unknown> | 2001-05-24 08:10:14 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2001-05-24 08:10:14 +0000 |
commit | 7a2e0d7292c7c46526cabb068f33df2981a9d67e (patch) | |
tree | 47d491f26667be9c686232f08fa5b3aed67f19f1 /include/PropSet.h | |
parent | 7c2577d6cb8e5350ba9f7490d81e3ce4e953c5b6 (diff) | |
download | scintilla-mirror-7a2e0d7292c7c46526cabb068f33df2981a9d67e.tar.gz |
IsAlphabetic is an 8 bit safe version of isalpha.
Diffstat (limited to 'include/PropSet.h')
-rw-r--r-- | include/PropSet.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/PropSet.h b/include/PropSet.h index 7524d90ba..449bea3f1 100644 --- a/include/PropSet.h +++ b/include/PropSet.h @@ -79,4 +79,8 @@ inline bool nonFuncChar(char ch) { return strchr("\t\n\r !\"#$%&'()*+,-./:;<=>?@[\\]^`{|}~", ch) != NULL; } +inline bool IsAlphabetic(char ch) { + return ((ch >= 'A') && (ch <= 'Z')) || ((ch >= 'a') && (ch <= 'z')); +} + #endif |