Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jaak Ristioja
OpenLDAP
Commits
bfff7ce1
Commit
bfff7ce1
authored
24 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Bandaid ucdata build problems
parent
f9717334
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/ldap_pvt.h
+2
-73
2 additions, 73 deletions
include/ldap_pvt.h
libraries/liblunicode/Makefile.in
+2
-2
2 additions, 2 deletions
libraries/liblunicode/Makefile.in
with
4 additions
and
75 deletions
include/ldap_pvt.h
+
2
−
73
View file @
bfff7ce1
...
...
@@ -172,80 +172,9 @@ LDAP_F (int) ldap_pvt_tls_start LDAP_P(( struct ldap *ld, Sockbuf *sb, void *ctx
LDAP_F
(
int
)
ldap_pvt_tls_get_option
LDAP_P
((
struct
ldapoptions
*
lo
,
int
option
,
void
*
arg
));
LDAP_F
(
int
)
ldap_pvt_tls_set_option
LDAP_P
((
struct
ldapoptions
*
lo
,
int
option
,
void
*
arg
));
/*
* UTF-8 (in utf-8.c)
*/
typedef
ber_int_t
ldap_ucs4_t
;
#define LDAP_UCS4_INVALID (0x80000000U)
typedef
short
ldap_ucs2_t
;
/* UCDATA uses UCS-2 passed in an unsigned long */
typedef
unsigned
long
ldap_unicode_t
;
/* conversion routines */
LDAP_F
(
ldap_ucs4_t
)
ldap_utf8_to_ucs4
(
const
char
*
p
);
LDAP_F
(
int
)
ldap_ucs4_to_utf8
(
ldap_ucs4_t
c
,
char
*
buf
);
#define ldap_utf8_to_unicode( p ) ldap_utf8_to_ucs4((p))
#define ldap_unicode_to_utf8( c, buf ) ldap_ucs4_to_ucs4((c),(buf))
/* returns the number of bytes in the UTF-8 string */
LDAP_F
(
ber_len_t
)
ldap_utf8_bytes
(
const
char
*
);
/* returns the number of UTF-8 characters in the string */
LDAP_F
(
ber_len_t
)
ldap_utf8_chars
(
const
char
*
);
/* returns the length (in bytes) of the UTF-8 character */
LDAP_F
(
int
)
ldap_utf8_offset
(
const
char
*
);
/* returns the length (in bytes) indicated by the UTF-8 character */
LDAP_F
(
int
)
ldap_utf8_charlen
(
const
char
*
);
/* copies a UTF-8 character and returning number of bytes copied */
LDAP_F
(
int
)
ldap_utf8_copy
(
char
*
,
const
char
*
);
/* returns pointer of next UTF-8 character in string */
LDAP_F
(
char
*
)
ldap_utf8_next
(
const
char
*
);
/* returns pointer of previous UTF-8 character in string */
LDAP_F
(
char
*
)
ldap_utf8_prev
(
const
char
*
);
/* primitive ctype routines -- not aware of non-ascii characters */
LDAP_F
(
int
)
ldap_utf8_isascii
(
const
char
*
);
LDAP_F
(
int
)
ldap_utf8_isalpha
(
const
char
*
);
LDAP_F
(
int
)
ldap_utf8_isalnum
(
const
char
*
);
LDAP_F
(
int
)
ldap_utf8_isdigit
(
const
char
*
);
LDAP_F
(
int
)
ldap_utf8_isxdigit
(
const
char
*
);
LDAP_F
(
int
)
ldap_utf8_isspace
(
const
char
*
);
/* span characters not in set, return bytes spanned */
LDAP_F
(
ber_len_t
)
ldap_utf8_strcspn
(
const
char
*
str
,
const
char
*
set
);
/* span characters in set, return bytes spanned */
LDAP_F
(
ber_len_t
)
ldap_utf8_strspn
(
const
char
*
str
,
const
char
*
set
);
/* return first occurance of character in string */
LDAP_F
(
char
*
)
ldap_utf8_strchr
(
const
char
*
str
,
const
char
*
chr
);
/* return first character of set in string */
LDAP_F
(
char
*
)
ldap_utf8_strpbrk
(
const
char
*
str
,
const
char
*
set
);
/* reentrant tokenizer */
LDAP_F
(
char
*
)
ldap_utf8_strtok
(
char
*
sp
,
const
char
*
sep
,
char
**
last
);
/* Optimizations */
#define LDAP_UTF8_ISASCII(p) ( * (const unsigned char *) (p) < 0x100 )
#define LDAP_UTF8_CHARLEN(p) ( LDAP_UTF8_ISASCII(p) \
? 1 : ldap_utf8_charlen((p)) )
#define LDAP_UTF8_OFFSET(p) ( LDAP_UTF8_ISASCII(p) \
? 1 : ldap_utf8_offset((p)) )
#define LDAP_UTF8_COPY(d,s) ( LDAP_UTF8_ISASCII(s) \
? (*(d) = *(s), 1) : ldap_utf8_copy((d),(s)) )
#define LDAP_UTF8_NEXT(p) ( LDAP_UTF8_ISASCII(p) \
? (char *)(p)+1 : ldap_utf8_next((p)) )
#define LDAP_UTF8_INCR(p) ((p) = LDAP_UTF8_NEXT(p))
/* For symmetry */
#define LDAP_UTF8_PREV(p) (ldap_utf8_prev((p)))
#define LDAP_UTF8_DECR(p) ((p)=LDAP_UTF8_PREV((p)))
LDAP_END_DECL
#include
"ldap_pvt_uc.h"
#endif
This diff is collapsed.
Click to expand it.
libraries/liblunicode/Makefile.in
+
2
−
2
View file @
bfff7ce1
...
...
@@ -10,8 +10,8 @@ XXDIR = $(srcdir)/*/
XXHEADERS
=
ucdata.h ure.h
XXSRCS
=
ucdata.c ucgendat.c ure.c urestubs.c
SRCS
=
OBJS
=
ucdata.o ure.o urestubs.o
SRCS
=
ucstr.c
OBJS
=
ucdata.o ure.o urestubs.o
ucstr.o
XLIB
=
-llunicode
PROGRAMS
=
ucgendat
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment