X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fproperty-string-parser.cpp;h=2aa05e9018d863dc983919e98c092b3dba22fc03;hp=c120e00c513c7476c8209f057dc956bfb0ed3482;hb=528aa3699cd51dab5115bca1aaebb65d4bc67c15;hpb=0f09829877c9b8523b00445e953b61e417ec3b5a diff --git a/dali-toolkit/internal/text/property-string-parser.cpp b/dali-toolkit/internal/text/property-string-parser.cpp index c120e00..2aa05e9 100644 --- a/dali-toolkit/internal/text/property-string-parser.cpp +++ b/dali-toolkit/internal/text/property-string-parser.cpp @@ -72,30 +72,11 @@ void ParsePropertyString( const std::string& property, Property::Map& map ) if( parser.Parse( property ) ) { const TreeNode* const node = parser.GetRoot(); - - CreatePropertyMap( node, map ); - } -} - -void StringOffsetToVector2( const std::string& offsetStr, - Vector2& offset ) -{ - offset = Vector2::ZERO; - - unsigned int wsIndex = 0u; - for( std::string::const_iterator it = offsetStr.begin(), - endIt = offsetStr.end(); - it != endIt; - ++it, ++wsIndex ) - { - if( *it == ' ' ) + if( node ) { - break; + CreatePropertyMap( node, map ); } } - - offset[0] = StringToFloat( offsetStr.c_str() ); - offset[1] = StringToFloat( offsetStr.c_str() + wsIndex ); } } //namespace Text