mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 05:52:57 +00:00
Delete all Trailing spaces in code.
svn path=/trunk/; revision=29689
This commit is contained in:
parent
622c29bffb
commit
a7fddf9c07
293 changed files with 12346 additions and 12346 deletions
|
@ -3,7 +3,7 @@
|
|||
*/
|
||||
|
||||
unsigned short table_Windows28591[256] =
|
||||
{
|
||||
{
|
||||
0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, 0x0008, 0x0009,
|
||||
0x000A, 0x000B, 0x000C, 0x000D, 0x000E, 0x000F, 0x0010, 0x0011, 0x0012, 0x0013,
|
||||
0x0014, 0x0015, 0x0016, 0x0017, 0x0018, 0x0019, 0x001A, 0x001B, 0x001C, 0x001D,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
*/
|
||||
|
||||
unsigned short table_Windows28592[256] =
|
||||
{
|
||||
{
|
||||
0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, 0x0008, 0x0009,
|
||||
0x000A, 0x000B, 0x000C, 0x000D, 0x000E, 0x000F, 0x0010, 0x0011, 0x0012, 0x0013,
|
||||
0x0014, 0x0015, 0x0016, 0x0017, 0x0018, 0x0019, 0x001A, 0x001B, 0x001C, 0x001D,
|
||||
|
@ -23,11 +23,11 @@ unsigned short table_Windows28592[256] =
|
|||
0x00A0, 0x0104, 0x02D8, 0x0141, 0x00A4, 0x013D, 0x015A, 0x00A7, 0x00A8, 0x0160,
|
||||
0x015E, 0x0164, 0x0179, 0x00AD, 0x017D, 0x017B, 0x00B0, 0x0105, 0x02DB, 0x0142,
|
||||
0x00B4, 0x013E, 0x015B, 0x02C7, 0x00B8, 0x0161, 0x015F, 0x0165, 0x017A, 0x02DD,
|
||||
0x017E, 0x017C, 0x0154, 0x00C1, 0x00C2, 0x0102, 0x00C4, 0x0139, 0x0106, 0x00C7,
|
||||
0x010C, 0x00C9, 0x0118, 0x00CB, 0x011A, 0x00CD, 0x00CE, 0x010E, 0x0110, 0x0143,
|
||||
0x0147, 0x00D3, 0x00D4, 0x0150, 0x00D6, 0x00D7, 0x0158, 0x016E, 0x00DA, 0x0170,
|
||||
0x00DC, 0x00DD, 0x0162, 0x00DF, 0x0155, 0x00E1, 0x00E2, 0x0103, 0x00E4, 0x013A,
|
||||
0x0107, 0x00E7, 0x010D, 0x00E9, 0x0119, 0x00EB, 0x011B, 0x00ED, 0x00EE, 0x010F,
|
||||
0x0111, 0x0144, 0x0148, 0x00F3, 0x00F4, 0x0151, 0x00F6, 0x00F7, 0x0159, 0x016F,
|
||||
0x017E, 0x017C, 0x0154, 0x00C1, 0x00C2, 0x0102, 0x00C4, 0x0139, 0x0106, 0x00C7,
|
||||
0x010C, 0x00C9, 0x0118, 0x00CB, 0x011A, 0x00CD, 0x00CE, 0x010E, 0x0110, 0x0143,
|
||||
0x0147, 0x00D3, 0x00D4, 0x0150, 0x00D6, 0x00D7, 0x0158, 0x016E, 0x00DA, 0x0170,
|
||||
0x00DC, 0x00DD, 0x0162, 0x00DF, 0x0155, 0x00E1, 0x00E2, 0x0103, 0x00E4, 0x013A,
|
||||
0x0107, 0x00E7, 0x010D, 0x00E9, 0x0119, 0x00EB, 0x011B, 0x00ED, 0x00EE, 0x010F,
|
||||
0x0111, 0x0144, 0x0148, 0x00F3, 0x00F4, 0x0151, 0x00F6, 0x00F7, 0x0159, 0x016F,
|
||||
0x00FA, 0x0171, 0x00FC, 0x00FD, 0x0163, 0x02D9};
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
unsigned short table_OEM437[256] =
|
||||
{
|
||||
0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, 0x0008, 0x0009,
|
||||
0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, 0x0008, 0x0009,
|
||||
0x000A, 0x000B, 0x000C, 0x000D, 0x000E, 0x000F, 0x0010, 0x0011, 0x0012, 0x0013,
|
||||
0x0014, 0x0015, 0x0016, 0x0017, 0x0018, 0x0019, 0x001A, 0x001B, 0x001C, 0x001D,
|
||||
0x001E, 0x001F, 0x0020, 0x0021, 0x0022, 0x0023, 0x0024, 0x0025, 0x0026, 0x0027,
|
||||
|
@ -23,13 +23,13 @@ unsigned short table_OEM437[256] =
|
|||
0x00E1, 0x00ED, 0x00F3, 0x00FA, 0x00F1, 0x00D1, 0x00AA, 0x00BA, 0x00BF, 0x2310,
|
||||
0x00AC, 0x00BD, 0x00BC, 0x00A1, 0x00AB, 0x00BB, 0x2591, 0x2592, 0x2593, 0x2502,
|
||||
0x2524, 0x2561, 0x2562, 0x2556, 0x2555, 0x2563, 0x2551, 0x2557, 0x255D, 0x255C,
|
||||
0x255B, 0x2510, 0x2514, 0x2534, 0x252C, 0x251C, 0x2500, 0x253C, 0x255E, 0x255F,
|
||||
0x255A, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256C, 0x2567, 0x2568, 0x2564,
|
||||
0x2565, 0x2559, 0x2558, 0x2552, 0x2553, 0x256B, 0x256A, 0x2518, 0x250C, 0x2588,
|
||||
0x2584, 0x258C, 0x2590, 0x2580, 0x03B1, 0x00DF, 0x0393, 0x03C0, 0x03A3, 0x03C3,
|
||||
0x00B5, 0x03C4, 0x03A6, 0x0398, 0x03A9, 0x03B4, 0x221E, 0x03C6, 0x03B5, 0x2229,
|
||||
0x2261, 0x00B1, 0x2265, 0x2264, 0x2320, 0x2321, 0x00F7, 0x2248, 0x00B0, 0x2219,
|
||||
0x255B, 0x2510, 0x2514, 0x2534, 0x252C, 0x251C, 0x2500, 0x253C, 0x255E, 0x255F,
|
||||
0x255A, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256C, 0x2567, 0x2568, 0x2564,
|
||||
0x2565, 0x2559, 0x2558, 0x2552, 0x2553, 0x256B, 0x256A, 0x2518, 0x250C, 0x2588,
|
||||
0x2584, 0x258C, 0x2590, 0x2580, 0x03B1, 0x00DF, 0x0393, 0x03C0, 0x03A3, 0x03C3,
|
||||
0x00B5, 0x03C4, 0x03A6, 0x0398, 0x03A9, 0x03B4, 0x221E, 0x03C6, 0x03B5, 0x2229,
|
||||
0x2261, 0x00B1, 0x2265, 0x2264, 0x2320, 0x2321, 0x00F7, 0x2248, 0x00B0, 0x2219,
|
||||
0x00B7, 0x221A, 0x207F, 0x00B2, 0x25A0, 0x00A0};
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -28,5 +28,5 @@ unsigned short table_OEM850[256] =
|
|||
0x00CA, 0x00CB, 0x00C8, 0x0131, 0x00CD, 0x00CE, 0x00CF, 0x2518, 0x250C, 0x2588,
|
||||
0x2584, 0x00A6, 0x00CC, 0x2580, 0x00D3, 0x00DF, 0x00D4, 0x00D2, 0x00F5, 0x00D5,
|
||||
0x00B5, 0x00FE, 0x00DE, 0x00DA, 0x00DB, 0x00D9, 0x00FD, 0x00DD, 0x00AF, 0x00B4,
|
||||
0x00AD, 0x00B1, 0x2017, 0x00BE, 0x00B6, 0x00A7, 0x00F7, 0x00B8, 0x00B0, 0x00A8,
|
||||
0x00AD, 0x00B1, 0x2017, 0x00BE, 0x00B6, 0x00A7, 0x00F7, 0x00B8, 0x00B0, 0x00A8,
|
||||
0x00B7, 0x00B9, 0x00B3, 0x00B2, 0x25A0, 0x00A0};
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -4,7 +4,7 @@
|
|||
<define name="_WIN32_WINNT">0x0501</define>
|
||||
<define name="__USE_W32API" />
|
||||
<library>kernel32</library>
|
||||
<file>roswebparser.c</file>
|
||||
<file>utf8.c</file>
|
||||
<file>roswebparser.c</file>
|
||||
<file>utf8.c</file>
|
||||
|
||||
</module>
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
|
||||
/*
|
||||
* Convert ansi to utf-8
|
||||
* it does not support more that utf-16
|
||||
* Convert ansi to utf-8
|
||||
* it does not support more that utf-16
|
||||
* the table we are using is base on utf-16 then we convert the table to utf-8
|
||||
*
|
||||
* All table lookup the ansi char to utf-16 then we calc the utf-8 format.
|
||||
*
|
||||
* All table lookup the ansi char to utf-16 then we calc the utf-8 format.
|
||||
*/
|
||||
|
||||
#include "oem437.h" /* windows oem 437 */
|
||||
#include "oem850.h" /* windows oem 850 */
|
||||
#include "oem437.h" /* windows oem 437 */
|
||||
#include "oem850.h" /* windows oem 850 */
|
||||
#include "Windows28591.h" /* windows 28591 aka ISO-2859-1 (Latin 1) */
|
||||
#include "Windows28592.h" /* windows 28592 aka ISO-2859-2 (Latin 2) */
|
||||
|
||||
|
@ -23,24 +23,24 @@ int ansiCodePage(int codepage, unsigned char *inBuffer, unsigned char *outBuffer
|
|||
ch=-1;
|
||||
if (codepage == 437)
|
||||
{
|
||||
ch = (int) table_OEM437[ ((unsigned char)inBuffer[t])];
|
||||
ch = (int) table_OEM437[ ((unsigned char)inBuffer[t])];
|
||||
}
|
||||
|
||||
if (codepage == 850)
|
||||
{
|
||||
ch = (int) table_OEM850[ ((unsigned char)inBuffer[t])];
|
||||
ch = (int) table_OEM850[ ((unsigned char)inBuffer[t])];
|
||||
}
|
||||
|
||||
if (codepage == 28591)
|
||||
{
|
||||
ch = (int) table_Windows28591[ ((unsigned char)inBuffer[t])];
|
||||
ch = (int) table_Windows28591[ ((unsigned char)inBuffer[t])];
|
||||
}
|
||||
if (codepage == 28592)
|
||||
{
|
||||
ch = (int) table_Windows28592[ ((unsigned char)inBuffer[t])];
|
||||
ch = (int) table_Windows28592[ ((unsigned char)inBuffer[t])];
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (ch == -1)
|
||||
|
@ -54,22 +54,22 @@ int ansiCodePage(int codepage, unsigned char *inBuffer, unsigned char *outBuffer
|
|||
pos++;
|
||||
}
|
||||
else if (ch <=0x07FF) // 1 1111 11 1111
|
||||
{
|
||||
outBuffer[pos]= 0xC0 | (0x1F & (ch >> 6)); // 110x xxxx
|
||||
outBuffer[pos+1]= 0x80 | (0x3f & ch); // 11xx xxxx
|
||||
{
|
||||
outBuffer[pos]= 0xC0 | (0x1F & (ch >> 6)); // 110x xxxx
|
||||
outBuffer[pos+1]= 0x80 | (0x3f & ch); // 11xx xxxx
|
||||
pos+=2;
|
||||
}
|
||||
|
||||
else if (ch <=0xFFFF) // 11 11 11 11 11 11 11 11
|
||||
{
|
||||
outBuffer[pos]= 0xC2 | (0xf & (ch >> 12)); // 1110xxxx
|
||||
else if (ch <=0xFFFF) // 11 11 11 11 11 11 11 11
|
||||
{
|
||||
outBuffer[pos]= 0xC2 | (0xf & (ch >> 12)); // 1110xxxx
|
||||
outBuffer[pos+1]= 0x80 | (0x3f & (ch >> 6)); // 10xxxxxx
|
||||
outBuffer[pos+1]= 0x80 | (0x3f & ch); // 10xxxxxx
|
||||
outBuffer[pos+1]= 0x80 | (0x3f & ch); // 10xxxxxx
|
||||
pos+=3;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return pos;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue