X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fmarkup-processor-helper-functions.h;h=d6f65c1b36f3d935e02bec4040fb35c88f29bf88;hp=45f586c4a6814c2d59faa78cd3a85fc1c8ca6787;hb=b694e7e2ae624e206e1548b1a863c554eb9cd4d7;hpb=f4c1e7f52d49c3ce033b9ee4c3c7414b06a22d45 diff --git a/dali-toolkit/internal/text/markup-processor-helper-functions.h b/dali-toolkit/internal/text/markup-processor-helper-functions.h old mode 100644 new mode 100755 index 45f586c..d6f65c1 --- a/dali-toolkit/internal/text/markup-processor-helper-functions.h +++ b/dali-toolkit/internal/text/markup-processor-helper-functions.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_TEXT_MARKUP_PROCESSOR_HELPER_FUNCTIONS_H__ -#define __DALI_TOOLKIT_TEXT_MARKUP_PROCESSOR_HELPER_FUNCTIONS_H__ +#ifndef DALI_TOOLKIT_TEXT_MARKUP_PROCESSOR_HELPER_FUNCTIONS_H +#define DALI_TOOLKIT_TEXT_MARKUP_PROCESSOR_HELPER_FUNCTIONS_H /* - * Copyright (c) 2015 Samsung Electronics Co., Ltd. + * Copyright (c) 2019 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -95,6 +95,15 @@ void JumpToWhiteSpace( const char*& stringBuffer, const char* const stringEndBuffer ); /** +* @brief Converts a string into an unsigned int. +* +* @param[in] uintStr An unsigned int packed inside a string. +* +* @return The unsigned int value. +*/ +unsigned int StringToUint( const char* const uintStr ); + +/** * @brief Converts a string into an hexadecimal unsigned int. * * @param[in] uintStr An hexadecimal unsigned int packed inside a string. @@ -121,6 +130,14 @@ float StringToFloat( const char* const floatStr ); void FloatToString( float value, std::string& floatStr ); /** + * @brief Converts an unsigned int into a string. + * + * @param[in] value The unsigned int value. + * @param[out] uIntStr The string. + */ +void UintToString( unsigned int value, std::string& uIntStr ); + +/** * @brief Converts an ARGB color packed in 4 byte unsigned int into a Vector4 color used in Dali. * * @param[in] color An ARGB color packed in an unsigned int. @@ -175,4 +192,4 @@ void Vector2ToString( const Vector2& value, std::string& vector2Str ); } // namespace Dali -#endif // __DALI_TOOLKIT_TEXT_MARKUP_PROCESSOR_HELPER_FUNCTIONS_H__ +#endif // DALI_TOOLKIT_TEXT_MARKUP_PROCESSOR_HELPER_FUNCTIONS_H