From ac8acf187880e53362d0512772a9aa562716a6c9 Mon Sep 17 00:00:00 2001
From: Tinny Ng <tng@apache.org>
Date: Wed, 17 Apr 2002 20:18:08 +0000
Subject: [PATCH] [Bug 7493] The word "occured" is misspelled and it is a
 global error.

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@173634 13f79535-47bb-0310-9956-ffa450edef68
---
 samples/DOMCount/DOMCount.cpp       | 2 +-
 samples/DOMPrint/DOMPrint.cpp       | 6 +++---
 samples/EnumVal/EnumVal.cpp         | 5 ++++-
 samples/IDOMCount/IDOMCount.cpp     | 4 ++--
 samples/IDOMPrint/IDOMPrint.cpp     | 6 +++---
 samples/PParse/PParse.cpp           | 5 ++++-
 samples/SAX2Print/SAX2Print.cpp     | 5 ++++-
 samples/SAXPrint/SAXPrint.cpp       | 5 ++++-
 samples/SEnumVal/SEnumVal.cpp       | 5 ++++-
 tests/EncodingTest/EncodingTest.cpp | 2 +-
 tests/InitTermTest/InitTermTest.cpp | 2 +-
 tests/ThreadTest/ThreadTest.cpp     | 4 ++--
 12 files changed, 33 insertions(+), 18 deletions(-)

diff --git a/samples/DOMCount/DOMCount.cpp b/samples/DOMCount/DOMCount.cpp
index 80834df30..b7b69a03a 100644
--- a/samples/DOMCount/DOMCount.cpp
+++ b/samples/DOMCount/DOMCount.cpp
@@ -284,7 +284,7 @@ int main(int argC, char* argV[])
         //
         if (errorHandler.getSawErrors())
         {
-            cout << "\nErrors occured, no output available\n" << endl;
+            cout << "\nErrors occurred, no output available\n" << endl;
             errorOccurred = true;
         }
          else
diff --git a/samples/DOMPrint/DOMPrint.cpp b/samples/DOMPrint/DOMPrint.cpp
index e7102c380..23feb2729 100644
--- a/samples/DOMPrint/DOMPrint.cpp
+++ b/samples/DOMPrint/DOMPrint.cpp
@@ -457,7 +457,7 @@ int main(int argC, char* argV[])
 
     catch (const XMLException& e)
     {
-        cerr << "An error occured during parsing\n   Message: "
+        cerr << "An error occurred during parsing\n   Message: "
              << DOMString(e.getMessage()) << endl;
         errorsOccured = true;
     }
@@ -465,14 +465,14 @@ int main(int argC, char* argV[])
 
     catch (const DOM_DOMException& e)
     {
-       cerr << "A DOM error occured during parsing\n   DOMException code: "
+       cerr << "A DOM error occurred during parsing\n   DOMException code: "
              << e.code << endl;
         errorsOccured = true;
     }
 
     catch (...)
     {
-        cerr << "An error occured during parsing\n " << endl;
+        cerr << "An error occurred during parsing\n " << endl;
         errorsOccured = true;
     }
 
