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.cpp;h=3c02c275b0860953093b50bd1ef275eb2cff748d;hp=c460747384618e4f43d48d415c13ece65fa94ffb;hb=4d763eb68b5aa2448dfc81d90fc5ce598c68c99f;hpb=bd0b6d9d85d1e484aad8e96b0de89c494f013827 diff --git a/dali-toolkit/internal/text/markup-processor-helper-functions.cpp b/dali-toolkit/internal/text/markup-processor-helper-functions.cpp index c460747..3c02c27 100644 --- a/dali-toolkit/internal/text/markup-processor-helper-functions.cpp +++ b/dali-toolkit/internal/text/markup-processor-helper-functions.cpp @@ -86,6 +86,11 @@ unsigned int StringToHex( const char* const uintStr ) return static_cast( strtoul( uintStr, NULL, 16 ) ); } +float StringToFloat( const char* const floatStr ) +{ + return static_cast( strtod( floatStr, NULL ) ); +} + void UintColorToVector4( unsigned int color, Vector4& retColor ) { retColor.a = static_cast( ( color & 0xFF000000 ) >> 24u ) / 255.f;