mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-31 20:19:34 -05:00
Added LDAP_UTF8_ISSPACE (tho no one uses it)
This commit is contained in:
parent
ce9ac6d273
commit
61128d0020
1 changed files with 1 additions and 0 deletions
|
|
@ -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) \
|
||||
|
|
|
|||
Loading…
Reference in a new issue