dbertoni    2003/01/09 17:12:30

  Modified:    c/src/PlatformSupport XSLException.cpp XSLException.hpp
  Log:
  New overloads for defaultFormat().
  
  Revision  Changes    Path
  1.10      +13 -10    xml-xalan/c/src/PlatformSupport/XSLException.cpp
  
  Index: XSLException.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/XSLException.cpp,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- XSLException.cpp  21 Dec 2002 00:18:52 -0000      1.9
  +++ XSLException.cpp  10 Jan 2003 01:12:30 -0000      1.10
  @@ -181,19 +181,22 @@
   
   void
   XSLException::defaultFormat(
  -                     const XalanDOMString&   theMessage,
  -                     const XalanDOMString&   theURI,
  -                     size_type                               theLineNumber,
  -                     size_type                               theColumnNumber,
  -                     const XalanDOMString&   theType,
  -                     XalanDOMString&                 theBuffer)
  +                     const XalanDOMChar*                                     
theMessage,
  +                     const XalanDOMString::size_type         
theMessageLength,
  +                     const XalanDOMChar*                                     
theURI,
  +                     const XalanDOMString::size_type         theURILength,
  +                     size_type                                               
        theLineNumber,
  +                     size_type                                               
        theColumnNumber,
  +                     const XalanDOMChar*                                     
theType,
  +                     const XalanDOMString::size_type         theTypeLength,
  +                     XalanDOMString&                                         
theBuffer)
   {
  -     theBuffer += theType;
  -     theBuffer += colonString;
  -     theBuffer += theMessage;
  +     theBuffer.append(theType, theTypeLength);
  +     theBuffer.append(colonString);
  +     theBuffer.append(theMessage, theMessageLength);
        theBuffer += XalanDOMChar(XalanUnicode::charSpace);
        theBuffer += XalanDOMChar(XalanUnicode::charLeftParenthesis);
  -     theBuffer += theURI;
  +     theBuffer.append(theURI, theURILength);
        theBuffer += lineString;
        LongToDOMString(theLineNumber, theBuffer);
        theBuffer += columnString;
  
  
  
  1.13      +48 -1     xml-xalan/c/src/PlatformSupport/XSLException.hpp
  
  Index: XSLException.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/XSLException.hpp,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- XSLException.hpp  21 Dec 2002 00:18:52 -0000      1.12
  +++ XSLException.hpp  10 Jan 2003 01:12:30 -0000      1.13
  @@ -192,7 +192,54 @@
                        size_type                               theLineNumber,
                        size_type                               theColumnNumber,
                        const XalanDOMString&   theType,
  -                     XalanDOMString&                 theBuffer);
  +                     XalanDOMString&                 theBuffer)
  +     {
  +             defaultFormat(
  +                     theMessage.c_str(),
  +                     theMessage.size(),
  +                     theURI.c_str(),
  +                     theURI.size(),
  +                     theLineNumber,
  +                     theColumnNumber,
  +                     theType.c_str(),
  +                     theType.size(),
  +                     theBuffer);
  +     }
  +
  +     static void
  +     defaultFormat(
  +                     const XalanDOMChar*                                     
theMessage,
  +                     const XalanDOMChar*                                     
theURI,
  +                     size_type                                               
        theLineNumber,
  +                     size_type                                               
        theColumnNumber,
  +                     const XalanDOMChar*                                     
theType,
  +                     XalanDOMString&                                         
theBuffer)
  +     {
  +             assert(theMessage != 0 && theURI != 0 && theType != 0);
  +
  +             defaultFormat(
  +                     theMessage,
  +                     XalanDOMString::length(theMessage),
  +                     theURI,
  +                     XalanDOMString::length(theURI),
  +                     theLineNumber,
  +                     theColumnNumber,
  +                     theType,
  +                     XalanDOMString::length(theType),
  +                     theBuffer);
  +     }
  +
  +     static void
  +     defaultFormat(
  +                     const XalanDOMChar*                                     
theMessage,
  +                     const XalanDOMString::size_type         
theMessageLength,
  +                     const XalanDOMChar*                                     
theURI,
  +                     const XalanDOMString::size_type         theURILength,
  +                     size_type                                               
        theLineNumber,
  +                     size_type                                               
        theColumnNumber,
  +                     const XalanDOMChar*                                     
theType,
  +                     const XalanDOMString::size_type         theTypeLength,
  +                     XalanDOMString&                                         
theBuffer);
   
   private:
        
  
  
  

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

Reply via email to