You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by bo...@apache.org on 2009/11/04 15:55:19 UTC

svn commit: r832764 - in /xerces/c/trunk/src/xercesc/util: Base64.hpp HexBin.hpp

Author: borisk
Date: Wed Nov  4 14:55:19 2009
New Revision: 832764

URL: http://svn.apache.org/viewvc?rev=832764&view=rev
Log:
Remove mentioning of XMLString::release (XERCESC-1847).

Modified:
    xerces/c/trunk/src/xercesc/util/Base64.hpp
    xerces/c/trunk/src/xercesc/util/HexBin.hpp

Modified: xerces/c/trunk/src/xercesc/util/Base64.hpp
URL: http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/util/Base64.hpp?rev=832764&r1=832763&r2=832764&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/util/Base64.hpp (original)
+++ xerces/c/trunk/src/xercesc/util/Base64.hpp Wed Nov  4 14:55:19 2009
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -54,10 +54,8 @@
      *
      * NOTE: The returned buffer is dynamically allocated and is the
      * responsibility of the caller to delete it when not longer needed.
-     * You can call XMLString::release to release this returned buffer.
-     *
-     * If a memory manager is provided, ask the memory manager to de-allocate
-     * the returned buffer.
+     * Use the memory manager to release the returned buffer or
+     * operator delete() if none was provided.
      *
      * @param inputData Binary data in XMLByte stream.
      * @param inputLength Length of the XMLByte stream.
@@ -65,7 +63,6 @@
      * @param memMgr client provided memory manager
      * @return Encoded Base64 data in XMLByte stream,
      *      or NULL if input data can not be encoded.
-     * @see   XMLString::release(XMLByte**)
      */
     static XMLByte* encode(const XMLByte* const inputData
                          , const XMLSize_t      inputLength
@@ -77,10 +74,8 @@
      *
      * NOTE: The returned buffer is dynamically allocated and is the
      * responsibility of the caller to delete it when not longer needed.
-     * You can call XMLString::release to release this returned buffer.
-     *
-     * If a memory manager is provided, ask the memory manager to de-allocate
-     * the returned buffer.
+     * Use the memory manager to release the returned buffer or
+     * operator delete() if none was provided.
      *
      * @param inputData Base64 data in XMLByte stream.
      * @param decodedLength Length of decoded XMLByte stream.
@@ -92,7 +87,6 @@
      *                between the quartets
      * @return Decoded binary data in XMLByte stream,
      *      or NULL if input data can not be decoded.
-     * @see   XMLString::release(XMLByte**)
      */
     static XMLByte* decode(
                            const XMLByte*        const   inputData
@@ -100,16 +94,14 @@
                          ,       MemoryManager*  const   memMgr = 0
                          ,       Conformance             conform = Conf_RFC2045
                           );
-  
+
    /**
      * Decodes Base64 data into octets
      *
      * NOTE: The returned buffer is dynamically allocated and is the
      * responsibility of the caller to delete it when not longer needed.
-     * You can call XMLString::release to release this returned buffer.
-     *
-     * If a memory manager is provided, ask the memory manager to de-allocate
-     * the returned buffer.
+     * Use the memory manager to release the returned buffer or
+     * operator delete() if none was provided.
      *
      * @param inputData Base64 data in XMLCh stream.
      * @param decodedLength Length of decoded XMLByte stream.
@@ -121,7 +113,6 @@
      *                between the quartets
      * @return Decoded binary data in XMLByte stream,
      *      or NULL if input data can not be decoded.
-     * @see   XMLString::release(XMLByte**)
      */
     static XMLByte* decodeToXMLByte(
                            const XMLCh*          const   inputData
@@ -154,7 +145,7 @@
      *
      * Caller is responsible for the proper deallcation
      * of the string returned.
-     * 
+     *
      * @param inputData A string containing the Base64
      * @param memMgr client provided memory manager
      * @param conform conformance specified

Modified: xerces/c/trunk/src/xercesc/util/HexBin.hpp
URL: http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/util/HexBin.hpp?rev=832764&r1=832763&r2=832764&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/util/HexBin.hpp (original)
+++ xerces/c/trunk/src/xercesc/util/HexBin.hpp Wed Nov  4 14:55:19 2009
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -58,12 +58,12 @@
      *
      * Caller is responsible for the proper deallcation
      * of the string returned.
-     * 
+     *
      * @param hexData A string containing the HexBinary
      * @param manager The MemoryManager to use to allocate the string
      *
      * return: the canonical representation of the HexBinary
-     *         if it is a valid HexBinary, 
+     *         if it is a valid HexBinary,
      *         0 otherwise
      */
 
@@ -78,16 +78,12 @@
      *
      * NOTE: The returned buffer is dynamically allocated and is the
      * responsibility of the caller to delete it when not longer needed.
-     * You can call XMLString::release to release this returned buffer.
-     *
-     * If a memory manager is provided, ask the memory manager to de-allocate
-     * the returned buffer.
+     * Use the memory manager to release the returned buffer.
      *
      * @param hexData HexBinary data in XMLCh stream.
      * @param manager client provided memory manager
      * @return Decoded binary data in XMLByte stream,
      *      or NULL if input data can not be decoded.
-     * @see   XMLString::release(XMLByte**)
      */
     static XMLByte* decodeToXMLByte(
                          const XMLCh*          const    hexData



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