Re: int64 support - addendum

George Rhoten <[email protected]> Wed, 5 Nov 2003 10:09:49 -0800
Newsgroups gmane.comp.lib.icu.general
Message-ID <OF9DAC02AD.1375BDE6-ON86256DD5.0063A723-88256DD5.0063C741@us.ibm.com>
I can see the first two functions being useful.  Why is the third function 
being added?  I don't see much of an advantage to the third function over 
the first two functions.

George Rhoten
IBM Globalization Center of Competency/ICU  San José, CA, USA




Doug Felt <[email protected]>
Sent by: [email protected]
11/04/2003 07:14 PM
 
        To:     [email protected]
        cc: 
        Subject:        Re: int64 support - addendum


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
_______________________________________________
icu mailing list
[email protected]
http://oss.software.ibm.com/developerworks/oss/mailman/listinfo/icu