peiyongz    2003/02/26 08:14:27

  Modified:    c/src/xercesc/validators/datatype
                        DatatypeValidatorFactory.cpp
  Log:
  Schema Errata E2-43: disallow trailing decimal point and a new pattern added
  to the Integer definition.
  
  Revision  Changes    Path
  1.12      +14 -0     
xml-xerces/c/src/xercesc/validators/datatype/DatatypeValidatorFactory.cpp
  
  Index: DatatypeValidatorFactory.cpp
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/c/src/xercesc/validators/datatype/DatatypeValidatorFactory.cpp,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- DatatypeValidatorFactory.cpp      29 Jan 2003 19:51:48 -0000      1.11
  +++ DatatypeValidatorFactory.cpp      26 Feb 2003 16:14:27 -0000      1.12
  @@ -56,6 +56,10 @@
   
   /*
    * $Log$
  + * Revision 1.12  2003/02/26 16:14:27  peiyongz
  + * Schema Errata E2-43: disallow trailing decimal point and a new pattern added
  + * to the Integer definition.
  + *
    * Revision 1.11  2003/01/29 19:51:48  gareth
    * type names / uris are now added to DatatypeValidators.
    *
  @@ -234,6 +238,14 @@
       chCloseCurly,  chCloseParen, chAsterisk, chNull
   };
   
  +//E2-43
  +//[+-]?[0-9]+
  +const XMLCh fgIntegerPattern[] =
  +{
  +    chOpenSquare,  chPlus,     chDash,  chCloseSquare, chQuestion,
  +    chOpenSquare,  chDigit_0,  chDash,  chDigit_9,     chCloseSquare, chPlus, chNull
  +};
  +
   //"\\i\\c*"
   const XMLCh fgNamePattern[] =
   {
  @@ -560,6 +572,9 @@
   
               facets->put((void*) SchemaSymbols::fgELT_FRACTIONDIGITS,
                           new KVStringPair(SchemaSymbols::fgELT_FRACTIONDIGITS, 
fgValueZero));
  +
  +            facets->put((void*) SchemaSymbols::fgELT_PATTERN,
  +                        new KVStringPair(SchemaSymbols::fgELT_PATTERN, 
fgIntegerPattern));
   
               createDatatypeValidator(SchemaSymbols::fgDT_INTEGER,
                             getDatatypeValidator(SchemaSymbols::fgDT_DECIMAL),
  
  
  

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

Reply via email to