Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenjmstojis.c
Go to the documentation of this file.
00001 #include <mbstring.h> 00002 00003 /* 00004 * @implemented 00005 */ 00006 unsigned int _mbcjmstojis(unsigned int c) 00007 { 00008 int c1, c2; 00009 00010 c2 = (unsigned char)c; 00011 c1 = c >> 8; 00012 if (c1 < 0xf0 && _ismbblead(c1) && _ismbbtrail(c2)) { 00013 if (c1 >= 0xe0) 00014 c1 -= 0x40; 00015 c1 -= 0x70; 00016 c1 <<= 1; 00017 if (c2 < 0x9f) { 00018 c1 --; 00019 c2 -= 0x1f; 00020 if (c2 >= (0x80-0x1f)) 00021 c2 --; 00022 } else { 00023 c2 -= 0x7e; 00024 } 00025 return ((c1 << 8) | c2); 00026 } 00027 return 0; 00028 } Generated on Tue May 22 2012 04:40:40 for ReactOS by
1.7.6.1
|