[Tizen] Add IsSpace in TextAbstraction
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / text-abstraction / script.h
index d63e267..f79d8ec 100644 (file)
  */
 
 // INTERNAL INCLUDES
+#include <dali/devel-api/text-abstraction/emoji-character-properties.h>
 #include <dali/devel-api/text-abstraction/text-abstraction-definitions.h>
 #include <dali/public-api/dali-adaptor-common.h>
+#include <sys/types.h>
 
 namespace Dali
 {
@@ -100,7 +102,12 @@ enum Script
   SYMBOLS4, ///< Some symbols.
   SYMBOLS5, ///< Some symbols.
 
-  UNKNOWN ///< The script is unknown.
+  UNKNOWN,      ///< The script is unknown.
+  EMOJI_TEXT,   ///< The Emoji request a text presentation for an emoji character.
+  EMOJI_COLOR,  ///< The Emoji request a color-emoji presentation for an emoji character.
+  SYMBOLS_NSLCL ///< THe Negative Squared Latin Capital Letter
+
+  //Note: update ScriptName and GetNumberOfScripts when adding new script
 };
 
 const char* const ScriptName[] =
@@ -173,7 +180,10 @@ const char* const ScriptName[] =
     "SYMBOLS4", ///< Some symbols.
     "SYMBOLS5", ///< Some symbols.
 
-    "UNKNOWN" ///< The script is unknown.
+    "UNKNOWN",      ///< The script is unknown.
+    "EMOJI_TEXT",   ///< The Emoji request a text presentation for an emoji character.
+    "EMOJI_COLOR",  ///< The Emoji request a color-emoji presentation for an emoji character.
+    "SYMBOLS_NSLCL" ///< THe Negative Squared Latin Capital Letter
 };
 
 /**
@@ -204,6 +214,15 @@ DALI_ADAPTOR_API Script GetCharacterScript(Character character);
 DALI_ADAPTOR_API bool IsWhiteSpace(Character character);
 
 /**
+ * @brief Whether the character is a space.
+ *
+ * @param[in] character The character.
+ *
+ * @return @e true if the character is a space.
+ */
+DALI_ADAPTOR_API bool IsSpace(Character character);
+
+/**
  * @brief Whether the character is a new paragraph character.
  *
  * @param[in] character The character.
@@ -286,6 +305,14 @@ DALI_ADAPTOR_API bool IsCommonScript(Character character);
  * @return @e true if the script has ligatures that must be 'broken'.
  */
 DALI_ADAPTOR_API bool HasLigatureMustBreak(Script script);
+
+/**
+ * @brief Get the number of elements in enum Script
+ *
+ * @return returns the number of Scripts
+ */
+DALI_ADAPTOR_API Length GetNumberOfScripts();
+
 } // namespace TextAbstraction
 
 } // namespace Dali