X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=inc%2FFBaseNumber.h;h=0e161935138557b8dcccc0333b0cd6f5fcdd7664;hb=07a771d39ebf4c7f26a04aeb3e06f9d7eb1c6dc2;hp=df41931c50ba75886868cbbc7ee3ff81c4274b82;hpb=8f5f7c07039d34a2f4ccb9836ace7f7e0d54d08a;p=platform%2Fframework%2Fnative%2Fappfw.git diff --git a/inc/FBaseNumber.h b/inc/FBaseNumber.h index df41931..0e16193 100644 --- a/inc/FBaseNumber.h +++ b/inc/FBaseNumber.h @@ -75,11 +75,16 @@ public: virtual ~Number(void) { }; /** - * Gets the @c signed @c char equivalent of the current instance of the %Number class. + * Gets the @c char equivalent of the current instance of the %Number class. * * @since 2.0 + * @brief [Deprecated] * - * @return The @c signed @c char equivalent of the current instance + * @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 The @c char equivalent of the current instance */ virtual char ToChar(void) const = 0; @@ -146,6 +151,18 @@ public: */ virtual String ToString(void) const = 0; + /** + * Gets the @c int8_t equivalent of the current instance of the %Number class. + * + * @since 3.0 + * + * @return The @c int8_t equivalent of the current instance + */ + virtual int8_t ToInt8(void) const + { + return 0; + } + protected: // // This method is for internal use only. Using this method can cause behavioral, security-related, @@ -156,15 +173,6 @@ protected: // virtual void Number_Reserved1(void) { } - // - // This method is for internal use only. Using this method can cause behavioral, security-related, - // and consistency-related issues in the application. - // This method is reserved and may change its name at any time without prior notice. - // - // @since 2.0 - // - virtual void Number_Reserved2(void) { } - }; // Number }} // Tizen::Base