X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fproperty-string-parser.h;h=a6e0e0f6380f09ab3698ca21905275323331cc05;hb=29a52105283ce8ced672ed92545daeacf882316a;hp=b6ebf272f121ddd1f5468c659028028603bd99d7;hpb=479693b4fd773eb8888ae401d02b49188293e231;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/property-string-parser.h b/dali-toolkit/internal/text/property-string-parser.h index b6ebf27..a6e0e0f 100644 --- a/dali-toolkit/internal/text/property-string-parser.h +++ b/dali-toolkit/internal/text/property-string-parser.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_PROPERTY_STRING_PARSER_H__ -#define __DALI_TOOLKIT_PROPERTY_STRING_PARSER_H__ +#ifndef DALI_TOOLKIT_PROPERTY_STRING_PARSER_H +#define DALI_TOOLKIT_PROPERTY_STRING_PARSER_H /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2021 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. @@ -25,19 +25,16 @@ namespace Dali { - // Forward declaration struct Vector2; namespace Toolkit { - // Forward declaration class TreeNode; namespace Text { - /** * @brief Creates a map with pairs 'key,value' with the property's parameters. * @@ -45,7 +42,7 @@ namespace Text * @param[out] map A map with the property's parameters. * */ -void CreatePropertyMap( const TreeNode* const node, Property::Map& map ); +void CreatePropertyMap(const TreeNode* const node, Property::Map& map); /** * @brief Parses a property string. @@ -54,17 +51,7 @@ void CreatePropertyMap( const TreeNode* const node, Property::Map& map ); * @param[out] map A map with the property's parameters. * */ -void ParsePropertyString( const std::string& property, Property::Map& map ); - -/** - * @brief Converts an offset packed inside a string into a Vector2. - * - * @param[in] offsetStr The offset packed inside a string. - * @param[out] offset The offset packed in a Vector2. - * - */ -void StringOffsetToVector2( const std::string& offsetStr, - Vector2& offset ); +void ParsePropertyString(const std::string& property, Property::Map& map); } //namespace Text @@ -72,4 +59,4 @@ void StringOffsetToVector2( const std::string& offsetStr, } //namespace Dali -#endif //__DALI_TOOLKIT_PROPERTY_STRING_PARSER_H__ +#endif //DALI_TOOLKIT_PROPERTY_STRING_PARSER_H