1 #ifndef __DALI_TOOLKIT_TEXT_SCRIPT_H__
2 #define __DALI_TOOLKIT_TEXT_SCRIPT_H__
5 * Copyright (c) 2015 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #include <dali-toolkit/public-api/text/text-definitions.h>
34 * @brief Retrieves a character's script.
36 * @param[in] character The character.
38 * @return The chraracter's script.
40 Script GetCharacterScript( Character character );
43 * @brief Whether the character is a zero width non joiner.
45 * @param[in] character The character.
47 * @return @e true if the character is a zero width non joiner.
49 bool IsZeroWidthNonJoiner( Character character );
52 * @brief Whether the character is a zero width joiner.
54 * @param[in] character The character.
56 * @return @e true if the character is a zero width joiner.
58 bool IsZeroWidthJoiner( Character character );
61 * @brief Whether the character is a zero width space.
63 * @param[in] character The character.
65 * @return @e true if the character is a zero width space.
67 bool IsZeroWidthSpace( Character character );
70 * @brief Whether the character is a left to right mark.
72 * @param[in] character The character.
74 * @return @e true if the character is a left to right mark.
76 bool IsLeftToRightMark( Character character );
79 * @brief Whether the character is a right to left mark.
81 * @param[in] character The character.
83 * @return @e true if the character is a right to left mark.
85 bool IsRightToLeftMark( Character character );
88 * @brief Whether the character is a thin space.
90 * @param[in] character The character.
92 * @return @e true if the character is a thin space.
94 bool IsThinSpace( Character character );
98 } // namespace Toolkit
102 #endif // __DALI_TOOLKIT_TEXT_SCRIPT_H__