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/04/17 22:18:09 UTC

cvs commit: xml-xerces/c/tests/ThreadTest ThreadTest.cpp

tng         02/04/17 13:18:08

  Modified:    c/samples/DOMCount DOMCount.cpp
               c/samples/DOMPrint DOMPrint.cpp
               c/samples/EnumVal EnumVal.cpp
               c/samples/IDOMCount IDOMCount.cpp
               c/samples/IDOMPrint IDOMPrint.cpp
               c/samples/PParse PParse.cpp
               c/samples/SAX2Print SAX2Print.cpp
               c/samples/SAXPrint SAXPrint.cpp
               c/samples/SEnumVal SEnumVal.cpp
               c/tests/EncodingTest EncodingTest.cpp
               c/tests/InitTermTest InitTermTest.cpp
               c/tests/ThreadTest ThreadTest.cpp
  Log:
  [Bug 7493] The word "occured" is misspelled and it is a global error.
  
  Revision  Changes    Path
  1.23      +2 -2      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.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- DOMCount.cpp	1 Feb 2002 22:35:01 -0000	1.22
  +++ DOMCount.cpp	17 Apr 2002 20:18:08 -0000	1.23
  @@ -55,7 +55,7 @@
    */
   
   /*
  - * $Id: DOMCount.cpp,v 1.22 2002/02/01 22:35:01 peiyongz Exp $
  + * $Id: DOMCount.cpp,v 1.23 2002/04/17 20:18:08 tng Exp $
    */
   
   // ---------------------------------------------------------------------------
  @@ -284,7 +284,7 @@
           //
           if (errorHandler.getSawErrors())
           {
  -            cout << "\nErrors occured, no output available\n" << endl;
  +            cout << "\nErrors occurred, no output available\n" << endl;
               errorOccurred = true;
           }
            else
  
  
  
  1.37      +4 -4      xml-xerces/c/samples/DOMPrint/DOMPrint.cpp
  
  Index: DOMPrint.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/samples/DOMPrint/DOMPrint.cpp,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- DOMPrint.cpp	1 Feb 2002 22:35:33 -0000	1.36
  +++ DOMPrint.cpp	17 Apr 2002 20:18:08 -0000	1.37
  @@ -55,7 +55,7 @@
    */
   
   /*
  - * $Id: DOMPrint.cpp,v 1.36 2002/02/01 22:35:33 peiyongz Exp $
  + * $Id: DOMPrint.cpp,v 1.37 2002/04/17 20:18:08 tng Exp $
    */
   
   
  @@ -457,7 +457,7 @@
   
       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 @@
   
       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;
       }
   
  
  
  
  1.17      +4 -1      xml-xerces/c/samples/EnumVal/EnumVal.cpp
  
  Index: EnumVal.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/samples/EnumVal/EnumVal.cpp,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- EnumVal.cpp	1 Feb 2002 22:35:51 -0000	1.16
  +++ EnumVal.cpp	17 Apr 2002 20:18:08 -0000	1.17
  @@ -56,6 +56,9 @@
   
   /*
    * $Log: EnumVal.cpp,v $
  + * 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 @@
           }
       }
       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.
  
  
  
  1.17      +3 -3      xml-xerces/c/samples/IDOMCount/IDOMCount.cpp
  
  Index: IDOMCount.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/samples/IDOMCount/IDOMCount.cpp,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- IDOMCount.cpp	27 Mar 2002 18:03:43 -0000	1.16
  +++ IDOMCount.cpp	17 Apr 2002 20:18:08 -0000	1.17
  @@ -55,7 +55,7 @@
    */
   
   /*
  - * $Id: IDOMCount.cpp,v 1.16 2002/03/27 18:03:43 tng Exp $
  + * $Id: IDOMCount.cpp,v 1.17 2002/04/17 20:18:08 tng Exp $
    */
   
   // ---------------------------------------------------------------------------
  @@ -315,7 +315,7 @@
           //
           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 @@
                   // 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;
                   }
               }
  
  
  
  1.8       +4 -4      xml-xerces/c/samples/IDOMPrint/IDOMPrint.cpp
  
  Index: IDOMPrint.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/samples/IDOMPrint/IDOMPrint.cpp,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- IDOMPrint.cpp	1 Feb 2002 22:36:42 -0000	1.7
  +++ IDOMPrint.cpp	17 Apr 2002 20:18:08 -0000	1.8
  @@ -55,7 +55,7 @@
    */
   
   /*
  - * $Id: IDOMPrint.cpp,v 1.7 2002/02/01 22:36:42 peiyongz Exp $
  + * $Id: IDOMPrint.cpp,v 1.8 2002/04/17 20:18:08 tng Exp $
    */
   
   
  @@ -450,7 +450,7 @@
   
       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 @@
   
       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;
       }
   
  
  
  
  1.14      +4 -1      xml-xerces/c/samples/PParse/PParse.cpp
  
  Index: PParse.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/samples/PParse/PParse.cpp,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- PParse.cpp	1 Feb 2002 22:37:38 -0000	1.13
  +++ PParse.cpp	17 Apr 2002 20:18:08 -0000	1.14
  @@ -56,6 +56,9 @@
   
   /*
    * $Log: PParse.cpp,v $
  + * 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 @@
   
       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;
  
  
  
  1.10      +4 -1      xml-xerces/c/samples/SAX2Print/SAX2Print.cpp
  
  Index: SAX2Print.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/samples/SAX2Print/SAX2Print.cpp,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- SAX2Print.cpp	13 Feb 2002 16:11:06 -0000	1.9
  +++ SAX2Print.cpp	17 Apr 2002 20:18:08 -0000	1.10
  @@ -56,6 +56,9 @@
   
   /*
    * $Log: SAX2Print.cpp,v $
  + * 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 @@
   
       catch (const XMLException& toCatch)
       {
  -        cerr << "\nAn error occured\n  Error: "
  +        cerr << "\nAn error occurred\n  Error: "
                << StrX(toCatch.getMessage())
                << "\n" << endl;
           XMLPlatformUtils::Terminate();
  
  
  
  1.20      +4 -1      xml-xerces/c/samples/SAXPrint/SAXPrint.cpp
  
  Index: SAXPrint.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/samples/SAXPrint/SAXPrint.cpp,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- SAXPrint.cpp	1 Feb 2002 22:41:17 -0000	1.19
  +++ SAXPrint.cpp	17 Apr 2002 20:18:08 -0000	1.20
  @@ -56,6 +56,9 @@
   
   /*
    * $Log: SAXPrint.cpp,v $
  + * 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 @@
   
       catch (const XMLException& toCatch)
       {
  -        cerr << "\nAn error occured\n  Error: "
  +        cerr << "\nAn error occurred\n  Error: "
                << StrX(toCatch.getMessage())
                << "\n" << endl;
           XMLPlatformUtils::Terminate();
  
  
  
  1.9       +5 -2      xml-xerces/c/samples/SEnumVal/SEnumVal.cpp
  
  Index: SEnumVal.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/samples/SEnumVal/SEnumVal.cpp,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- SEnumVal.cpp	20 Feb 2002 20:30:11 -0000	1.8
  +++ SEnumVal.cpp	17 Apr 2002 20:18:08 -0000	1.9
  @@ -55,8 +55,11 @@
    */
   
   /*
  - * $Id: SEnumVal.cpp,v 1.8 2002/02/20 20:30:11 peiyongz Exp $
  + * $Id: SEnumVal.cpp,v 1.9 2002/04/17 20:18:08 tng Exp $
    * $Log: SEnumVal.cpp,v $
  + * 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 @@
   
       if (parser.getErrorCount())
   	{
  -        cout << "\nErrors occured, no output available\n" << endl;
  +        cout << "\nErrors occurred, no output available\n" << endl;
   		return;
   	}
   
  
  
  
  1.6       +1 -1      xml-xerces/c/tests/EncodingTest/EncodingTest.cpp
  
  Index: EncodingTest.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/tests/EncodingTest/EncodingTest.cpp,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- EncodingTest.cpp	1 Feb 2002 22:44:04 -0000	1.5
  +++ EncodingTest.cpp	17 Apr 2002 20:18:08 -0000	1.6
  @@ -147,7 +147,7 @@
   
       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.
  
  
  
  1.4       +2 -2      xml-xerces/c/tests/InitTermTest/InitTermTest.cpp
  
  Index: InitTermTest.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/tests/InitTermTest/InitTermTest.cpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- InitTermTest.cpp	5 Feb 2002 13:26:09 -0000	1.3
  +++ InitTermTest.cpp	17 Apr 2002 20:18:08 -0000	1.4
  @@ -55,7 +55,7 @@
    */
   
   /*
  - * $Id: InitTermTest.cpp,v 1.3 2002/02/05 13:26:09 tng Exp $
  + * $Id: InitTermTest.cpp,v 1.4 2002/04/17 20:18:08 tng Exp $
    */
   
   // ---------------------------------------------------------------------------
  @@ -188,7 +188,7 @@
                                                                     \
       if (errorHandler.getSawErrors())                              \
       {                                                             \
  -        cout << "\nErrors occured, no output available\n" << endl;\
  +        cout << "\nErrors occurred, no output available\n" << endl;\
           errorOccurred = true;                                     \
       }                                                             \
                                                                     \
  
  
  
  1.20      +3 -3      xml-xerces/c/tests/ThreadTest/ThreadTest.cpp
  
  Index: ThreadTest.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/tests/ThreadTest/ThreadTest.cpp,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- ThreadTest.cpp	26 Feb 2002 21:29:27 -0000	1.19
  +++ ThreadTest.cpp	17 Apr 2002 20:18:08 -0000	1.20
  @@ -55,7 +55,7 @@
    */
   
   /*
  - * $Id: ThreadTest.cpp,v 1.19 2002/02/26 21:29:27 tng Exp $
  + * $Id: ThreadTest.cpp,v 1.20 2002/04/17 20:18:08 tng Exp $
    *
    * @author Andy Heninger, IBM
    */
  @@ -302,7 +302,7 @@
       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 @@
   
           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;
           };
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org