]> granicus.if.org Git - icu/commitdiff
ICU-7400 Fix incorrect API docs on several 'void parse()' functions.
authorAndy Heninger <andy.heninger@gmail.com>
Mon, 8 Oct 2012 22:41:13 +0000 (22:41 +0000)
committerAndy Heninger <andy.heninger@gmail.com>
Mon, 8 Oct 2012 22:41:13 +0000 (22:41 +0000)
X-SVN-Rev: 32561

icu4c/source/i18n/unicode/datefmt.h
icu4c/source/i18n/unicode/numfmt.h
icu4c/source/i18n/unicode/smpdtfmt.h

index 6f503cecac085c26d8912a74addf5f21391c1284..14f40e35ba033dfe6b8834171d4d73a50ab2155d 100644 (file)
@@ -507,9 +507,6 @@ public:
      *                  last character successfully parsed. If the
      *                  source is not parsed successfully, this param
      *                  will remain unchanged.
-     * @return          A newly created Formattable* object, or NULL
-     *                  on failure.  The caller owns this and should
-     *                  delete it when done.
      * @stable ICU 2.0
      */
     virtual void parseObject(const UnicodeString& source,
index 240983cc1b291b22941cfe39b50dd7a25d0e04b4..522e390bf2c74ac273d69a8d38b156c82f9a5a5b 100644 (file)
@@ -543,8 +543,6 @@ public:
     * @param parsePosition  The position to start parsing at on input.
     *                       On output, moved to after the last successfully
     *                       parse character. On parse failure, does not change.
-    * @return               A Formattable object of numeric type.  The caller
-    *                       owns this an must delete it.  NULL on failure.
     * @stable ICU 2.0
     */
     virtual void parse(const UnicodeString& text,
@@ -561,14 +559,12 @@ public:
      *                      If parse fails, return contents are undefined.
      * @param status        Output parameter set to a failure error code
      *                      when a failure occurs.
-     * @return              A Formattable object of numeric type.  The caller
-     *                      owns this an must delete it.  NULL on failure.
      * @see                 NumberFormat::isParseIntegerOnly
      * @stable ICU 2.0
      */
-    virtual void parse( const UnicodeString& text,
-                        Formattable& result,
-                        UErrorCode& status) const;
+    virtual void parse(const UnicodeString& text,
+                       Formattable& result,
+                       UErrorCode& status) const;
 
 /* Cannot use #ifndef U_HIDE_DRAFT_API for the following draft method since it is virtual */
     /**
index c29e42fae60dc8b677808bc316995ccd48c8e991..170dbebbc9afdf41bb0ca59a7b0aa872ac50042f 100644 (file)
@@ -551,7 +551,6 @@ public:
      * @param pos   On input, the position at which to start parsing; on
      *              output, the position at which parsing terminated, or the
      *              start position if the parse failed.
-     * @return      A valid UDate if the input could be parsed.
      * @stable ICU 2.1
      */
     virtual void parse( const UnicodeString& text,