Lines Matching refs:hs
808 WCHAR hs, wc; in put_utf() local
810 hs = (WCHAR)(chr >> 16); in put_utf()
812 if (hs == 0) { /* Single encoding unit? */ in put_utf()
817 …if (szb < 2 || !IsSurrogateH(hs) || !IsSurrogateL(wc)) return 0; /* Buffer overflow or wrong surro… in put_utf()
818 *buf++ = hs; in put_utf()
2594 WCHAR wc, hs; local
2611 hs = 0;
2616 if (hs == 0 && IsSurrogate(wc)) { /* Is it a surrogate? */
2617 hs = wc; continue; /* Get low surrogate */
2619 …nw = put_utf((DWORD)hs << 16 | wc, &fno->fname[di], FF_LFN_BUF - di); /* Store it in API encoding …
2622 hs = 0;
2624 if (hs != 0) di = 0; /* Broken surrogate pair? */
2639 hs = 0;
2642 if (hs == 0 && IsSurrogate(wc)) { /* Is it a surrogate? */
2643 hs = wc; continue; /* Get low surrogate */
2645 …nw = put_utf((DWORD)hs << 16 | wc, &fno->fname[di], FF_LFN_BUF - di); /* Store it in API encoding …
2648 hs = 0;
2650 if (hs != 0) di = 0; /* Broken surrogate pair? */
5298 WCHAR hs; local
5301 …for (si = di = hs = 0; si < dj.dir[XDIR_NumLabel]; si++) { /* Extract volume label from 83 entry */
5303 if (hs == 0 && IsSurrogate(wc)) { /* Is the code a surrogate? */
5304 hs = wc; continue;
5306 nw = put_utf((DWORD)hs << 16 | wc, &label[di], 4); /* Store it in API encoding */
5309 hs = 0;
5311 if (hs != 0) di = 0; /* Broken surrogate pair? */
6477 WCHAR hs; member
6493 WCHAR hs, wc; local
6511 pb->hs = c; return; /* Save it for next */
6513 hs = pb->hs; pb->hs = 0;
6514 if (hs != 0) { /* There is a leading high surrogate */
6515 if (!IsSurrogateL(c)) hs = 0; /* Discard high surrogate if not a surrogate pair */
6542 hs = (WCHAR)(dc >> 16);
6546 hs = (WCHAR)(0xD800 | ((c >> 10) - 0x40)); /* Make high surrogate */
6549 hs = 0;
6556 if (hs != 0) { /* Surrogate pair? */
6557 st_word(&pb->buf[i], hs);
6564 if (hs != 0) { /* Surrogate pair? */
6565 pb->buf[i++] = (BYTE)(hs >> 8);
6566 pb->buf[i++] = (BYTE)hs;
6572 if (hs != 0) { /* 4-byte sequence? */
6574 hs = (hs & 0x3FF) + 0x40;
6575 pb->buf[i++] = (BYTE)(0xF0 | hs >> 8);
6576 pb->buf[i++] = (BYTE)(0x80 | (hs >> 2 & 0x3F));
6577 pb->buf[i++] = (BYTE)(0x80 | (hs & 3) << 4 | (wc >> 6 & 0x0F));
6595 if (hs != 0) return;