From 29d86ceea5311b9983bd21c8098fd537a57f5fe1 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 10 Nov 2009 14:29:32 +0000 Subject: [PATCH] 2009-11-10 15:25 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) * include/hbextcdp.ch * Updated to reflect recent couple of commits. * src/codepage/Makefile + src/codepage/cpit850m.c + src/codepage/cpde850m.c + src/codepage/cpsv850m.c + src/codepage/cpnl850m.c + src/codepage/cpes850m.c + src/codepage/cpfr850m.c + Added mdx*.obj compatible CPs, created by cpinfo.prg. ; TOFIX: I didn't added mdxuk and mdxusa, simply because it cannot fit in current filename scheme, which uses only two chars to denote language. --- harbour/ChangeLog | 18 +++++++++++++- harbour/include/hbextcdp.ch | 19 ++++++++++++--- harbour/src/codepage/Makefile | 6 +++++ harbour/src/codepage/cpde850m.c | 43 +++++++++++++++++++++++++++++++++ harbour/src/codepage/cpes850m.c | 43 +++++++++++++++++++++++++++++++++ harbour/src/codepage/cpfr850m.c | 43 +++++++++++++++++++++++++++++++++ harbour/src/codepage/cpit850m.c | 43 +++++++++++++++++++++++++++++++++ harbour/src/codepage/cpnl850m.c | 43 +++++++++++++++++++++++++++++++++ harbour/src/codepage/cpsv850m.c | 43 +++++++++++++++++++++++++++++++++ 9 files changed, 297 insertions(+), 4 deletions(-) create mode 100644 harbour/src/codepage/cpde850m.c create mode 100644 harbour/src/codepage/cpes850m.c create mode 100644 harbour/src/codepage/cpfr850m.c create mode 100644 harbour/src/codepage/cpit850m.c create mode 100644 harbour/src/codepage/cpnl850m.c create mode 100644 harbour/src/codepage/cpsv850m.c diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 7d26b5cf69..f53b257a8d 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,22 @@ past entries belonging to author(s): Viktor Szakats. */ +2009-11-10 15:25 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) + * include/hbextcdp.ch + * Updated to reflect recent couple of commits. + + * src/codepage/Makefile + + src/codepage/cpit850m.c + + src/codepage/cpde850m.c + + src/codepage/cpsv850m.c + + src/codepage/cpnl850m.c + + src/codepage/cpes850m.c + + src/codepage/cpfr850m.c + + Added mdx*.obj compatible CPs, created by cpinfo.prg. + ; TOFIX: I didn't added mdxuk and mdxusa, simply because + it cannot fit in current filename scheme, which + uses only two chars to denote language. + 2009-11-10 15:15 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) * src/codepage/cpes850c.c * src/codepage/cpnl850.c @@ -29,7 +45,7 @@ * codepage/Makefile - codepage/cpesisoc.c - codepage/cpeswinc.c - - Deletes ISO and Win pairs of ES850C. + - Deleted ISO and Win pairs of ES850C. * codepage/Makefile + codepage/cpgr437.c diff --git a/harbour/include/hbextcdp.ch b/harbour/include/hbextcdp.ch index 7009e9aca5..ed4974bba9 100644 --- a/harbour/include/hbextcdp.ch +++ b/harbour/include/hbextcdp.ch @@ -65,21 +65,26 @@ EXTERNAL HB_CODEPAGE_CSISO EXTERNAL HB_CODEPAGE_CSKAM EXTERNAL HB_CODEPAGE_CSWIN EXTERNAL HB_CODEPAGE_DE850 +EXTERNAL HB_CODEPAGE_DE850M EXTERNAL HB_CODEPAGE_DEISO EXTERNAL HB_CODEPAGE_DEWIN +EXTERNAL HB_CODEPAGE_DK865 EXTERNAL HB_CODEPAGE_EL737 EXTERNAL HB_CODEPAGE_ELISO EXTERNAL HB_CODEPAGE_ELWIN EXTERNAL HB_CODEPAGE_EN EXTERNAL HB_CODEPAGE_ES850 EXTERNAL HB_CODEPAGE_ES850C +EXTERNAL HB_CODEPAGE_ES850M EXTERNAL HB_CODEPAGE_ESISO -EXTERNAL HB_CODEPAGE_ESISOC EXTERNAL HB_CODEPAGE_ESWIN -EXTERNAL HB_CODEPAGE_ESWINC +EXTERNAL HB_CODEPAGE_FI850 EXTERNAL HB_CODEPAGE_FR850 +EXTERNAL HB_CODEPAGE_FR850M EXTERNAL HB_CODEPAGE_FRISO EXTERNAL HB_CODEPAGE_FRWIN +EXTERNAL HB_CODEPAGE_GR437 +EXTERNAL HB_CODEPAGE_GR851 EXTERNAL HB_CODEPAGE_HR437 EXTERNAL HB_CODEPAGE_HR852 EXTERNAL HB_CODEPAGE_HRWIN @@ -87,17 +92,24 @@ EXTERNAL HB_CODEPAGE_HU852 EXTERNAL HB_CODEPAGE_HU852C EXTERNAL HB_CODEPAGE_HUISO EXTERNAL HB_CODEPAGE_HUWIN +EXTERNAL HB_CODEPAGE_IS850 +EXTERNAL HB_CODEPAGE_IS861 EXTERNAL HB_CODEPAGE_IT437 EXTERNAL HB_CODEPAGE_IT850 +EXTERNAL HB_CODEPAGE_IT850M EXTERNAL HB_CODEPAGE_ITISB EXTERNAL HB_CODEPAGE_ITISO EXTERNAL HB_CODEPAGE_ITWIN EXTERNAL HB_CODEPAGE_LTWIN +EXTERNAL HB_CODEPAGE_NL850 +EXTERNAL HB_CODEPAGE_NL850M +EXTERNAL HB_CODEPAGE_NO865 EXTERNAL HB_CODEPAGE_PL852 EXTERNAL HB_CODEPAGE_PLISO EXTERNAL HB_CODEPAGE_PLMAZ EXTERNAL HB_CODEPAGE_PLWIN EXTERNAL HB_CODEPAGE_PT850 +EXTERNAL HB_CODEPAGE_PT860 EXTERNAL HB_CODEPAGE_PTISO EXTERNAL HB_CODEPAGE_RO852 EXTERNAL HB_CODEPAGE_ROISO @@ -115,8 +127,9 @@ EXTERNAL HB_CODEPAGE_SL852 EXTERNAL HB_CODEPAGE_SLISO EXTERNAL HB_CODEPAGE_SLWIN EXTERNAL HB_CODEPAGE_SRWIN +EXTERNAL HB_CODEPAGE_SV437C EXTERNAL HB_CODEPAGE_SV850 -EXTERNAL HB_CODEPAGE_SVCLIP +EXTERNAL HB_CODEPAGE_SV850M EXTERNAL HB_CODEPAGE_SVISO EXTERNAL HB_CODEPAGE_SVWIN EXTERNAL HB_CODEPAGE_TR857 diff --git a/harbour/src/codepage/Makefile b/harbour/src/codepage/Makefile index 5b149a4130..6f547afeef 100644 --- a/harbour/src/codepage/Makefile +++ b/harbour/src/codepage/Makefile @@ -14,6 +14,7 @@ C_SOURCES := \ cpcskam.c \ cpcswin.c \ cpde850.c \ + cpde850m.c \ cpdeiso.c \ cpdewin.c \ cpdk865.c \ @@ -22,11 +23,13 @@ C_SOURCES := \ cpelwin.c \ cpes850.c \ cpes850c.c \ + cpes850m.c \ cpesiso.c \ cpeswin.c \ cpeswinm.c \ cpfi850.c \ cpfr850.c \ + cpfr850m.c \ cpfriso.c \ cpfrwin.c \ cpgr437.c \ @@ -42,11 +45,13 @@ C_SOURCES := \ cpis861.c \ cpit437.c \ cpit850.c \ + cpit850m.c \ cpitisb.c \ cpitiso.c \ cpitwin.c \ cpltwin.c \ cpnl850.c \ + cpnl850m.c \ cpno865.c \ cppl852.c \ cppliso.c \ @@ -73,6 +78,7 @@ C_SOURCES := \ cpsrwin.c \ cpsv437c.c \ cpsv850.c \ + cpsv850m.c \ cpsviso.c \ cpsvwin.c \ cptr857.c \ diff --git a/harbour/src/codepage/cpde850m.c b/harbour/src/codepage/cpde850m.c new file mode 100644 index 0000000000..41b9d844d0 --- /dev/null +++ b/harbour/src/codepage/cpde850m.c @@ -0,0 +1,43 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * National Collation Support Module ( DE850M ) + * + * Copyright 2009 Przemyslaw Czerpak + * www - http://www.harbour-project.org + * + * This file is generated automatically by cpinfo.prg + */ +#include "hbapicdp.h" + +#define HB_CP_RAW &s_codePage + +static const unsigned char s_flags[ 256 ] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,0,0,0,0,0,0,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,0,0,0,0,0,10,6,6,6,6,6,6,6,6,6,6,6,6,6,10,10,10,6,10,6,6,6,6,6,6,10,10,0,0,0,0,0,6,6,6,6,6,10,6,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }; +static const unsigned char s_upper[ 256 ] = { 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,123,124,125,126,127,128,154,144,65,142,65,143,128,69,69,69,73,73,73,142,143,144,146,146,79,153,79,85,85,89,153,154,155,156,157,158,159,65,73,79,85,165,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255 }; +static const unsigned char s_lower[ 256 ] = { 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,135,129,130,131,132,133,134,135,136,137,138,139,140,141,132,134,130,145,145,147,148,149,150,151,152,148,129,155,156,157,158,159,160,161,162,163,164,164,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255 }; +static const unsigned char s_sort [ 256 ] = { 128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,194,195,196,197,198,199,200,201,202,203,176,177,178,179,180,181,182,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,183,184,185,186,187,188,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,189,190,191,192,193,95,126,108,102,103,101,104,107,110,111,109,115,114,113,92,93,96,105,94,119,120,118,125,124,127,98,99,0,1,2,3,4,100,112,117,123,116,97,106,121,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,122,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91 }; + +static HB_CODEPAGE s_codePage = +{ + "DE850M", + "German CP-850 (mdxger.obj compatible)", + HB_UNITB_850, + s_flags, + s_upper, + s_lower, + s_sort, + NULL, + 0, + 0, + 0, + NULL, + NULL, + NULL, +}; + +/* include CP registration code */ +#include "hbcdpreg.h" + \ No newline at end of file diff --git a/harbour/src/codepage/cpes850m.c b/harbour/src/codepage/cpes850m.c new file mode 100644 index 0000000000..6bd8b202e2 --- /dev/null +++ b/harbour/src/codepage/cpes850m.c @@ -0,0 +1,43 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * National Collation Support Module ( ES850M ) + * + * Copyright 2009 Przemyslaw Czerpak + * www - http://www.harbour-project.org + * + * This file is generated automatically by cpinfo.prg + */ +#include "hbapicdp.h" + +#define HB_CP_RAW &s_codePage + +static const unsigned char s_flags[ 256 ] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,0,0,0,0,0,0,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,0,0,0,0,0,10,6,6,6,6,6,6,6,6,6,6,6,6,6,10,10,10,6,10,6,6,6,6,6,6,10,10,0,0,0,0,0,6,6,6,6,6,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }; +static const unsigned char s_upper[ 256 ] = { 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,123,124,125,126,127,128,154,69,65,142,65,143,128,69,69,69,73,73,73,142,143,144,146,146,79,153,79,85,85,89,153,154,155,156,157,158,159,65,73,79,85,165,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255 }; +static const unsigned char s_lower[ 256 ] = { 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,135,129,130,131,132,133,134,135,136,137,138,139,140,141,132,134,144,145,145,147,148,149,150,151,152,148,129,155,156,157,158,159,160,161,162,163,164,164,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255 }; +static const unsigned char s_sort [ 256 ] = { 128,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,129,210,218,216,217,204,215,220,193,194,205,202,130,203,206,211,131,132,133,134,135,136,137,138,139,140,208,207,199,201,200,209,214,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,195,212,196,221,223,219,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,197,213,198,222,255,2,28,13,9,10,8,11,12,15,16,14,19,20,18,0,1,3,38,39,24,25,23,29,27,30,5,6,33,34,35,36,37,7,17,22,26,21,4,41,42,31,43,44,45,46,32,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,40,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127 }; + +static HB_CODEPAGE s_codePage = +{ + "ES850M", + "Spanish CP-850 (mdxspa.obj compatible)", + HB_UNITB_850, + s_flags, + s_upper, + s_lower, + s_sort, + NULL, + 0, + 0, + 0, + NULL, + NULL, + NULL, +}; + +/* include CP registration code */ +#include "hbcdpreg.h" + \ No newline at end of file diff --git a/harbour/src/codepage/cpfr850m.c b/harbour/src/codepage/cpfr850m.c new file mode 100644 index 0000000000..bc9fd43faa --- /dev/null +++ b/harbour/src/codepage/cpfr850m.c @@ -0,0 +1,43 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * National Collation Support Module ( FR850M ) + * + * Copyright 2009 Przemyslaw Czerpak + * www - http://www.harbour-project.org + * + * This file is generated automatically by cpinfo.prg + */ +#include "hbapicdp.h" + +#define HB_CP_RAW &s_codePage + +static const unsigned char s_flags[ 256 ] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,0,0,0,0,0,0,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,0,0,0,0,0,10,6,6,6,6,6,6,6,6,6,6,6,6,6,10,10,10,6,10,6,6,6,6,6,6,10,10,0,0,0,0,0,6,6,6,6,6,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }; +static const unsigned char s_upper[ 256 ] = { 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,123,124,125,126,127,128,85,69,65,142,65,143,67,69,69,69,73,73,73,142,143,144,146,146,79,153,79,85,85,89,153,154,155,156,157,158,159,65,73,79,85,165,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255 }; +static const unsigned char s_lower[ 256 ] = { 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,132,134,144,145,145,147,148,149,150,151,152,148,154,155,156,157,158,159,160,161,162,163,164,164,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255 }; +static const unsigned char s_sort [ 256 ] = { 128,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,129,210,218,216,217,203,215,220,192,193,204,201,206,202,205,211,130,131,132,133,134,135,136,137,138,139,208,207,198,200,199,209,214,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,194,212,195,221,223,219,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,196,213,197,222,255,2,29,13,9,10,8,11,12,15,16,14,20,19,18,0,1,3,37,38,24,25,23,28,27,30,5,6,32,33,34,36,35,7,17,22,26,21,4,40,41,31,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,39,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127 }; + +static HB_CODEPAGE s_codePage = +{ + "FR850M", + "French CP-850 (mdxfre.obj compatible)", + HB_UNITB_850, + s_flags, + s_upper, + s_lower, + s_sort, + NULL, + 0, + 0, + 0, + NULL, + NULL, + NULL, +}; + +/* include CP registration code */ +#include "hbcdpreg.h" + \ No newline at end of file diff --git a/harbour/src/codepage/cpit850m.c b/harbour/src/codepage/cpit850m.c new file mode 100644 index 0000000000..a8106d6f4a --- /dev/null +++ b/harbour/src/codepage/cpit850m.c @@ -0,0 +1,43 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * National Collation Support Module ( IT850M ) + * + * Copyright 2009 Przemyslaw Czerpak + * www - http://www.harbour-project.org + * + * This file is generated automatically by cpinfo.prg + */ +#include "hbapicdp.h" + +#define HB_CP_RAW &s_codePage + +static const unsigned char s_flags[ 256 ] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,0,0,0,0,0,0,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,0,0,0,0,0,10,6,6,6,6,6,6,6,6,6,6,6,6,6,10,10,10,6,10,6,6,6,6,6,6,10,10,0,0,0,0,0,6,6,6,6,6,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }; +static const unsigned char s_upper[ 256 ] = { 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,123,124,125,126,127,128,154,69,65,142,65,143,128,69,69,69,73,73,73,142,143,144,146,146,79,153,79,85,85,89,153,154,155,156,157,158,159,65,73,79,85,165,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255 }; +static const unsigned char s_lower[ 256 ] = { 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,135,129,130,131,132,133,134,135,136,137,138,139,140,141,132,134,144,145,145,147,148,149,150,151,152,148,129,155,156,157,158,159,160,161,162,163,164,164,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255 }; +static const unsigned char s_sort [ 256 ] = { 128,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,129,210,218,216,217,203,215,220,192,193,204,201,206,202,205,211,130,131,132,133,134,135,136,137,138,139,208,207,198,200,199,209,214,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,194,212,195,221,223,219,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,196,213,197,222,255,2,29,13,9,10,8,11,12,15,16,14,20,19,18,0,1,3,37,38,24,25,23,28,27,30,5,6,32,33,34,36,35,7,17,22,26,21,4,40,41,31,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,39,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127 }; + +static HB_CODEPAGE s_codePage = +{ + "IT850M", + "Italian CP-850 (mdxita.obj compatible)", + HB_UNITB_850, + s_flags, + s_upper, + s_lower, + s_sort, + NULL, + 0, + 0, + 0, + NULL, + NULL, + NULL, +}; + +/* include CP registration code */ +#include "hbcdpreg.h" + \ No newline at end of file diff --git a/harbour/src/codepage/cpnl850m.c b/harbour/src/codepage/cpnl850m.c new file mode 100644 index 0000000000..cb95d0cd56 --- /dev/null +++ b/harbour/src/codepage/cpnl850m.c @@ -0,0 +1,43 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * National Collation Support Module ( NL850M ) + * + * Copyright 2009 Przemyslaw Czerpak + * www - http://www.harbour-project.org + * + * This file is generated automatically by cpinfo.prg + */ +#include "hbapicdp.h" + +#define HB_CP_RAW &s_codePage + +static const unsigned char s_flags[ 256 ] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,0,0,0,0,0,0,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,0,0,0,0,0,10,6,6,6,6,6,6,6,6,6,6,6,6,6,10,10,10,6,10,6,6,6,6,6,6,10,10,0,0,0,0,0,6,6,6,6,6,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }; +static const unsigned char s_upper[ 256 ] = { 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,123,124,125,126,127,128,154,144,65,142,65,143,128,69,69,69,73,73,73,142,143,144,146,146,79,153,79,85,85,89,153,154,155,156,157,158,159,65,73,79,85,165,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255 }; +static const unsigned char s_lower[ 256 ] = { 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,135,129,130,131,132,133,134,135,136,137,138,139,140,141,132,134,130,145,145,147,148,149,150,151,152,148,129,155,156,157,158,159,160,161,162,163,164,164,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255 }; +static const unsigned char s_sort [ 256 ] = { 128,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,129,210,218,216,217,203,215,220,192,193,204,201,206,202,205,211,130,131,132,133,134,135,136,137,138,139,208,207,198,200,199,209,214,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,194,212,195,221,223,219,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,196,213,197,222,255,2,29,13,9,10,8,11,12,15,16,14,20,19,18,0,1,3,37,38,24,25,23,28,27,30,5,6,32,33,34,36,35,7,17,22,26,21,4,40,41,31,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,39,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127 }; + +static HB_CODEPAGE s_codePage = +{ + "NL850M", + "Dutch CP-850 (mdxdut.obj compatible)", + HB_UNITB_850, + s_flags, + s_upper, + s_lower, + s_sort, + NULL, + 0, + 0, + 0, + NULL, + NULL, + NULL, +}; + +/* include CP registration code */ +#include "hbcdpreg.h" + \ No newline at end of file diff --git a/harbour/src/codepage/cpsv850m.c b/harbour/src/codepage/cpsv850m.c new file mode 100644 index 0000000000..577a623c4e --- /dev/null +++ b/harbour/src/codepage/cpsv850m.c @@ -0,0 +1,43 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * National Collation Support Module ( SV850M ) + * + * Copyright 2009 Przemyslaw Czerpak + * www - http://www.harbour-project.org + * + * This file is generated automatically by cpinfo.prg + */ +#include "hbapicdp.h" + +#define HB_CP_RAW &s_codePage + +static const unsigned char s_flags[ 256 ] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,0,0,0,0,0,0,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,0,0,0,0,0,10,6,6,6,6,6,6,6,6,6,6,6,6,6,10,10,10,6,10,6,6,6,6,6,6,10,10,0,0,0,0,0,6,6,6,6,6,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }; +static const unsigned char s_upper[ 256 ] = { 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,123,124,125,126,127,128,154,144,65,142,65,143,128,69,69,69,73,73,73,142,143,144,146,146,79,153,79,85,85,89,153,154,155,156,157,158,159,65,73,79,85,165,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255 }; +static const unsigned char s_lower[ 256 ] = { 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,135,129,130,131,132,133,134,135,136,137,138,139,140,141,132,134,130,145,145,147,148,149,150,151,152,148,129,155,156,157,158,159,160,161,162,163,164,164,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255 }; +static const unsigned char s_sort [ 256 ] = { 128,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,129,210,218,216,217,203,215,220,192,193,204,201,206,202,205,211,130,131,132,133,134,135,136,137,138,139,208,207,198,200,199,209,214,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,194,212,195,221,223,219,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,196,213,197,222,255,0,27,11,9,30,8,29,10,13,14,12,18,17,16,5,4,1,31,32,22,33,21,26,25,28,6,3,35,36,37,39,38,7,15,20,24,19,2,40,41,34,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,23,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127 }; + +static HB_CODEPAGE s_codePage = +{ + "SV850M", + "Swedish CP-850 (mdxswe.obj compatible)", + HB_UNITB_850, + s_flags, + s_upper, + s_lower, + s_sort, + NULL, + 0, + 0, + 0, + NULL, + NULL, + NULL, +}; + +/* include CP registration code */ +#include "hbcdpreg.h" + \ No newline at end of file