peiyongz    2004/01/06 10:13:59

  Modified:    c/src/xercesc/validators/datatype UnionDatatypeValidator.cpp
                        ListDatatypeValidator.cpp
                        FloatDatatypeValidator.cpp
                        DoubleDatatypeValidator.cpp
                        DecimalDatatypeValidator.cpp DateTimeValidator.cpp
                        BooleanDatatypeValidator.cpp
                        AbstractStringValidator.cpp
  Log:
  using the no-exception-thrown ctor
  
  Revision  Changes    Path
  1.23      +8 -2      
xml-xerces/c/src/xercesc/validators/datatype/UnionDatatypeValidator.cpp
  
  Index: UnionDatatypeValidator.cpp
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/c/src/xercesc/validators/datatype/UnionDatatypeValidator.cpp,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- UnionDatatypeValidator.cpp        23 Dec 2003 21:50:36 -0000      1.22
  +++ UnionDatatypeValidator.cpp        6 Jan 2004 18:13:59 -0000       1.23
  @@ -57,6 +57,9 @@
   /*
    * $Id$
    * $Log$
  + * Revision 1.23  2004/01/06 18:13:59  peiyongz
  + * using the no-exception-thrown ctor
  + *
    * Revision 1.22  2003/12/23 21:50:36  peiyongz
    * Absorb exception thrown in getCanonicalRepresentation and return 0,
    * only validate when required
  @@ -407,7 +410,9 @@
           if (getRegex() == 0)
           {
               try {
  -                setRegex(new (fMemoryManager) RegularExpression(getPattern(), 
SchemaSymbols::fgRegEx_XOption, fMemoryManager));
  +                RegularExpression* regEx = new (fMemoryManager) 
RegularExpression(fMemoryManager);
  +                regEx->setPattern(getPattern(), SchemaSymbols::fgRegEx_XOption);
  +                setRegex(regEx);
               }
               catch (XMLException &e)
               {
  
  
  
  1.19      +8 -3      
xml-xerces/c/src/xercesc/validators/datatype/ListDatatypeValidator.cpp
  
  Index: ListDatatypeValidator.cpp
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/c/src/xercesc/validators/datatype/ListDatatypeValidator.cpp,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- ListDatatypeValidator.cpp 31 Dec 2003 02:34:41 -0000      1.18
  +++ ListDatatypeValidator.cpp 6 Jan 2004 18:13:59 -0000       1.19
  @@ -57,6 +57,9 @@
   /*
    * $Id$
    * $Log$
  + * Revision 1.19  2004/01/06 18:13:59  peiyongz
  + * using the no-exception-thrown ctor
  + *
    * Revision 1.18  2003/12/31 02:34:41  neilg
    * fix one more buffer overrun, affecting boolean lists
    *
  @@ -279,7 +282,9 @@
           if (getRegex() == 0)
           {
               try {
  -                setRegex(new (fMemoryManager) RegularExpression(getPattern(), 
SchemaSymbols::fgRegEx_XOption, fMemoryManager));
  +                RegularExpression* regEx = new (fMemoryManager) 
RegularExpression(fMemoryManager);
  +                regEx->setPattern(getPattern(), SchemaSymbols::fgRegEx_XOption);
  +                setRegex(regEx);
               }
               catch (XMLException &e)
               {
  
  
  
  1.13      +7 -2      
xml-xerces/c/src/xercesc/validators/datatype/FloatDatatypeValidator.cpp
  
  Index: FloatDatatypeValidator.cpp
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/c/src/xercesc/validators/datatype/FloatDatatypeValidator.cpp,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- FloatDatatypeValidator.cpp        3 Jan 2004 00:04:36 -0000       1.12
  +++ FloatDatatypeValidator.cpp        6 Jan 2004 18:13:59 -0000       1.13
  @@ -57,6 +57,9 @@
   /*
    * $Id$
    * $Log$
  + * Revision 1.13  2004/01/06 18:13:59  peiyongz
  + * using the no-exception-thrown ctor
  + *
    * Revision 1.12  2004/01/03 00:04:36  peiyongz
    * using ctor/parseContent to avoid exception thrown from ctor
    *
  @@ -292,7 +295,9 @@
           // lazy construction
           if (getRegex() ==0) {
               try {
  -                setRegex(new (fMemoryManager) RegularExpression(getPattern(), 
SchemaSymbols::fgRegEx_XOption, fMemoryManager));
  +                RegularExpression* regEx = new (fMemoryManager) 
RegularExpression(fMemoryManager);
  +                regEx->setPattern(getPattern(), SchemaSymbols::fgRegEx_XOption);
  +                setRegex(regEx);
               }
               catch (XMLException &e)
               {
  
  
  
  1.12      +7 -2      
xml-xerces/c/src/xercesc/validators/datatype/DoubleDatatypeValidator.cpp
  
  Index: DoubleDatatypeValidator.cpp
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/c/src/xercesc/validators/datatype/DoubleDatatypeValidator.cpp,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- DoubleDatatypeValidator.cpp       3 Jan 2004 00:04:36 -0000       1.11
  +++ DoubleDatatypeValidator.cpp       6 Jan 2004 18:13:59 -0000       1.12
  @@ -57,6 +57,9 @@
   /*
    * $Id$
    * $Log$
  + * Revision 1.12  2004/01/06 18:13:59  peiyongz
  + * using the no-exception-thrown ctor
  + *
    * Revision 1.11  2004/01/03 00:04:36  peiyongz
    * using ctor/parseContent to avoid exception thrown from ctor
    *
  @@ -288,7 +291,9 @@
           // lazy construction
           if (getRegex() ==0) {
               try {
  -                setRegex(new (fMemoryManager) RegularExpression(getPattern(), 
SchemaSymbols::fgRegEx_XOption, fMemoryManager));
  +                RegularExpression* regEx = new (fMemoryManager) 
RegularExpression(fMemoryManager);
  +                regEx->setPattern(getPattern(), SchemaSymbols::fgRegEx_XOption);
  +                setRegex(regEx);
               }
               catch (XMLException &e)
               {
  
  
  
  1.24      +7 -2      
xml-xerces/c/src/xercesc/validators/datatype/DecimalDatatypeValidator.cpp
  
  Index: DecimalDatatypeValidator.cpp
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/c/src/xercesc/validators/datatype/DecimalDatatypeValidator.cpp,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- DecimalDatatypeValidator.cpp      6 Jan 2004 04:42:53 -0000       1.23
  +++ DecimalDatatypeValidator.cpp      6 Jan 2004 18:13:59 -0000       1.24
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.24  2004/01/06 18:13:59  peiyongz
  + * using the no-exception-thrown ctor
  + *
    * Revision 1.23  2004/01/06 04:42:53  neilg
    * On some platforms, it is problematic to throw a different exception from inside 
the catch block of another exception
    *
  @@ -565,7 +568,9 @@
           if (getRegex() ==0) {
               try {
                   // REVISIT: cargillmem fMemoryManager vs manager
  -                setRegex(new (fMemoryManager) RegularExpression(getPattern(), 
SchemaSymbols::fgRegEx_XOption, fMemoryManager));
  +                RegularExpression* regEx = new (fMemoryManager) 
RegularExpression(fMemoryManager);
  +                regEx->setPattern(getPattern(), SchemaSymbols::fgRegEx_XOption);
  +                setRegex(regEx);
               }
               catch (XMLException &e)
               {
  
  
  
  1.14      +7 -2      
xml-xerces/c/src/xercesc/validators/datatype/DateTimeValidator.cpp
  
  Index: DateTimeValidator.cpp
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/c/src/xercesc/validators/datatype/DateTimeValidator.cpp,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- DateTimeValidator.cpp     19 Dec 2003 23:02:25 -0000      1.13
  +++ DateTimeValidator.cpp     6 Jan 2004 18:13:59 -0000       1.14
  @@ -57,6 +57,9 @@
   /*
    * $Id$
    * $Log$
  + * Revision 1.14  2004/01/06 18:13:59  peiyongz
  + * using the no-exception-thrown ctor
  + *
    * Revision 1.13  2003/12/19 23:02:25  cargilld
    * More memory management updates.
    *
  @@ -198,7 +201,9 @@
           // lazy construction
           if (getRegex() ==0) {
               try {
  -                setRegex(new (fMemoryManager) RegularExpression(getPattern(), 
SchemaSymbols::fgRegEx_XOption, fMemoryManager));
  +                RegularExpression* regEx = new (fMemoryManager) 
RegularExpression(fMemoryManager);
  +                regEx->setPattern(getPattern(), SchemaSymbols::fgRegEx_XOption);
  +                setRegex(regEx);
               }
               catch (XMLException &e)
               {
  
  
  
  1.14      +7 -1      
xml-xerces/c/src/xercesc/validators/datatype/BooleanDatatypeValidator.cpp
  
  Index: BooleanDatatypeValidator.cpp
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/c/src/xercesc/validators/datatype/BooleanDatatypeValidator.cpp,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- BooleanDatatypeValidator.cpp      23 Dec 2003 21:50:36 -0000      1.13
  +++ BooleanDatatypeValidator.cpp      6 Jan 2004 18:13:59 -0000       1.14
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.14  2004/01/06 18:13:59  peiyongz
  + * using the no-exception-thrown ctor
  + *
    * Revision 1.13  2003/12/23 21:50:36  peiyongz
    * Absorb exception thrown in getCanonicalRepresentation and return 0,
    * only validate when required
  @@ -208,7 +211,9 @@
           // lazy construction
           if (getRegex() ==0) {
               try {
  -                setRegex(new (fMemoryManager) RegularExpression(getPattern(), 
SchemaSymbols::fgRegEx_XOption, fMemoryManager));
  +                RegularExpression* regEx = new (fMemoryManager) 
RegularExpression(fMemoryManager);
  +                regEx->setPattern(getPattern(), SchemaSymbols::fgRegEx_XOption);
  +                setRegex(regEx);
               }
               catch (XMLException &e)
               {
  
  
  
  1.19      +6 -1      
xml-xerces/c/src/xercesc/validators/datatype/AbstractStringValidator.cpp
  
  Index: AbstractStringValidator.cpp
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/c/src/xercesc/validators/datatype/AbstractStringValidator.cpp,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- AbstractStringValidator.cpp       31 Dec 2003 10:38:00 -0000      1.18
  +++ AbstractStringValidator.cpp       6 Jan 2004 18:13:59 -0000       1.19
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.19  2004/01/06 18:13:59  peiyongz
  + * using the no-exception-thrown ctor
  + *
    * Revision 1.18  2003/12/31 10:38:00  amassari
    * Made virtual function checkAdditionalFacet 'const', so that it matches the 
declaration in a derived class
    *
  @@ -692,7 +695,9 @@
           if (getRegex() ==0) {
               try {
                   // REVISIT: cargillmem fMemoryManager or manager?
  -                setRegex(new (fMemoryManager) RegularExpression(getPattern(), 
SchemaSymbols::fgRegEx_XOption, fMemoryManager));
  +                RegularExpression* regEx = new (fMemoryManager) 
RegularExpression(fMemoryManager);
  +                regEx->setPattern(getPattern(), SchemaSymbols::fgRegEx_XOption);
  +                setRegex(regEx);
               }
               catch (XMLException &e)
               {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to