]> git.sur5r.net Git - openldap/commitdiff
Added LDAP_UTF8_ISSPACE (tho no one uses it)
authorHoward Chu <hyc@openldap.org>
Wed, 2 Jan 2002 08:49:17 +0000 (08:49 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 2 Jan 2002 08:49:17 +0000 (08:49 +0000)
include/ldap_pvt_uc.h

index bb25f8f6b17911bf7786c314cd5418150b21a506..6c1b3cfe6f1ff1f433a74a6c17443f4e4c9e7e9b 100644 (file)
@@ -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) \