Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
f5fd4dc3
Commit
f5fd4dc3
authored
Apr 30, 2002
by
Howard Chu
Browse files
Added ldap_ucs_to_utf8s to convert ASN.1 T61STRING, BMPSTRING, and
UNIVERSALSTRING to
UTF-8
format.
parent
b0055400
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/ldap_pvt_uc.h
View file @
f5fd4dc3
...
...
@@ -39,6 +39,11 @@ typedef unsigned long ldap_unicode_t;
#define ldap_utf8_to_unicode( p ) ldap_utf8_to_ucs4((p))
#define ldap_unicode_to_utf8( c, buf ) ldap_ucs4_to_ucs4((c),(buf))
/* Convert a string with csize octets per character to UTF-8 */
LDAP_F
(
int
)
ldap_ucs_to_utf8s
LDAP_P
((
struct
berval
*
ucs
,
int
csize
,
struct
berval
*
utf8s
));
/* 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 */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment