From b0dd61a13189e2012577c629474d7a083d490a33 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 24 May 2001 08:10:14 +0000 Subject: IsAlphabetic is an 8 bit safe version of isalpha. --- include/PropSet.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') 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 -- cgit v1.2.3