Re: int64 support - addendum

Doug Felt <[email protected]> Tue, 4 Nov 2003 19:14:58 -0800 (PST)
Newsgroups gmane.comp.lib.icu.general
Message-ID <[email protected]>
A few corrections to my previous post on this topic...  These affect
Formattable only.

String results set to bogus, not unchanged or undefined as in previous version.

    /**
     * Gets the string value of this object.
     * @param result    Output param to receive the Date value of this object.
     * @param status    the error code.  If the type is not a string, status
     * is set to U_INVALID_FORMAT_ERROR and the result is set to bogus.
     * @return          A reference to 'result'.
     * @draft ICU 2.8
     */ 
    UnicodeString&  getString(UnicodeString& result, UErrorCode* status) const;

    /**
     * Gets a const reference to the string value of this object.
     * @param status    the error code.  If the type is not a string, status
     * is set to U_INVALID_FORMAT_ERROR and the result is a bogus string.
     * @return   a const reference to the string value of this object.
     * @draft ICU 2.8
     */
    const UnicodeString& getString(UErrorCode* status) const;

    /**
     * Gets a reference to the string value of this object.
     * @param status    the error code.  If the type is not a string, status
     * is set to U_INVALID_FORMAT_ERROR and the result is a bogus string.
     * @return   a reference to the string value of this object.
     * @draft ICU 2.8
     */
    UnicodeString& getString(UErrorCode* status);

--- forgot to include the actual API in previous message (thanks Markus!) ---

    /**
     * Gets the array value and count of this object.
     * @param count    fill-in with the count of this object.
     * @param status the error code.  If the type is not an array, status
     * is set to U_INVALID_FORMAT_ERROR, count is set to 0, and the result is
NULL.
     * @return         the array value of this object.
     * @draft ICU 2.8
     */ 
    const Formattable* getArray(int32_t& count, UErrorCode* status) const;


__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree