X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=inc%2FFBaseInt8.h;h=5984b974aed64bd546ee1e8eece74cb6ceadba93;hb=102d9124a6981de495cb23e8bd98c2de322960fb;hp=bfa88351f4aa2770764fd9db77cf81e4bc19eb6d;hpb=9b6148db4f423f7e83e07718ddecad61f5cd4364;p=platform%2Fframework%2Fnative%2Fappfw.git diff --git a/inc/FBaseInt8.h b/inc/FBaseInt8.h index bfa8835..5984b97 100644 --- a/inc/FBaseInt8.h +++ b/inc/FBaseInt8.h @@ -209,7 +209,6 @@ 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 * * @remarks This method accepts decimal, hexadecimal, and octal numbers given by the * following grammar: @@ -245,7 +244,6 @@ 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 byte 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 * * @remarks * - This method assumes that the string representing the numeric value uses a radix 10. @@ -268,25 +266,37 @@ 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 specified @c radix is invalid or - * The parsed value is not between VALUE_MIN and VALUE_MAX range. @b Since: @b 3.0 * * @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, char& ret); /** - * Gets the @c signed @c char equivalent of the current instance of %Int8. + * Gets the @c char equivalent of the current instance of %Int8. * * @since 2.0 * @brief [Deprecated] + * * @deprecated This class is deprecated because char is treated as unsigned char in ARM architecture. Use Integer8 class. + * 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 The @c char equivalent of the current instance * - * @return The @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 %Int8. + * + * @since 3.0 + * + * @return The @c int8_t equivalent of the current instance + * @remarks This method always returns 0. Use Integer8::ToInt8() to get the @int8_t + */ + virtual int8_t ToInt8(void) const; + + /** * Gets the @c signed @c short equivalent of the current instance of %Int8. * * @since 2.0 @@ -384,7 +394,7 @@ public: * @deprecated This class is deprecated because char is treated as unsigned char in ARM architecture. Use Integer8 class. * */ - static const char VALUE_MAX = (signed char) 0x7F; + static const char VALUE_MAX = static_cast< signed char >(0x7F); /** * A constant holding the minimum value of type @c char. @n @@ -395,7 +405,7 @@ public: * @deprecated This class is deprecated because char is treated as unsigned char in ARM architecture. Use Integer8 class. * */ - static const char VALUE_MIN = (signed char) 0x80; + static const char VALUE_MIN = static_cast< signed char >(0x80); /** * A @c signed @c char value of this instance.