You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2002/08/12 06:00:40 UTC

cvs commit: xml-xalan/c/src/XSLT FunctionFormatNumber.cpp FunctionFormatNumber.hpp

dbertoni    2002/08/11 21:00:39

  Modified:    c/src/XSLT FunctionFormatNumber.cpp FunctionFormatNumber.hpp
  Log:
  New parameter to allow for supressing warnings.
  
  Revision  Changes    Path
  1.17      +7 -3      xml-xalan/c/src/XSLT/FunctionFormatNumber.cpp
  
  Index: FunctionFormatNumber.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/FunctionFormatNumber.cpp,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- FunctionFormatNumber.cpp	26 Nov 2001 23:26:16 -0000	1.16
  +++ FunctionFormatNumber.cpp	12 Aug 2002 04:00:39 -0000	1.17
  @@ -2,7 +2,7 @@
    * The Apache Software License, Version 1.1
    *
    *
  - * Copyright (c) 2000-2001 The Apache Software Foundation.  All rights 
  + * Copyright (c) 2000-2002 The Apache Software Foundation.  All rights 
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -187,7 +187,8 @@
   			const XalanDOMString&				thePattern,
   			const XalanDecimalFormatSymbols*	theDFS,
   			XalanDOMString&						theResult,
  -			const Locator*						locator) const
  +			const Locator*						locator,
  +			bool								fWarn) const
   {
   	if (DoubleSupport::isNaN(theNumber) == true)
   	{
  @@ -225,7 +226,10 @@
   	}
   	else
   	{
  -		executionContext.warn(s_warningNotImplementedString, context, locator);
  +		if (fWarn == true)
  +		{
  +			executionContext.warn(s_warningNotImplementedString, context, locator);
  +		}
   
   		if (theDFS != 0)
   		{
  
  
  
  1.11      +2 -1      xml-xalan/c/src/XSLT/FunctionFormatNumber.hpp
  
  Index: FunctionFormatNumber.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/FunctionFormatNumber.hpp,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- FunctionFormatNumber.hpp	14 Sep 2001 20:49:43 -0000	1.10
  +++ FunctionFormatNumber.hpp	12 Aug 2002 04:00:39 -0000	1.11
  @@ -145,7 +145,8 @@
   			const XalanDOMString&				thePattern,
   			const XalanDecimalFormatSymbols*	theDFS,
   			XalanDOMString&						theResult,
  -			const Locator*						locator) const;
  +			const Locator*						locator,
  +			bool								fWarn = true) const;
   
   private:
   
  
  
  

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