Lines Matching refs:uni_str

851 #define u_lendian_to_utf8(str, uni_str)\  argument
853 if ((B_LENDIAN_TO_HOST_INT16(uni_str[0])&0xff80) == 0)\
854 *str++ = B_LENDIAN_TO_HOST_INT16(*uni_str++);\
855 else if ((B_LENDIAN_TO_HOST_INT16(uni_str[0])&0xf800) == 0) {\
856 str[0] = 0xc0|(B_LENDIAN_TO_HOST_INT16(uni_str[0])>>6);\
857 str[1] = 0x80|(B_LENDIAN_TO_HOST_INT16(*uni_str++)&0x3f);\
859 } else if ((B_LENDIAN_TO_HOST_INT16(uni_str[0])&0xfc00) != 0xd800) {\
860 str[0] = 0xe0|(B_LENDIAN_TO_HOST_INT16(uni_str[0])>>12);\
861 str[1] = 0x80|((B_LENDIAN_TO_HOST_INT16(uni_str[0])>>6)&0x3f);\
862 str[2] = 0x80|(B_LENDIAN_TO_HOST_INT16(*uni_str++)&0x3f);\
866 …val = ((B_LENDIAN_TO_HOST_INT16(uni_str[0])-0xd7c0)<<10) | (B_LENDIAN_TO_HOST_INT16(uni_str[1])&0x…
871 uni_str += 2; str += 4;\
876 #define u_hostendian_to_utf8(str, uni_str)\ argument
878 if ((uni_str[0]&0xff80) == 0)\
879 *str++ = *uni_str++;\
880 else if ((uni_str[0]&0xf800) == 0) {\
881 str[0] = 0xc0|(uni_str[0]>>6);\
882 str[1] = 0x80|(*uni_str++&0x3f);\
884 } else if ((uni_str[0]&0xfc00) != 0xd800) {\
885 str[0] = 0xe0|(uni_str[0]>>12);\
886 str[1] = 0x80|((uni_str[0]>>6)&0x3f);\
887 str[2] = 0x80|(*uni_str++&0x3f);\
891 val = ((uni_str[0]-0xd7c0)<<10) | (uni_str[1]&0x3ff);\
896 uni_str += 2; str += 4;\
901 #define utf8_to_u_hostendian(str, uni_str, err_flag) \ argument
905 *uni_str++ = *str++;\
907 *uni_str++ = 0xfffd;\
910 *uni_str++ = ((str[0]&31)<<6) | (str[1]&63);\
913 *uni_str++ = 0xfffd;\
916 *uni_str++ = ((str[0]&15)<<12) | ((str[1]&63)<<6) | (str[2]&63);\
919 *uni_str++ = 0xfffd;\