Home
last modified time | relevance | path

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

/titanic_44/usr/src/cmd/localedef/data/
H A Dconvert_map.pl22 my $ucs = shift;
25 if ($ucs <= 0x7f) {
26 $utf8 = sprintf("\\x%02X", $ucs).$utf8;
27 } elsif ($ucs <= 0x7ff) {
28 $utf8 = sprintf("\\x%02X", ($ucs & 0x3f) | 0x80).$utf8;
29 $ucs >>= 6;
30 $utf8 = sprintf("\\x%02X", $ucs | 0xc0).$utf8;
32 } elsif ($ucs <= 0xffff) {
33 $utf8 = sprintf("\\x%02X", ($ucs & 0x3f) | 0x80).$utf8;
34 $ucs >>= 6;
[all …]
H A Dwidths.txt4 # which can be found at http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c
/titanic_44/usr/src/common/smbsrv/
H A Dsmb_oem.c188 ucstooem(char *oem, const smb_wchar_t *ucs, size_t nbytes, uint32_t cpid) in ucstooem() argument
194 if (ucs == NULL || oem == NULL) in ucstooem()
200 while (nbytes != 0 && (oemchar = ucspage->value[*ucs]) != 0) { in ucstooem()
213 ucs++; in ucstooem()
230 oemtoucs(smb_wchar_t *ucs, const char *oem, size_t nwchars, uint32_t cpid) in oemtoucs() argument
236 if (ucs == NULL || oem == NULL) in oemtoucs()
250 *ucs = 0; in oemtoucs()
255 *ucs = LE_IN16(&oempage->value[oemchar]); in oemtoucs()
257 *ucs = oempage->value[oemchar]; in oemtoucs()
260 ucs++; in oemtoucs()
[all …]
/titanic_44/usr/src/lib/libsmbfs/smb/
H A Dntlm.c569 uint16_t *ucs = NULL; in smb_put_blob_name() local
573 ucs = convert_utf8_to_leunicode(name); in smb_put_blob_name()
574 if (ucs) in smb_put_blob_name()
575 nlen = unicode_strlen(ucs); in smb_put_blob_name()
583 mb_put_mem(mbp, (char *)ucs, nlen, MB_MSYSTEM); in smb_put_blob_name()
585 if (ucs) in smb_put_blob_name()
586 free(ucs); in smb_put_blob_name()