From: Howard Chu Date: Wed, 2 Jan 2002 08:49:17 +0000 (+0000) Subject: Added LDAP_UTF8_ISSPACE (tho no one uses it) X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~374 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=61128d0020dfccf1ffb21b982e4c69ddc8c1e5bd;p=openldap Added LDAP_UTF8_ISSPACE (tho no one uses it) --- diff --git a/include/ldap_pvt_uc.h b/include/ldap_pvt_uc.h index bb25f8f6b1..6c1b3cfe6f 100644 --- a/include/ldap_pvt_uc.h +++ b/include/ldap_pvt_uc.h @@ -79,6 +79,7 @@ LDAP_F (char*) ldap_utf8_strtok( char* sp, const char* sep, char **last); LDAP_V (const char) ldap_utf8_lentab[128]; #define LDAP_UTF8_ISASCII(p) ( *(unsigned char *)(p) ^ 0x80 ) +#define LDAP_UTF8_ISSPACE(p) ( *(p) == ' ' || (*(p) >= '\t' && *(p) <= '\r') ) #define LDAP_UTF8_CHARLEN(p) ( LDAP_UTF8_ISASCII(p) \ ? 1 : ldap_utf8_lentab[*(unsigned char *)(p) ^ 0x80] ) #define LDAP_UTF8_OFFSET(p) ( LDAP_UTF8_ISASCII(p) \