X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=inc%2FFBaseInteger.h;h=d84f13bb2aece7fbcac8dd2b8b01c266b0e05076;hb=da138eabe122cca143c872cfae4bc3b99bc6e76b;hp=cb80b626a715e162027a42a97826926ebb56fff0;hpb=adf27ebe9e72fc8aaf59c71faa050ecf56a5c9f0;p=platform%2Fframework%2Fnative%2Fappfw.git diff --git a/inc/FBaseInteger.h b/inc/FBaseInteger.h index cb80b62..d84f13b 100644 --- a/inc/FBaseInteger.h +++ b/inc/FBaseInteger.h @@ -165,9 +165,11 @@ public: * @param[out] ret The result of the operation * @exception E_SUCCESS The method is successful. * @exception E_NUM_FORMAT The specified string does not contain a number that can be parsed. - * @exception E_OUT_OF_RANGE The decoded value is not between VALUE_MIN and VALUE_MAX range. @b Since: @b 3.0 + * @exception E_OUT_OF_RANGE The decoded value is not between VALUE_MIN and VALUE_MAX range. * - * @remarks This method accepts decimal, hexadecimal, and octal numbers given by the + * @remarks + * - This method guarantees that the original value of out-parameter is not changed when the method returns error. + * - This method accepts decimal, hexadecimal, and octal numbers given by the * following grammar: * @code * - DecodableString: @@ -214,7 +216,7 @@ public: * @param[out] ret The result of the operation * @exception E_SUCCESS The method is successful. * @exception E_NUM_FORMAT The specified string does not contain a number that can be parsed. - * @exception E_OUT_OF_RANGE The parsed value is not between VALUE_MIN and VALUE_MAX range. @b Since: @b 3.0 + * @exception E_OUT_OF_RANGE The parsed value is not between VALUE_MIN and VALUE_MAX range. * * @remarks * - This method assumes that the string representing the numeric value uses a radix 10. @@ -235,22 +237,38 @@ public: * @exception E_SUCCESS The method is successful. * @exception E_NUM_FORMAT The specified string does not contain a number that can be parsed. * @exception E_OUT_OF_RANGE The specified @c radix is invalid or - * The parsed value is not between VALUE_MIN and VALUE_MAX range. @b Since: @b 3.0 + * The parsed value is not between VALUE_MIN and VALUE_MAX range. * * @remarks This method guarantees that the original value of out-parameter is not changed when the method returns error. */ static result Parse(const String& s, int radix, int& ret); /** - * Gets the @c signed @c char equivalent of the current instance of the %Integer class. + * Gets the @c char equivalent of the current instance of the %Integer class. * * @since 2.0 + * @brief [Deprecated] + * + * @deprecated This method has portability issue. + * Return value may not be @c signed @c char since char is treated as unsigned char in ARM architecture. @n + * Use ToInt8() method to get @c int8_t + * + * @return A @c char equivalent of the current instance * - * @return A @c signed @c char equivalent of the current instance */ virtual char ToChar(void) const; /** + * Gets the @c int8_t equivalent of the current instance of %Integer. + * + * @since 3.0 + * + * @return The @c int8_t equivalent of the current instance + * + */ + virtual int8_t ToInt8(void) const; + + /** * Gets the @c signed @c short equivalent of the current instance of the %Integer class. * * @since 2.0 @@ -329,7 +347,7 @@ public: * * @since 2.0 */ - static const int VALUE_MAX = (int) 0x7FFFFFFF; + static const int VALUE_MAX = static_cast< int >(0x7FFFFFFF); /** * A constant holding the minimum value of type @c int. @n @@ -337,7 +355,7 @@ public: * * @since 2.0 */ - static const int VALUE_MIN = (int) 0x80000000; + static const int VALUE_MIN = static_cast< int >(0x80000000); /** * An integer value of this instance.