Home
last modified time | relevance | path

Searched refs:uni_str (Results 1 – 2 of 2) sorted by relevance

/haiku/src/add-ons/kernel/file_systems/fat/
H A Dencodings.cpp851 #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);\
[all …]
/haiku/src/add-ons/kernel/file_systems/iso9660/
H A Diso9660.cpp69 #define u_to_utf8(str, uni_str)\ argument
71 if ((B_BENDIAN_TO_HOST_INT16(uni_str[0])&0xff80) == 0)\
72 *str++ = B_BENDIAN_TO_HOST_INT16(*uni_str++);\
73 else if ((B_BENDIAN_TO_HOST_INT16(uni_str[0])&0xf800) == 0) {\
74 str[0] = 0xc0|(B_BENDIAN_TO_HOST_INT16(uni_str[0])>>6);\
75 str[1] = 0x80|(B_BENDIAN_TO_HOST_INT16(*uni_str++)&0x3f);\
77 } else if ((B_BENDIAN_TO_HOST_INT16(uni_str[0])&0xfc00) != 0xd800) {\
78 str[0] = 0xe0|(B_BENDIAN_TO_HOST_INT16(uni_str[0])>>12);\
79 str[1] = 0x80|((B_BENDIAN_TO_HOST_INT16(uni_str[0])>>6)&0x3f);\
80 str[2] = 0x80|(B_BENDIAN_TO_HOST_INT16(*uni_str++)&0x3f);\
[all …]