Lines Matching refs:IsSurrogate
53 #define IsSurrogate(c) ((c) >= 0xD800 && (c) <= 0xDFFF) macro
743 if (IsSurrogate(uc)) { /* Surrogate? */ in tchar2uni()
769 if (uc < 0x80 || IsSurrogate(uc) || uc >= 0x110000) return 0xFFFFFFFF; /* Wrong code? */ in tchar2uni()
775 if (uc >= 0x110000 || IsSurrogate(uc)) return 0xFFFFFFFF; /* Wrong code? */ in tchar2uni()
813 if (szb < 1 || IsSurrogate(wc)) return 0; /* Buffer overflow or wrong code? */ in put_utf()
837 if (szb < 3 || IsSurrogate(chr)) return 0; /* Buffer overflow or wrong code? */ in put_utf()
2616 if (hs == 0 && IsSurrogate(wc)) { /* Is it a surrogate? */
2642 if (hs == 0 && IsSurrogate(wc)) { /* Is it a surrogate? */
5303 if (hs == 0 && IsSurrogate(wc)) { /* Is the code a surrogate? */
6402 if (rc != ct || dc < 0x80 || IsSurrogate(dc) || dc >= 0x110000) continue; /* Wrong encoding? */
6544 if (IsSurrogate(c) || c >= 0x110000) return; /* Discard invalid code */