You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ro...@locus.apache.org on 2000/02/08 01:59:20 UTC
cvs commit: xml-xerces/c/src/util TransService.cpp XMLUni.cpp XMLUni.hpp
roddey 00/02/07 16:59:20
Modified: c/src/util TransService.cpp XMLUni.cpp XMLUni.hpp
Log:
Support for new intrinsic encoder for IBM-1047 code page.
Revision Changes Path
1.7 +11 -2 xml-xerces/c/src/util/TransService.cpp
Index: TransService.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/util/TransService.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- TransService.cpp 2000/02/06 07:48:04 1.6
+++ TransService.cpp 2000/02/08 00:59:19 1.7
@@ -62,6 +62,7 @@
#include <util/XML88591Transcoder.hpp>
#include <util/XMLASCIITranscoder.hpp>
#include <util/XMLEBCDICTranscoder.hpp>
+#include <util/XMLIBM1047Transcoder.hpp>
#include <util/XMLUCS4Transcoder.hpp>
#include <util/XMLUTF8Transcoder.hpp>
#include <util/XMLUTF16Transcoder.hpp>
@@ -300,11 +301,19 @@
)
);
-
//
- // Add in our mappings for EBCDIC-US
+ // Add in our mappings for EBCDIC-US. We map all the default EBCDIC
+ // encodings to our intrinsic encoder, which is IBM-037. And of course
+ // we map the IBM-037 encoding itself here as well.
//
gMappings->put(new ENameMapFor<XMLEBCDICTranscoder>(XMLUni::fgDefaultEBCDICEncodingString));
gMappings->put(new ENameMapFor<XMLEBCDICTranscoder>(XMLUni::fgEBCDICEncodingString));
gMappings->put(new ENameMapFor<XMLEBCDICTranscoder>(XMLUni::fgEBCDICEncodingString2));
+ gMappings->put(new ENameMapFor<XMLEBCDICTranscoder>(XMLUni::fgIBM037EncodingString));
+
+ //
+ // And we intrinsically support the OE EBCDIC native page, which is IBM-1047.
+ // It must be explicitly indicated as IBM-1047.
+ //
+ gMappings->put(new ENameMapFor<XMLIBM1047Transcoder>(XMLUni::fgIBM1047EncodingString));
}
1.7 +13 -0 xml-xerces/c/src/util/XMLUni.cpp
Index: XMLUni.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/util/XMLUni.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- XMLUni.cpp 2000/02/06 07:48:06 1.6
+++ XMLUni.cpp 2000/02/08 00:59:19 1.7
@@ -56,6 +56,9 @@
/**
* $Log: XMLUni.cpp,v $
+ * Revision 1.7 2000/02/08 00:59:19 roddey
+ * Support for new intrinsic encoder for IBM-1047 code page.
+ *
* Revision 1.6 2000/02/06 07:48:06 rahulj
* Year 2K copyright swat.
*
@@ -199,6 +202,16 @@
, chForwardSlash, chLatin_x, chLatin_m, chLatin_l, chForwardSlash
, chLatin_G, chLatin_l, chLatin_o, chLatin_b, chLatin_a, chLatin_l
, chLatin_N, chLatin_S, chNull
+};
+
+const XMLCh XMLUni::fgIBM037EncodingString[] =
+{
+ chLatin_I, chLatin_B, chLatin_M, chDash, chDigit_0, chDigit_3, chDigit_7, chNull
+};
+
+const XMLCh XMLUni::fgIBM1047EncodingString[] =
+{
+ chLatin_I, chLatin_B, chLatin_M, chDash, chDigit_1, chDigit_0, chDigit_4, chDigit_7, chNull
};
const XMLCh XMLUni::fgIESString[] =
1.6 +5 -0 xml-xerces/c/src/util/XMLUni.hpp
Index: XMLUni.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/util/XMLUni.hpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- XMLUni.hpp 2000/02/06 07:48:06 1.5
+++ XMLUni.hpp 2000/02/08 00:59:19 1.6
@@ -56,6 +56,9 @@
/**
* $Log: XMLUni.hpp,v $
+ * Revision 1.6 2000/02/08 00:59:19 roddey
+ * Support for new intrinsic encoder for IBM-1047 code page.
+ *
* Revision 1.5 2000/02/06 07:48:06 rahulj
* Year 2K copyright swat.
*
@@ -234,6 +237,8 @@
static const XMLCh fgExceptDomain[];
static const XMLCh fgFixedString[];
static const XMLCh fgGlobalNSURIName[];
+ static const XMLCh fgIBM037EncodingString[];
+ static const XMLCh fgIBM1047EncodingString[];
static const XMLCh fgIESString[];
static const XMLCh fgIDString[];
static const XMLCh fgIDRefString[];