You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by tn...@apache.org on 2002/07/17 20:58:36 UTC
cvs commit: xml-xerces/c/samples/SAXCount SAXCount.cpp
tng 2002/07/17 11:58:36
Modified: c/samples/DOMCount DOMCount.cpp
c/samples/SAX2Count SAX2Count.cpp
c/samples/SAXCount SAXCount.cpp
Log:
samples update: for testing special encoding purpose.
Revision Changes Path
1.27 +9 -1 xml-xerces/c/samples/DOMCount/DOMCount.cpp
Index: DOMCount.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/samples/DOMCount/DOMCount.cpp,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- DOMCount.cpp 25 Jun 2002 16:21:56 -0000 1.26
+++ DOMCount.cpp 17 Jul 2002 18:58:35 -0000 1.27
@@ -212,6 +212,14 @@
{
doList = true;
}
+ else if (!strcmp(argV[argInd], "-special:nel"))
+ {
+ // turning this on will lead to non-standard compliance behaviour
+ // it will recognize the unicode character 0x85 as new line character
+ // instead of regular character as specified in XML 1.0
+ // do not turn this on unless really necessary
+ XMLPlatformUtils::recognizeNEL(true);
+ }
else
{
cerr << "Unknown option '" << argV[argInd]
1.18 +11 -0 xml-xerces/c/samples/SAX2Count/SAX2Count.cpp
Index: SAX2Count.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/samples/SAX2Count/SAX2Count.cpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- SAX2Count.cpp 17 Jun 2002 15:33:05 -0000 1.17
+++ SAX2Count.cpp 17 Jul 2002 18:58:35 -0000 1.18
@@ -56,6 +56,9 @@
/*
* $Log$
+* Revision 1.18 2002/07/17 18:58:35 tng
+* samples update: for testing special encoding purpose.
+*
* Revision 1.17 2002/06/17 15:33:05 tng
* Name Xerces features as XMLUni::fgXercesXXXX instead of XMLUni::fgSAX2XercesXXXX so that they can be shared with DOM parser.
*
@@ -238,6 +241,14 @@
|| !strcmp(argV[argInd], "-P"))
{
namespacePrefixes = true;
+ }
+ else if (!strcmp(argV[argInd], "-special:nel"))
+ {
+ // turning this on will lead to non-standard compliance behaviour
+ // it will recognize the unicode character 0x85 as new line character
+ // instead of regular character as specified in XML 1.0
+ // do not turn this on unless really necessary
+ XMLPlatformUtils::recognizeNEL(true);
}
else
{
1.21 +11 -0 xml-xerces/c/samples/SAXCount/SAXCount.cpp
Index: SAXCount.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/samples/SAXCount/SAXCount.cpp,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- SAXCount.cpp 13 Nov 2001 13:22:35 -0000 1.20
+++ SAXCount.cpp 17 Jul 2002 18:58:36 -0000 1.21
@@ -56,6 +56,9 @@
/*
* $Log$
+* Revision 1.21 2002/07/17 18:58:36 tng
+* samples update: for testing special encoding purpose.
+*
* Revision 1.20 2001/11/13 13:22:35 tng
* SAXCount fix: restore previous feature to accept multiple input files.
*
@@ -247,6 +250,14 @@
|| !strcmp(argV[argInd], "-L"))
{
doList = true;
+ }
+ else if (!strcmp(argV[argInd], "-special:nel"))
+ {
+ // turning this on will lead to non-standard compliance behaviour
+ // it will recognize the unicode character 0x85 as new line character
+ // instead of regular character as specified in XML 1.0
+ // do not turn this on unless really necessary
+ XMLPlatformUtils::recognizeNEL(true);
}
else
{
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org