diff --git a/samples/EnumVal/EnumVal.cpp b/samples/EnumVal/EnumVal.cpp
index f4524dbc1..d0abcc387 100644
--- a/samples/EnumVal/EnumVal.cpp
+++ b/samples/EnumVal/EnumVal.cpp
@@ -56,6 +56,9 @@
 
 /*
  * $Log$
+ * Revision 1.17  2002/04/17 20:18:08  tng
+ * [Bug 7493] The word "occured" is misspelled and it is a global error.
+ *
  * Revision 1.16  2002/02/01 22:35:51  peiyongz
  * sane_include
  *
@@ -339,7 +342,7 @@ int main(int argC, char* argV[])
         }
     }
     else
-        cout << "\nErrors occured, no output available\n" << endl;
+        cout << "\nErrors occurred, no output available\n" << endl;
 
     //
     //  Delete the parser itself.  Must be done prior to calling Terminate, below.
diff --git a/samples/IDOMCount/IDOMCount.cpp b/samples/IDOMCount/IDOMCount.cpp
index 7503135e0..c776dc30c 100644
--- a/samples/IDOMCount/IDOMCount.cpp
+++ b/samples/IDOMCount/IDOMCount.cpp
@@ -315,7 +315,7 @@ int main(int argC, char* argV[])
         //
         if (errorHandler.getSawErrors())
         {
-            cout << "\nErrors occured, no output available\n" << endl;
+            cout << "\nErrors occurred, no output available\n" << endl;
             errorOccurred = true;
         }
          else
@@ -327,7 +327,7 @@ int main(int argC, char* argV[])
                 // test getElementsByTagName and getLength
                 XMLCh xa[] = {chAsterisk, chNull};
                 if (elementCount != doc->getElementsByTagName(xa)->getLength()) {
-                    cout << "\nErrors occured, element count is wrong\n" << endl;
+                    cout << "\nErrors occurred, element count is wrong\n" << endl;
                     errorOccurred = true;
                 }
             }
diff --git a/samples/IDOMPrint/IDOMPrint.cpp b/samples/IDOMPrint/IDOMPrint.cpp
index 1ac62edbd..74aa4fda6 100644
--- a/samples/IDOMPrint/IDOMPrint.cpp
+++ b/samples/IDOMPrint/IDOMPrint.cpp
@@ -450,7 +450,7 @@ int main(int argC, char* argV[])
 
     catch (const XMLException& e)
     {
-        cerr << "An error occured during parsing\n   Message: "
+        cerr << "An error occurred during parsing\n   Message: "
              << StrX(e.getMessage()) << endl;
         errorsOccured = true;
     }
@@ -458,14 +458,14 @@ int main(int argC, char* argV[])
 
     catch (const IDOM_DOMException& e)
     {
-       cerr << "A DOM error occured during parsing\n   DOMException code: "
+       cerr << "A DOM error occurred during parsing\n   DOMException code: "
              << e.code << endl;
         errorsOccured = true;
     }
 
     catch (...)
     {
-        cerr << "An error occured during parsing\n " << endl;
+        cerr << "An error occurred during parsing\n " << endl;
         errorsOccured = true;
     }
 
diff --git a/samples/PParse/PParse.cpp b/samples/PParse/PParse.cpp
index 5daa87fc2..e9e6ebdb6 100644
--- a/samples/PParse/PParse.cpp
+++ b/samples/PParse/PParse.cpp
@@ -56,6 +56,9 @@
 
 /*
  * $Log$
+ * Revision 1.14  2002/04/17 20:18:08  tng
+ * [Bug 7493] The word "occured" is misspelled and it is a global error.
+ *
  * Revision 1.13  2002/02/01 22:37:38  peiyongz
  * sane_include
  *
@@ -341,7 +344,7 @@ int main(int argC, char* argV[])
 
     catch (const XMLException& toCatch)
     {
-        cerr << "\nAn error occured: '" << xmlFile << "'\n"
+        cerr << "\nAn error occurred: '" << xmlFile << "'\n"
              << "Exception message is: \n"
              << StrX(toCatch.getMessage())
              << "\n" << endl;
diff --git a/samples/SAX2Print/SAX2Print.cpp b/samples/SAX2Print/SAX2Print.cpp
index 91700e9f6..873061f28 100644
--- a/samples/SAX2Print/SAX2Print.cpp
+++ b/samples/SAX2Print/SAX2Print.cpp
@@ -56,6 +56,9 @@
 
 /*
  * $Log$
+ * Revision 1.10  2002/04/17 20:18:08  tng
+ * [Bug 7493] The word "occured" is misspelled and it is a global error.
+ *
  * Revision 1.9  2002/02/13 16:11:06  knoaman
  * Update samples to use SAX2 features/properties constants from XMLUni.
  *
@@ -325,7 +328,7 @@ int main(int argC, char* argV[])
 
     catch (const XMLException& toCatch)
     {
-        cerr << "\nAn error occured\n  Error: "
+        cerr << "\nAn error occurred\n  Error: "
              << StrX(toCatch.getMessage())
              << "\n" << endl;
         XMLPlatformUtils::Terminate();
diff --git a/samples/SAXPrint/SAXPrint.cpp b/samples/SAXPrint/SAXPrint.cpp
index fe92b74c5..1e00f8cc9 100644
--- a/samples/SAXPrint/SAXPrint.cpp
+++ b/samples/SAXPrint/SAXPrint.cpp
@@ -56,6 +56,9 @@
 
 /*
  * $Log$
+ * Revision 1.20  2002/04/17 20:18:08  tng
+ * [Bug 7493] The word "occured" is misspelled and it is a global error.
+ *
  * Revision 1.19  2002/02/01 22:41:17  peiyongz
  * sane_include
  *
@@ -344,7 +347,7 @@ int main(int argC, char* argV[])
 
     catch (const XMLException& toCatch)
     {
-        cerr << "\nAn error occured\n  Error: "
+        cerr << "\nAn error occurred\n  Error: "
              << StrX(toCatch.getMessage())
              << "\n" << endl;
         XMLPlatformUtils::Terminate();
diff --git a/samples/SEnumVal/SEnumVal.cpp b/samples/SEnumVal/SEnumVal.cpp
index 461d161cf..e10da9acd 100644
--- a/samples/SEnumVal/SEnumVal.cpp
+++ b/samples/SEnumVal/SEnumVal.cpp
@@ -57,6 +57,9 @@
 /*
  * $Id$
  * $Log$
+ * Revision 1.9  2002/04/17 20:18:08  tng
+ * [Bug 7493] The word "occured" is misspelled and it is a global error.
+ *
  * Revision 1.8  2002/02/20 20:30:11  peiyongz
  * Make the code compilable on Solaris 2.6's CC
  *
@@ -227,7 +230,7 @@ void process(char* const xmlFile)
 
     if (parser.getErrorCount())
 	{
-        cout << "\nErrors occured, no output available\n" << endl;
+        cout << "\nErrors occurred, no output available\n" << endl;
 		return;
 	}
 
diff --git a/tests/EncodingTest/EncodingTest.cpp b/tests/EncodingTest/EncodingTest.cpp
index ff4034392..dec433925 100644
--- a/tests/EncodingTest/EncodingTest.cpp
+++ b/tests/EncodingTest/EncodingTest.cpp
@@ -147,7 +147,7 @@ static DOM_Document parseFile(char *fileName)
 
     catch (const XMLException& e )
     {
-		fprintf(stderr, "Exception Occured \"%s\".  \n",
+		fprintf(stderr, "Exception Occurred \"%s\".  \n",
 			XMLString::transcode(e.getMessage()));
 		fprintf(stderr, "File being parsed is \"%s\".\n", fileName);
         return DOM_Document();  // A null document.
diff --git a/tests/InitTermTest/InitTermTest.cpp b/tests/InitTermTest/InitTermTest.cpp
index d33164288..e4b9d10b7 100644
--- a/tests/InitTermTest/InitTermTest.cpp
+++ b/tests/InitTermTest/InitTermTest.cpp
@@ -188,7 +188,7 @@ int TestInit4SAX2(const char* xmlFile, bool gDoNamespaces, bool gDoSchema, bool
                                                                   \
     if (errorHandler.getSawErrors())                              \
     {                                                             \
-        cout << "\nErrors occured, no output available\n" << endl;\
+        cout << "\nErrors occurred, no output available\n" << endl;\
         errorOccurred = true;                                     \
     }                                                             \
                                                                   \
diff --git a/tests/ThreadTest/ThreadTest.cpp b/tests/ThreadTest/ThreadTest.cpp
index 084d1b0b0..74138d292 100644
--- a/tests/ThreadTest/ThreadTest.cpp
+++ b/tests/ThreadTest/ThreadTest.cpp
@@ -302,7 +302,7 @@ public:                               //  This is the API used by the rest of th
     int parse(int fileNum);           // Parse the specified file.  fileNum is an index
                                       //   into the gRunInfo.files array.
                                       //  return the XML checksum, or
-                                      //  0 if a parse error occured.
+                                      //  0 if a parse error occurred.
 
     int reCheck();                    // Try to compute the checksum again.
                                       //  for DOM, re-walk the tree.
@@ -1195,7 +1195,7 @@ int main (int argc, char **argv)
 
         if (cksum == 0)
         {
-            fprintf(stderr, "An error occured while initially parsing %s\n",
+            fprintf(stderr, "An error occurred while initially parsing %s\n",
                 fileName);
             errors = true;
         };
-- 
GitLab