ReactOS Fundraising Campaign 2012
 
€ 4,060 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

jmstojis.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 doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.