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/internal/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 white space.
45 * @param[in] character The character.
47 * @return @e true if the character is a white space.
49 bool IsWhiteSpace( Character character );
52 * @brief Whether the character is a new paragraph character.
54 * @param[in] character The character.
56 * @return @e true if the character is a new paragraph character.
58 bool IsNewParagraph( Character character );
61 * @brief Whether the character is a zero width non joiner.
63 * @param[in] character The character.
65 * @return @e true if the character is a zero width non joiner.
67 bool IsZeroWidthNonJoiner( Character character );
70 * @brief Whether the character is a zero width joiner.
72 * @param[in] character The character.
74 * @return @e true if the character is a zero width joiner.
76 bool IsZeroWidthJoiner( Character character );
79 * @brief Whether the character is a zero width space.
81 * @param[in] character The character.
83 * @return @e true if the character is a zero width space.
85 bool IsZeroWidthSpace( Character character );
88 * @brief Whether the character is a left to right mark.
90 * @param[in] character The character.
92 * @return @e true if the character is a left to right mark.
94 bool IsLeftToRightMark( Character character );
97 * @brief Whether the character is a right to left mark.
99 * @param[in] character The character.
101 * @return @e true if the character is a right to left mark.
103 bool IsRightToLeftMark( Character character );
106 * @brief Whether the character is a thin space.
108 * @param[in] character The character.
110 * @return @e true if the character is a thin space.
112 bool IsThinSpace( Character character );
116 } // namespace Toolkit
120 #endif // __DALI_TOOLKIT_TEXT_SCRIPT_H__