Home
last modified time | relevance | path

Searched refs:utf8str (Results 1 – 4 of 4) sorted by relevance

/netbsd-src/external/bsd/openldap/dist/libraries/libldap/
H A Dutf-8-conv.c130 ldap_x_utf8s_to_wcs ( wchar_t *wcstr, const char *utf8str, size_t count ) in ldap_x_utf8s_to_wcs() argument
138 if (utf8str == NULL || !*utf8str) { in ldap_x_utf8s_to_wcs()
145 while ( *utf8str && (wcstr==NULL || wclen<count) ) { in ldap_x_utf8s_to_wcs()
147 utflen = LDAP_UTF8_CHARLEN2(utf8str, utflen); in ldap_x_utf8s_to_wcs()
152 ch = (wchar_t)(utf8str[0] & mask[utflen]); in ldap_x_utf8s_to_wcs()
156 if ((utf8str[i] & 0xc0) != 0x80) return -1; in ldap_x_utf8s_to_wcs()
159 ch |= (wchar_t)(utf8str[i] & 0x3f); in ldap_x_utf8s_to_wcs()
164 utf8str += utflen; /* Move to next UTF-8 character */ in ldap_x_utf8s_to_wcs()
278 ldap_x_wcs_to_utf8s ( char *utf8str, const wchar_t *wcstr, size_t count ) in ldap_x_wcs_to_utf8s() argument
282 char *p = utf8str; in ldap_x_wcs_to_utf8s()
[all …]
/netbsd-src/external/bsd/openldap/dist/include/
H A Dldap_utf8.h69 wchar_t *wcstr, LDAP_CONST char *utf8str, size_t count ));
77 char *utf8str, LDAP_CONST wchar_t *wcstr, size_t count ));
90 char *mbstr, LDAP_CONST char *utf8str, size_t count,
102 char *utf8str, LDAP_CONST char *mbstr, size_t count,
/netbsd-src/external/bsd/openldap/dist/doc/devel/
H A Dutfconv.txt62 int ldap_x_utf8s_to_wcs (wchar_t *wcstr, const char *utf8str, size_t count)
69 utf8str (IN) Address of the null-terminated UTF-8 string to convert.
118 int ldap_x_wcs_to_utf8s (char *utf8str, const wchar_t *wcstr, size_t count)
120 utf8str (OUT) Points to a byte array to receive the converted
132 written to utf8str, excluding the null termination
135 If utf8str is NULL, the function returns the number of
194 int ldap_x_mbs_to_utf8s (char *utf8str, const char *mbstr, size_t count,
197 utf8str (OUT) Points to a buffer to receive the converted UTF-8 string.
213 If utf8str is NULL, count is ignored and the function
217 If count is zero, 0 is returned and nothing is written to utf8str.
[all …]
/netbsd-src/usr.sbin/usbdevs/
H A Dusbdevs.c88 u2t(const char *utf8str, char *termstr) in u2t() argument
102 insz = strlen(utf8str); in u2t()
104 icres = iconv(ic, __UNCONST(&utf8str), &insz, &termstr, in u2t()