Lines Matching refs:hs
814 WCHAR hs, wc; in put_utf() local
816 hs = (WCHAR)(chr >> 16); in put_utf()
818 if (hs == 0) { /* Single encoding unit? */ in put_utf()
823 …if (szb < 2 || !IsSurrogateH(hs) || !IsSurrogateL(wc)) return 0; /* Buffer overflow or wrong surro… in put_utf()
824 *buf++ = hs; in put_utf()
2647 WCHAR wc, hs; local
2664 hs = 0;
2671 if (hs == 0 && IsSurrogate(wc)) { /* Is it a surrogate? */
2672 hs = wc; continue; /* Get low surrogate */
2674 …nw = put_utf((DWORD)hs << 16 | wc, &fno->fname[di], FF_LFN_BUF - di); /* Store it in API encoding …
2679 hs = 0;
2681 if (hs != 0) di = 0; /* Broken surrogate pair? */
2696 hs = 0;
2699 if (hs == 0 && IsSurrogate(wc)) { /* Is it a surrogate? */
2700 hs = wc; continue; /* Get low surrogate */
2702 …nw = put_utf((DWORD)hs << 16 | wc, &fno->fname[di], FF_LFN_BUF - di); /* Store it in API encoding …
2707 hs = 0;
2709 if (hs != 0) di = 0; /* Broken surrogate pair? */
5383 WCHAR hs; local
5386 …for (si = di = hs = 0; si < dj.dir[XDIR_NumLabel]; si++) { /* Extract volume label from 83 entry */
5388 if (hs == 0 && IsSurrogate(wc)) { /* Is the code a surrogate? */
5389 hs = wc; continue;
5391 nw = put_utf((DWORD)hs << 16 | wc, &label[di], 4); /* Store it in API encoding */
5396 hs = 0;
5398 if (hs != 0) di = 0; /* Broken surrogate pair? */
6586 WCHAR hs; member
6602 WCHAR hs, wc; local
6620 pb->hs = c; return; /* Save it for next */
6622 hs = pb->hs; pb->hs = 0;
6623 if (hs != 0) { /* Is there a leading high-surrogate? */
6624 if (!IsSurrogateL(c)) hs = 0; /* Discard high-surrogate if a stray high-surrogate */
6650 hs = (WCHAR)(dc >> 16);
6655 hs = (WCHAR)(0xD800 | ((c >> 10) - 0x40)); /* Make high surrogate */
6658 hs = 0;
6665 if (hs != 0) { /* Surrogate pair? */
6666 st_word(&pb->buf[i], hs);
6673 if (hs != 0) { /* Surrogate pair? */
6674 pb->buf[i++] = (BYTE)(hs >> 8);
6675 pb->buf[i++] = (BYTE)hs;
6681 if (hs != 0) { /* 4-byte sequence? */
6683 hs = (hs & 0x3FF) + 0x40;
6684 pb->buf[i++] = (BYTE)(0xF0 | hs >> 8);
6685 pb->buf[i++] = (BYTE)(0x80 | (hs >> 2 & 0x3F));
6686 pb->buf[i++] = (BYTE)(0x80 | (hs & 3) << 4 | (wc >> 6 & 0x0F));
6704 if (hs != 0) return;