X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fmarkup-processor-helper-functions.h;h=d7633182d19a3e3704240948dadb6015981253a8;hb=27b34b7f9c8ba9936ee38db06f22f18fcf04c826;hp=a28c1cb1e92489a5989baf479aa58c6c6f6b0b24;hpb=076f84a43592f26ff0aa2bced54583f712800fe3;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/markup-processor-helper-functions.h b/dali-toolkit/internal/text/markup-processor-helper-functions.h index a28c1cb..d763318 100644 --- a/dali-toolkit/internal/text/markup-processor-helper-functions.h +++ b/dali-toolkit/internal/text/markup-processor-helper-functions.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_TEXT_MARKUP_PROCESSOR_HELPER_FUNCTIONS_H /* - * Copyright (c) 2021 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 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. @@ -202,6 +202,17 @@ void UnderlineTypeStringToTypeValue(const char* const typeStr, Length length, Te */ float StringToFloat(const char* const floatStr); +/** + * @brief Converts a string into its value in the enum Text::HorizontalAlignment::Type. + * + * @param[in] typeStr The horizontal-alignment type value packed inside a string. + * @param[in] length The length of the string. + * @param[out] retType The HorizontalAlignment type. + * + * @return Whether the value parsed or not. + */ +bool HorizontalAlignmentTypeStringToTypeValue(const char* const typeStr, Length length, Text::HorizontalAlignment::Type& retType); + } // namespace Text } // namespace Toolkit