Add the Deprecation log msg 26/91726/1
authorHyunjee Kim <hj0426.kim@samsung.com>
Tue, 11 Oct 2016 05:27:48 +0000 (14:27 +0900)
committerHyunjee Kim <hj0426.kim@samsung.com>
Tue, 11 Oct 2016 05:28:00 +0000 (14:28 +0900)
Change-Id: I01f2d90525b5bca3bcf477a5ca9bb275f3405e96
Signed-off-by: Hyunjee Kim <hj0426.kim@samsung.com>
src/include/deprecated/utils_i18n_timezone.h
src/include/deprecated/utils_i18n_usearch.h
src/include/deprecated/utils_i18n_ustring.h
src/utils_i18n_timezone.cpp
src/utils_i18n_usearch.c
src/utils_i18n_ustring.c

index 3488b0267a30ea548668d4e9c69bff75456cc3dc..54e2fe32549fa42be9a88136226b0bbe57580ddc 100644 (file)
 #define __UTILS_I18N_TIMEZONE_H__
 
 #include <utils_i18n_types.h>
+#include <tizen.h>
+
+#ifndef TIZEN_DEPRECATED_API
+#define TIZEN_DEPRECATED_API __attribute__((__visibility__("default"), deprecated))
+#endif
 
 /**
  * @file utils_i18n_timezone.h
@@ -414,7 +419,7 @@ int i18n_timezone_use_daylight_time(i18n_timezone_h timezone, i18n_ubool *daylig
  *
  * @retval #I18N_ERROR_NONE Successful
  */
-int i18n_timezone_in_daylight_time(i18n_timezone_h timezone, i18n_udate date, i18n_ubool *daylight_time);
+int i18n_timezone_in_daylight_time(i18n_timezone_h timezone, i18n_udate date, i18n_ubool *daylight_time) TIZEN_DEPRECATED_API;
 
 /**
  * @brief Returns true if this zone has the same rule and offset as another zone.
index d82decc77187a000641293c03e5bcddf24675345..703994a49b3764f85b8314b8bea9927fd72acb45 100644 (file)
 #define __UTILS_I18N_USEARCH_H__
 
 #include <utils_i18n_types.h>
+#include <tizen.h>
+
+#ifndef TIZEN_DEPRECATED_API
+#define TIZEN_DEPRECATED_API __attribute__((__visibility__("default"), deprecated))
+#endif
 
 /**
  * @file utils_i18n_usearch.h
@@ -103,7 +108,7 @@ extern "C" {
  * @retval #I18N_ERROR_NONE Successful
  * @retval #I18N_ERROR_INVALID_PARAMETER Invalid function parameter
  */
-int i18n_usearch_create(const i18n_uchar *pattern, int32_t pattern_len, const i18n_uchar *text, int32_t text_len, const char *locale, i18n_ubreak_iterator_s *break_iter, i18n_usearch_h *search_iter);
+int i18n_usearch_create(const i18n_uchar *pattern, int32_t pattern_len, const i18n_uchar *text, int32_t text_len, const char *locale, i18n_ubreak_iterator_s *break_iter, i18n_usearch_h *search_iter) TIZEN_DEPRECATED_API;
 
 /**
  * @brief Creates an #i18n_usearch_h using the argument locale language rule set.
index a89153adac8eb6db49940432886fb721298cf37e..2d478679b95fd59f345e6952c2988e25041e0ce5 100644 (file)
 #define __UTILS_I18N_USTRING_H__
 
 #include <utils_i18n_types.h>
+#include <tizen.h>
+
+#ifndef TIZEN_DEPRECATED_API
+#define TIZEN_DEPRECATED_API __attribute__((__visibility__("default"), deprecated))
+#endif
 
 /**
  * @file utils_i18n_ustring.h
@@ -978,7 +983,7 @@ int32_t i18n_ustring_to_lower(i18n_uchar *dest, int32_t dest_capacity, const i18
  * @exception #I18N_ERROR_INVALID_PARAMETER Invalid function parameter
  */
 int32_t i18n_ustring_to_title(i18n_uchar *dest, int32_t dest_capacity, const i18n_uchar *src, int32_t src_len, i18n_ubreak_iterator_s *title_iter,
-                                                         const char *locale, i18n_error_code_e *error_code);
+                                                         const char *locale, i18n_error_code_e *error_code) TIZEN_DEPRECATED_API;
 
 /**
  * @brief Titlecases a string.
index bbe4c717c50bd14a5da649757387c052cdcfa74b..e72d0857e92b6b7ac8e47f0855b0db28b8edf16f 100755 (executable)
@@ -407,6 +407,7 @@ int i18n_timezone_use_daylight_time(i18n_timezone_h timezone, i18n_ubool *daylig
 int i18n_timezone_in_daylight_time(i18n_timezone_h timezone, i18n_udate date,
                                    i18n_ubool *daylight_time)
 {
+        ERR("DEPRECATION WARNING: i18n_timezone_in_daylight_time() is deprecated and will be removed from next release.");
     retv_if(timezone == NULL || daylight_time == NULL, I18N_ERROR_INVALID_PARAMETER);
 
     UErrorCode status = U_ZERO_ERROR;
index 62fa2b72af33cdeb8fc1632f736f7fa3813dee85..acd66b3bd86f9500492589b65fe2ba9e1c4af1c3 100644 (file)
@@ -61,6 +61,7 @@ int i18n_usearch_create(const i18n_uchar *pattern, int32_t pattern_len, const i1
                                                int32_t text_len, const char *locale, i18n_ubreak_iterator_s *break_iter,
                                                i18n_usearch_h *search_iter)
 {
+       ERR("DEPRECATION WARNING:i18n_usearch_create() is deprecated and will be removed from next release.");
        retv_if(search_iter == NULL, I18N_ERROR_INVALID_PARAMETER);
        i18n_error_code_e err = I18N_ERROR_NONE;
        *search_iter =
index 9f56f826f9dd6ceb4e2325c0ebc1d04790f27084..fdb13f9870eaf44aa7a7a3a8bb1bca96de29e6da 100644 (file)
@@ -525,6 +525,7 @@ int32_t i18n_ustring_to_title(i18n_uchar *dest, int32_t dest_capacity, const i18
                                                          int32_t src_len, i18n_ubreak_iterator_s *title_iter,
                                                          const char *locale, i18n_error_code_e *i18n_error)
 {
+       ERR("DEPRECATION WARNING: i18n_ustring_to_title() is deprecated and will be removed from next release.");
        if (src == NULL) {
                *i18n_error = I18N_ERROR_INVALID_PARAMETER;
                return 0;