Back to index

openldap  2.4.31
Defines | Functions | Variables
ldap_pvt_uc.h File Reference
#include <lber.h>
#include <ac/bytes.h>
#include "../libraries/liblunicode/ucdata/ucdata.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define LDAP_UTF8_ISASCII(p)   ( !(*(const unsigned char *)(p) & 0x80 ) )
#define LDAP_UTF8_CHARLEN(p)
#define LDAP_UTF8_CHARLEN2(p, l)
#define LDAP_UTF8_OFFSET(p)
#define LDAP_UTF8_COPY(d, s)
#define LDAP_UTF8_NEXT(p)
#define LDAP_UTF8_INCR(p)   ((p) = LDAP_UTF8_NEXT(p))
#define LDAP_UTF8_PREV(p)   (ldap_utf8_prev((p)))
#define LDAP_UTF8_DECR(p)   ((p)=LDAP_UTF8_PREV((p)))
#define LDAP_UTF8_NOCASEFOLD   0x0U
#define LDAP_UTF8_CASEFOLD   0x1U
#define LDAP_UTF8_ARG1NFC   0x2U
#define LDAP_UTF8_ARG2NFC   0x4U
#define LDAP_UTF8_APPROX   0x8U

Functions

 LDAP_F (int) ldap_ucs_to_utf8s LDAP_P((struct berval *ucs
 LDAP_F (ber_len_t) ldap_utf8_bytes(const char *)
const char * LDAP_F (char *) ldap_utf8_next(const char *)
 LDAP_V (const char) ldap_utf8_lentab[128]
 LDAP_LUNICODE_F (int) ucstrncmp(const ldap_unicode_t *
 LDAP_LUNICODE_F (ldap_unicode_t *) ucstrnchr(const ldap_unicode_t *
 LDAP_LUNICODE_F (void) ucstr2upper(ldap_unicode_t *
 LDAP_LUNICODE_F (struct berval *) UTF8bvnormalize(struct berval *

Variables

LDAP_BEGIN_DECL typedef ac_uint4 ldap_unicode_t
int csize
int struct bervalutf8s
const char * set
const char * chr
const char * sep
const char char ** last
const ldap_unicode_t ber_len_t
struct berval unsigned
struct berval voidmemctx

Define Documentation

#define LDAP_UTF8_APPROX   0x8U

Definition at line 146 of file ldap_pvt_uc.h.

#define LDAP_UTF8_ARG1NFC   0x2U

Definition at line 144 of file ldap_pvt_uc.h.

#define LDAP_UTF8_ARG2NFC   0x4U

Definition at line 145 of file ldap_pvt_uc.h.

#define LDAP_UTF8_CASEFOLD   0x1U

Definition at line 143 of file ldap_pvt_uc.h.

#define LDAP_UTF8_CHARLEN (   p)
Value:
( LDAP_UTF8_ISASCII(p) \
       ? 1 : ldap_utf8_lentab[*(const unsigned char *)(p) ^ 0x80] )

Definition at line 90 of file ldap_pvt_uc.h.

#define LDAP_UTF8_CHARLEN2 (   p,
  l 
)
Value:
( ( ( l = LDAP_UTF8_CHARLEN( p )) < 3 || \
       ( ldap_utf8_mintab[*(const unsigned char *)(p) & 0x1f] & (p)[1] ) ) ? \
       l : 0 )

Definition at line 97 of file ldap_pvt_uc.h.

#define LDAP_UTF8_COPY (   d,
  s 
)
Value:
( LDAP_UTF8_ISASCII(s) \
       ? (*(d) = *(s), 1) : ldap_utf8_copy((d),(s)) )

Definition at line 104 of file ldap_pvt_uc.h.

#define LDAP_UTF8_DECR (   p)    ((p)=LDAP_UTF8_PREV((p)))

Definition at line 114 of file ldap_pvt_uc.h.

#define LDAP_UTF8_INCR (   p)    ((p) = LDAP_UTF8_NEXT(p))

Definition at line 110 of file ldap_pvt_uc.h.

#define LDAP_UTF8_ISASCII (   p)    ( !(*(const unsigned char *)(p) & 0x80 ) )

Definition at line 89 of file ldap_pvt_uc.h.

#define LDAP_UTF8_NEXT (   p)
Value:
(      LDAP_UTF8_ISASCII(p) \
       ? (char *)(p)+1 : ldap_utf8_next((p)) )

Definition at line 107 of file ldap_pvt_uc.h.

#define LDAP_UTF8_NOCASEFOLD   0x0U

Definition at line 142 of file ldap_pvt_uc.h.

#define LDAP_UTF8_OFFSET (   p)
Value:
( LDAP_UTF8_ISASCII(p) \
       ? 1 : ldap_utf8_offset((p)) )

Definition at line 101 of file ldap_pvt_uc.h.

#define LDAP_UTF8_PREV (   p)    (ldap_utf8_prev((p)))

Definition at line 113 of file ldap_pvt_uc.h.


Function Documentation

LDAP_F ( int  )
LDAP_F ( ber_len_t  ) const
const char* LDAP_F ( char *  ) const
LDAP_LUNICODE_F ( int  ) const
LDAP_LUNICODE_F ( struct berval )
LDAP_V ( const char  )

Variable Documentation

Definition at line 120 of file ldap_pvt_uc.h.

const char* chr

Definition at line 79 of file ldap_pvt_uc.h.

Definition at line 41 of file ldap_pvt_uc.h.

const char char** last

Definition at line 83 of file ldap_pvt_uc.h.

Definition at line 37 of file ldap_pvt_uc.h.

Definition at line 150 of file ldap_pvt_uc.h.

const char* sep

Definition at line 83 of file ldap_pvt_uc.h.

const char * set

Definition at line 75 of file ldap_pvt_uc.h.

struct berval unsigned

Definition at line 150 of file ldap_pvt_uc.h.

int struct berval* utf8s

Definition at line 41 of file ldap_pvt_uc.h.