int __convert_lunar_calendar(char *input_time)
{
i18n_ucalendar_h ucal_ch, ucal_greg;
- i18n_ucalendar_create(NULL, NULL, "en@calendar=chinese", I18N_UCALENDAR_TRADITIONAL, &ucal_ch);
- i18n_ucalendar_create(NULL, NULL, "en@calendar=gregorian", I18N_UCALENDAR_TRADITIONAL, &ucal_greg);
+ i18n_ucalendar_create(NULL, -1, "en@calendar=chinese", I18N_UCALENDAR_TRADITIONAL, &ucal_ch);
+ i18n_ucalendar_create(NULL, -1, "en@calendar=gregorian", I18N_UCALENDAR_TRADITIONAL, &ucal_greg);
i18n_udate new_date;
*append_to = (char *) malloc(len+1);
retv_if(*append_to == NULL, I18N_ERROR_OUT_OF_MEMORY);
- memset(*append_to, 0x0, len+1);
-
- COPY_STR(*append_to, _append_to, len+1);
+ memcpy(*append_to, _append_to, len);
+ (*append_to)[len] = '\0';
return _i18n_error_mapping(status);
}
#include <utils_i18n_private.h>
#include <malloc.h>
-#include <vector>
#include <unicode/measfmt.h>
#include <unicode/measure.h>
unicode_append_to = UnicodeString(append_to);
}
- std::vector<Measure> measure_clones;
+
+ Measure* measure_array = (Measure*)malloc(sizeof(Measure) * measures_count);
+ memset((void*)measure_array, 0, sizeof(Measure) * measures_count);
+
for (int i = 0; i < measures_count; i++) {
- measure_clones.push_back(*((Measure *)measures[i]));
+ measure_array[i] = *((Measure *)measures[i]);
}
- Measure *measure_array = &measure_clones[0];
UnicodeString &result =
((MeasureFormat *) measure_format)->formatMeasures(measure_array,
retv_if(*append_to == NULL, I18N_ERROR_OUT_OF_MEMORY);
- memset(*append_to, 0x0, len+1);
-
- COPY_STR(*append_to, _append_to, len+1);
+ memcpy(*append_to, _append_to, len);
+ (*append_to)[len] = '\0';
return I18N_ERROR_NONE;
}
retv_if(*pattern == NULL, I18N_ERROR_OUT_OF_MEMORY);
- memset(*pattern, 0x0, len+1);
-
- COPY_STR(*pattern, _pattern, len+1);
+ memcpy(*pattern, _pattern, len);
+ (*pattern)[len] = '\0';
return I18N_ERROR_NONE;
}
memset(*localized_pattern, 0x0, len+1);
- COPY_STR(*localized_pattern, _localized_pattern, len+1);
+ memcpy(*localized_pattern, _localized_pattern, len);
+ (*localized_pattern)[len] = '\0';
return _i18n_error_mapping(status);
}
*text = (char *)malloc(len + 1);
retv_if(*text == NULL, I18N_ERROR_OUT_OF_MEMORY);
- memset(*text, 0x0, len+1);
-
- COPY_STR(*text, _text, len + 1);
+ memcpy(*text, _text, len);
+ (*text)[len] = '\0';
return I18N_ERROR_NONE;
}
i18n_error_code_e i18n_error;
UErrorCode icu_error = U_ZERO_ERROR;
- enumeration = ucnv_openStandardNames(conv_name, standard, &icu_error);
+ *enumeration = (i18n_uenumeration_h *)ucnv_openStandardNames(conv_name, standard, &icu_error);
ERR_MAPPING(icu_error, i18n_error);
I18N_ERR(i18n_error);
i18n_error_code_e i18n_error;
UErrorCode icu_error = U_ZERO_ERROR;
- *ucsm = ucsdet_detect(ucsd, &icu_error);
+ *ucsm = (i18n_ucharset_match_h *)ucsdet_detect(ucsd, &icu_error);
ERR_MAPPING(icu_error, i18n_error);
I18N_ERR(i18n_error);
i18n_error_code_e i18n_error;
UErrorCode icu_error = U_ZERO_ERROR;
- *ucsm = ucsdet_detectAll(ucsd, matches_found, &icu_error);
+ *ucsm = (i18n_ucharset_match_h *)ucsdet_detectAll(ucsd, matches_found, &icu_error);
ERR_MAPPING(icu_error, i18n_error);
I18N_ERR(i18n_error);
* limitations under the License.
*/
+#include <stdlib.h>
#include <unicode/uidna.h>
#include <utils_i18n_uidna.h>
{
retv_if(info == NULL, I18N_ERROR_INVALID_PARAMETER);
- free((UIDNAInfo *)info);
+ free(info);
info = NULL;
return I18N_ERROR_NONE;
i18n_error_code_e i18n_error;
UErrorCode icu_error = U_ZERO_ERROR;
- *normalizer2 = (i18n_unormalizer_h *)unorm2_openFiltered((UNormalizer2 *) normalizer, filter_set, &icu_error);
+ *normalizer2 = (i18n_unormalizer_h *)unorm2_openFiltered((UNormalizer2 *) normalizer, (const USet*)filter_set, &icu_error);
ERR_MAPPING(icu_error, i18n_error);
I18N_ERR(i18n_error);
{
retv_if(normalizer == NULL, I18N_ERROR_INVALID_PARAMETER);
- unorm2_close(normalizer);
+ unorm2_close((UNormalizer2 *)normalizer);
return I18N_ERROR_NONE;
}
int i18n_ures_get_UTF8_string(i18n_ures_h ures, char *dest, int32_t *len, i18n_ubool force_copy, const char **str_result)
{
- retv_if(ures == NULL || force_copy == NULL, I18N_ERROR_INVALID_PARAMETER);
+ retv_if(ures == NULL, I18N_ERROR_INVALID_PARAMETER);
i18n_error_code_e i18n_error;
UErrorCode icu_error = U_ZERO_ERROR;
void i18n_utext_set_native_index(i18n_utext_h ut, int64_t native_index)
{
- if(ut == NULL || native_index == NULL) {
+ if(ut == NULL) {
set_last_result(I18N_ERROR_INVALID_PARAMETER);
return;
}
i18n_ubool i18n_utext_move_index32(i18n_utext_h ut, int32_t delta)
{
- if(ut == NULL || delta == NULL) {
+ if(ut == NULL) {
set_last_result(I18N_ERROR_INVALID_PARAMETER);
return 0;
}
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -Wall -fpermissive")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -Wall")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -g -Wall -fpermissive")
SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib")
fclose(g_fpLog);\
}
-#define DUMP_UTC_ERRLOG() {\
- g_Serr = dup(fileno(stderr));\
- g_fpLogDump = freopen(ERR_UTC_LOG, "w", stderr);\
- fflush(stderr);\
-}
-
-#define CLOSE_UTC_ERRLOG() {\
- if(g_fpLogDump) \
- {\
- if (g_Serr != -1)\
- {\
- old_Serr = fileno(stderr);\
- if(old_Serr != -1)\
- {\
- dup2(g_Serr, old_Serr);\
- }\
- close(g_Serr);\
- }\
- fclose(g_fpLogDump);\
- }\
-}
-
-#define PRINT_UTC_LOG(...) {\
- g_fpLog = fopen(UTC_LOG, "a+");\
- fprintf(g_fpLog, __VA_ARGS__);\
- fclose(g_fpLog);\
-}
-
-
-#define PRINT_TC_RESULT(...) {\
- g_fpLog = fopen(TC_RESULT, "w");\
- fprintf(g_fpLog, __VA_ARGS__);\
- fclose(g_fpLog);\
-}
-
-
#define FREE_MEMORY_TC(buffer) {\
if ( buffer != NULL )\
{\
pszGetTCName = (char*)malloc( 256 );
memset( pszGetTCName, 0x00, 256);
strcpy( pszGetTCName, "utc_capi_base");
- int i=0, result=0, nRet=0;
+ int i=0, result=0;
dlog_print(DLOG_INFO, "NativeTCT", "[%s:%d] Executing TC Name = %s", __FUNCTION__, __LINE__, pszGetTCName);
{"utc_capi_base_utils_i18n_utext_previous32_from_n",utc_capi_base_utils_i18n_utext_previous32_from_n,utc_capi_base_utils_utext_startup,utc_capi_base_utils_utext_cleanup},
{"utc_capi_base_utils_i18n_utext_set_get_native_index_p",utc_capi_base_utils_i18n_utext_set_get_native_index_p,utc_capi_base_utils_utext_startup,utc_capi_base_utils_utext_cleanup},
{"utc_capi_base_utils_i18n_utext_set_native_index_n1",utc_capi_base_utils_i18n_utext_set_native_index_n1,utc_capi_base_utils_utext_startup,utc_capi_base_utils_utext_cleanup},
- {"utc_capi_base_utils_i18n_utext_set_native_index_n2",utc_capi_base_utils_i18n_utext_set_native_index_n2,utc_capi_base_utils_utext_startup,utc_capi_base_utils_utext_cleanup},
{"utc_capi_base_utils_i18n_utext_get_native_index_n",utc_capi_base_utils_i18n_utext_get_native_index_n,utc_capi_base_utils_utext_startup,utc_capi_base_utils_utext_cleanup},
{"utc_capi_base_utils_i18n_utext_move_index32_p",utc_capi_base_utils_i18n_utext_move_index32_p,utc_capi_base_utils_utext_startup,utc_capi_base_utils_utext_cleanup},
{"utc_capi_base_utils_i18n_utext_move_index32_n1",utc_capi_base_utils_i18n_utext_move_index32_n1,utc_capi_base_utils_utext_startup,utc_capi_base_utils_utext_cleanup},
- {"utc_capi_base_utils_i18n_utext_move_index32_n2",utc_capi_base_utils_i18n_utext_move_index32_n2,utc_capi_base_utils_utext_startup,utc_capi_base_utils_utext_cleanup},
{"utc_capi_base_utils_i18n_utext_get_previous_native_index_p",utc_capi_base_utils_i18n_utext_get_previous_native_index_p,utc_capi_base_utils_utext_startup,utc_capi_base_utils_utext_cleanup},
{"utc_capi_base_utils_i18n_utext_get_previous_native_index_n",utc_capi_base_utils_i18n_utext_get_previous_native_index_n,utc_capi_base_utils_utext_startup,utc_capi_base_utils_utext_cleanup},
{"utc_capi_base_utils_i18n_utext_extract_p",utc_capi_base_utils_i18n_utext_extract_p,utc_capi_base_utils_utext_startup,utc_capi_base_utils_utext_cleanup},
{"utc_capi_base_utils_i18n_ures_get_string_n",utc_capi_base_utils_i18n_ures_get_string_n,utc_capi_base_utils_ures_startup,utc_capi_base_utils_ures_cleanup},
{"utc_capi_base_utils_i18n_ures_get_UTF8_string_p",utc_capi_base_utils_i18n_ures_get_UTF8_string_p,utc_capi_base_utils_ures_startup,utc_capi_base_utils_ures_cleanup},
{"utc_capi_base_utils_i18n_ures_get_UTF8_string_n1",utc_capi_base_utils_i18n_ures_get_UTF8_string_n1,utc_capi_base_utils_ures_startup,utc_capi_base_utils_ures_cleanup},
- {"utc_capi_base_utils_i18n_ures_get_UTF8_string_n2",utc_capi_base_utils_i18n_ures_get_UTF8_string_n2,utc_capi_base_utils_ures_startup,utc_capi_base_utils_ures_cleanup},
{"utc_capi_base_utils_i18n_ures_get_binary_p",utc_capi_base_utils_i18n_ures_get_binary_p,utc_capi_base_utils_ures_startup,utc_capi_base_utils_ures_cleanup},
{"utc_capi_base_utils_i18n_ures_get_binary_n1",utc_capi_base_utils_i18n_ures_get_binary_n1,utc_capi_base_utils_ures_startup,utc_capi_base_utils_ures_cleanup},
{"utc_capi_base_utils_i18n_ures_get_binary_n2",utc_capi_base_utils_i18n_ures_get_binary_n2,utc_capi_base_utils_ures_startup,utc_capi_base_utils_ures_cleanup},
{"utc_capi_base_utils_i18n_utext_previous32_from_n",utc_capi_base_utils_i18n_utext_previous32_from_n,utc_capi_base_utils_utext_startup,utc_capi_base_utils_utext_cleanup},
{"utc_capi_base_utils_i18n_utext_set_get_native_index_p",utc_capi_base_utils_i18n_utext_set_get_native_index_p,utc_capi_base_utils_utext_startup,utc_capi_base_utils_utext_cleanup},
{"utc_capi_base_utils_i18n_utext_set_native_index_n1",utc_capi_base_utils_i18n_utext_set_native_index_n1,utc_capi_base_utils_utext_startup,utc_capi_base_utils_utext_cleanup},
- {"utc_capi_base_utils_i18n_utext_set_native_index_n2",utc_capi_base_utils_i18n_utext_set_native_index_n2,utc_capi_base_utils_utext_startup,utc_capi_base_utils_utext_cleanup},
{"utc_capi_base_utils_i18n_utext_get_native_index_n",utc_capi_base_utils_i18n_utext_get_native_index_n,utc_capi_base_utils_utext_startup,utc_capi_base_utils_utext_cleanup},
{"utc_capi_base_utils_i18n_utext_move_index32_p",utc_capi_base_utils_i18n_utext_move_index32_p,utc_capi_base_utils_utext_startup,utc_capi_base_utils_utext_cleanup},
{"utc_capi_base_utils_i18n_utext_move_index32_n1",utc_capi_base_utils_i18n_utext_move_index32_n1,utc_capi_base_utils_utext_startup,utc_capi_base_utils_utext_cleanup},
- {"utc_capi_base_utils_i18n_utext_move_index32_n2",utc_capi_base_utils_i18n_utext_move_index32_n2,utc_capi_base_utils_utext_startup,utc_capi_base_utils_utext_cleanup},
{"utc_capi_base_utils_i18n_utext_get_previous_native_index_p",utc_capi_base_utils_i18n_utext_get_previous_native_index_p,utc_capi_base_utils_utext_startup,utc_capi_base_utils_utext_cleanup},
{"utc_capi_base_utils_i18n_utext_get_previous_native_index_n",utc_capi_base_utils_i18n_utext_get_previous_native_index_n,utc_capi_base_utils_utext_startup,utc_capi_base_utils_utext_cleanup},
{"utc_capi_base_utils_i18n_utext_extract_p",utc_capi_base_utils_i18n_utext_extract_p,utc_capi_base_utils_utext_startup,utc_capi_base_utils_utext_cleanup},
{"utc_capi_base_utils_i18n_ures_get_string_n",utc_capi_base_utils_i18n_ures_get_string_n,utc_capi_base_utils_ures_startup,utc_capi_base_utils_ures_cleanup},
{"utc_capi_base_utils_i18n_ures_get_UTF8_string_p",utc_capi_base_utils_i18n_ures_get_UTF8_string_p,utc_capi_base_utils_ures_startup,utc_capi_base_utils_ures_cleanup},
{"utc_capi_base_utils_i18n_ures_get_UTF8_string_n1",utc_capi_base_utils_i18n_ures_get_UTF8_string_n1,utc_capi_base_utils_ures_startup,utc_capi_base_utils_ures_cleanup},
- {"utc_capi_base_utils_i18n_ures_get_UTF8_string_n2",utc_capi_base_utils_i18n_ures_get_UTF8_string_n2,utc_capi_base_utils_ures_startup,utc_capi_base_utils_ures_cleanup},
{"utc_capi_base_utils_i18n_ures_get_binary_p",utc_capi_base_utils_i18n_ures_get_binary_p,utc_capi_base_utils_ures_startup,utc_capi_base_utils_ures_cleanup},
{"utc_capi_base_utils_i18n_ures_get_binary_n1",utc_capi_base_utils_i18n_ures_get_binary_n1,utc_capi_base_utils_ures_startup,utc_capi_base_utils_ures_cleanup},
{"utc_capi_base_utils_i18n_ures_get_binary_n2",utc_capi_base_utils_i18n_ures_get_binary_n2,utc_capi_base_utils_ures_startup,utc_capi_base_utils_ures_cleanup},
{"utc_capi_base_utils_i18n_utext_previous32_from_n",utc_capi_base_utils_i18n_utext_previous32_from_n,utc_capi_base_utils_utext_startup,utc_capi_base_utils_utext_cleanup},
{"utc_capi_base_utils_i18n_utext_set_get_native_index_p",utc_capi_base_utils_i18n_utext_set_get_native_index_p,utc_capi_base_utils_utext_startup,utc_capi_base_utils_utext_cleanup},
{"utc_capi_base_utils_i18n_utext_set_native_index_n1",utc_capi_base_utils_i18n_utext_set_native_index_n1,utc_capi_base_utils_utext_startup,utc_capi_base_utils_utext_cleanup},
- {"utc_capi_base_utils_i18n_utext_set_native_index_n2",utc_capi_base_utils_i18n_utext_set_native_index_n2,utc_capi_base_utils_utext_startup,utc_capi_base_utils_utext_cleanup},
{"utc_capi_base_utils_i18n_utext_get_native_index_n",utc_capi_base_utils_i18n_utext_get_native_index_n,utc_capi_base_utils_utext_startup,utc_capi_base_utils_utext_cleanup},
{"utc_capi_base_utils_i18n_utext_move_index32_p",utc_capi_base_utils_i18n_utext_move_index32_p,utc_capi_base_utils_utext_startup,utc_capi_base_utils_utext_cleanup},
{"utc_capi_base_utils_i18n_utext_move_index32_n1",utc_capi_base_utils_i18n_utext_move_index32_n1,utc_capi_base_utils_utext_startup,utc_capi_base_utils_utext_cleanup},
- {"utc_capi_base_utils_i18n_utext_move_index32_n2",utc_capi_base_utils_i18n_utext_move_index32_n2,utc_capi_base_utils_utext_startup,utc_capi_base_utils_utext_cleanup},
{"utc_capi_base_utils_i18n_utext_get_previous_native_index_p",utc_capi_base_utils_i18n_utext_get_previous_native_index_p,utc_capi_base_utils_utext_startup,utc_capi_base_utils_utext_cleanup},
{"utc_capi_base_utils_i18n_utext_get_previous_native_index_n",utc_capi_base_utils_i18n_utext_get_previous_native_index_n,utc_capi_base_utils_utext_startup,utc_capi_base_utils_utext_cleanup},
{"utc_capi_base_utils_i18n_utext_extract_p",utc_capi_base_utils_i18n_utext_extract_p,utc_capi_base_utils_utext_startup,utc_capi_base_utils_utext_cleanup},
{"utc_capi_base_utils_i18n_ures_get_string_n",utc_capi_base_utils_i18n_ures_get_string_n,utc_capi_base_utils_ures_startup,utc_capi_base_utils_ures_cleanup},
{"utc_capi_base_utils_i18n_ures_get_UTF8_string_p",utc_capi_base_utils_i18n_ures_get_UTF8_string_p,utc_capi_base_utils_ures_startup,utc_capi_base_utils_ures_cleanup},
{"utc_capi_base_utils_i18n_ures_get_UTF8_string_n1",utc_capi_base_utils_i18n_ures_get_UTF8_string_n1,utc_capi_base_utils_ures_startup,utc_capi_base_utils_ures_cleanup},
- {"utc_capi_base_utils_i18n_ures_get_UTF8_string_n2",utc_capi_base_utils_i18n_ures_get_UTF8_string_n2,utc_capi_base_utils_ures_startup,utc_capi_base_utils_ures_cleanup},
{"utc_capi_base_utils_i18n_ures_get_binary_p",utc_capi_base_utils_i18n_ures_get_binary_p,utc_capi_base_utils_ures_startup,utc_capi_base_utils_ures_cleanup},
{"utc_capi_base_utils_i18n_ures_get_binary_n1",utc_capi_base_utils_i18n_ures_get_binary_n1,utc_capi_base_utils_ures_startup,utc_capi_base_utils_ures_cleanup},
{"utc_capi_base_utils_i18n_ures_get_binary_n2",utc_capi_base_utils_i18n_ures_get_binary_n2,utc_capi_base_utils_ures_startup,utc_capi_base_utils_ures_cleanup},
int utc_capi_base_utils_i18n_utext_previous32_from_n(void);
int utc_capi_base_utils_i18n_utext_set_get_native_index_p(void);
int utc_capi_base_utils_i18n_utext_set_native_index_n1(void);
-int utc_capi_base_utils_i18n_utext_set_native_index_n2(void);
int utc_capi_base_utils_i18n_utext_get_native_index_n(void);
int utc_capi_base_utils_i18n_utext_move_index32_p(void);
int utc_capi_base_utils_i18n_utext_move_index32_n1(void);
-int utc_capi_base_utils_i18n_utext_move_index32_n2(void);
int utc_capi_base_utils_i18n_utext_get_previous_native_index_p(void);
int utc_capi_base_utils_i18n_utext_get_previous_native_index_n(void);
int utc_capi_base_utils_i18n_utext_extract_p(void);
int utc_capi_base_utils_i18n_ures_get_string_n(void);
int utc_capi_base_utils_i18n_ures_get_UTF8_string_p(void);
int utc_capi_base_utils_i18n_ures_get_UTF8_string_n1(void);
-int utc_capi_base_utils_i18n_ures_get_UTF8_string_n2(void);
int utc_capi_base_utils_i18n_ures_get_binary_p(void);
int utc_capi_base_utils_i18n_ures_get_binary_n1(void);
int utc_capi_base_utils_i18n_ures_get_binary_n2(void);
#include "assert_local.h"
+#include <string.h>
#include <utils_i18n.h>
i18n_loc_disp_names_h loc_disp = NULL;
i18n_uversion_info version = {4, 1, 0};
- ret = i18n_uchar_char_age(c, &char_age);
+ ret = i18n_uchar_char_age(c, char_age);
assert_eq(ret, I18N_ERROR_NONE);
assert_eq(memcmp(char_age, version, 3), 0);
*/
#include "assert_local.h"
+#include <string.h>
#include <utils_i18n.h>
#define BUFSIZE 128
int utc_capi_base_utils_i18n_ucnv_compare_names_p(void)
{
static const char *equalUTF8[]={ "UTF-8", "utf_8", "u*T@f08", "Utf 8" };
-
- const char *name1, *name2;
int result;
for(i = 0; i<3; ++i) {
i18n_uchar uchar_as_char_buffer[2] = {2, 2};
char *chars_ptr = char_buffer;
i18n_uchar *uchars_ptr = (i18n_uchar *)uchar_as_char_buffer;
- i18n_uchar *uchars_bad_ptr = (i18n_uchar *)(uchar_as_char_buffer + 1);
ret = i18n_ucnv_create("UTF-8", &cnv);
assert_eq(ret, I18N_ERROR_NONE);
i18n_uchar uchar_as_char_buffer[2] = {2, 2};
char *chars_ptr = char_buffer;
i18n_uchar *uchars_ptr = (i18n_uchar *)uchar_as_char_buffer;
- i18n_uchar *uchars_bad_ptr = (i18n_uchar *)(uchar_as_char_buffer + 1);
ret = i18n_ucnv_create("UTF-8", &cnv);
assert_eq(ret, I18N_ERROR_NONE);
i18n_uchar uchar_as_char_buffer[2] = {2, 2};
char *chars_ptr = char_buffer;
i18n_uchar *uchars_ptr = (i18n_uchar *)uchar_as_char_buffer;
- i18n_uchar *uchars_bad_ptr = (i18n_uchar *)(uchar_as_char_buffer + 1);
ret = i18n_ucnv_create("UTF-8", &cnv);
assert_eq(ret, I18N_ERROR_NONE);
i18n_uchar uchar_as_char_buffer[2] = {2, 2};
char *chars_ptr = char_buffer;
i18n_uchar *uchars_ptr = (i18n_uchar *)uchar_as_char_buffer;
- i18n_uchar *uchars_bad_ptr = (i18n_uchar *)(uchar_as_char_buffer + 1);
ret = i18n_ucnv_create("UTF-8", &cnv);
assert_eq(ret, I18N_ERROR_NONE);
i18n_uchar uchar_as_char_buffer[2] = {2, 2};
char *chars_ptr = char_buffer;
i18n_uchar *uchars_ptr = (i18n_uchar *)uchar_as_char_buffer;
- i18n_uchar *uchars_bad_ptr = (i18n_uchar *)(uchar_as_char_buffer + 1);
ret = i18n_ucnv_create("UTF-8", &cnv);
assert_eq(ret, I18N_ERROR_NONE);
i18n_uchar uchar_as_char_buffer[2] = {2, 2};
char *chars_ptr = char_buffer;
i18n_uchar *uchars_ptr = (i18n_uchar *)uchar_as_char_buffer;
- i18n_uchar *uchars_bad_ptr = (i18n_uchar *)(uchar_as_char_buffer + 1);
ret = i18n_ucnv_create("UTF-8", &cnv);
assert_eq(ret, I18N_ERROR_NONE);
i18n_uchar uchar_as_char_buffer[2] = {2, 2};
char *chars_ptr = char_buffer;
i18n_uchar *uchars_ptr = (i18n_uchar *)uchar_as_char_buffer;
- i18n_uchar *uchars_bad_ptr = (i18n_uchar *)(uchar_as_char_buffer + 1);
ret = i18n_ucnv_create("UTF-8", &cnv);
assert_eq(ret, I18N_ERROR_NONE);
i18n_uchar uchar_as_char_buffer[2] = {2, 2};
char *chars_ptr = char_buffer;
i18n_uchar *uchars_ptr = (i18n_uchar *)uchar_as_char_buffer;
- i18n_uchar *uchars_bad_ptr = (i18n_uchar *)(uchar_as_char_buffer + 1);
ret = i18n_ucnv_create("UTF-8", &cnv);
assert_eq(ret, I18N_ERROR_NONE);
*/
int utc_capi_base_utils_i18n_ucnv_from_uchars_n6(void)
{
- static const i18n_uchar surrogate[1] = {0xd900};
char buffer[16];
int32_t len;
const char source_data[] = { (char)0xa2, (char)0xae, (char)0xa2 };
const char *source = source_data;
const char *source_limit = source_data + sizeof(source_data);
- i18n_uchar32 result1, result2, result3;
+ i18n_uchar32 result1, result2;
ret = i18n_ucnv_create("ibm-1363", &cnv);
assert_eq(ret, I18N_ERROR_NONE);
const char source_data[] = { (char)0xa2, (char)0xae, (char)0xa2 };
const char *source = source_data;
const char *source_limit = source_data + sizeof(source_data);
- i18n_uchar32 result1, result2, result3;
+ i18n_uchar32 result3;
ret = i18n_ucnv_create("ibm-1363", &cnv);
assert_eq(ret, I18N_ERROR_NONE);
*/
int utc_capi_base_utils_i18n_ucnv_get_next_uchar_n2(void)
{
+ i18n_uchar32 result3;
const char source_data[] = { (char)0xa2, (char)0xae, (char)0xa2 };
- const char *source = source_data;
const char *source_limit = source_data + sizeof(source_data);
- i18n_uchar32 result1, result2, result3;
ret = i18n_ucnv_create("ibm-1363", &cnv);
assert_eq(ret, I18N_ERROR_NONE);
const char *src = src_buffer;
i18n_uchar pivot_buffer[100];
- i18n_uchar *pivot_source, *pivot_target;
+ i18n_uchar *pivot_target;
ret = i18n_ucnv_create("UTF-8", &cnv1);
assert_eq(ret, I18N_ERROR_NONE);
ret = i18n_ucnv_create("Shift-JIS", &cnv2);
assert_eq(ret, I18N_ERROR_NONE);
- pivot_source = pivot_target = pivot_buffer;
+ pivot_target = pivot_buffer;
ret = i18n_ucnv_convert_ex(cnv2, cnv1, &target, target_buffer+sizeof(target_buffer), &src, NULL, pivot_buffer, NULL, &pivot_target, pivot_buffer+1, true, true);
assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);
int utc_capi_base_utils_i18n_ucnv_convert_ex_n3(void)
{
i18n_ucnv_h cnv1, cnv2;
- char target_buffer[100], src_buffer[100];
+ char target_buffer[100];
char *target = target_buffer;
- const char *src = src_buffer;
i18n_uchar pivot_buffer[100];
i18n_uchar *pivot_source, *pivot_target;
{
i18n_ucnv_h cnv1, cnv2;
char target_buffer[100], src_buffer[100];
- char *target = target_buffer;
const char *src = src_buffer;
i18n_uchar pivot_buffer[100];
int32_t target_limit = 0, source_limit = 0, target_capacity = 0;
const uint8_t source[]={ 0x00, 0x04, 0x05, 0x06, 0xa2, 0xb4, 0x00};
- const uint8_t expected_target[]={ 0x00, 0x37, 0x2d, 0x2e, 0x0e, 0x49, 0x62, 0x0f, 0x00};
- char *target=0;
source_limit=I18N_UPRV_LENGTHOF(source);
ret = i18n_ucnv_convert("ibm-1364", "ibm-1363", NULL, target_limit, (const char*)source, source_limit, &target_capacity);
int32_t target_limit = 0, source_limit = 0, target_capacity = 0;
const uint8_t source[]={ 0x00, 0x04, 0x05, 0x06, 0xa2, 0xb4, 0x00};
- const uint8_t expected_target[]={ 0x00, 0x37, 0x2d, 0x2e, 0x0e, 0x49, 0x62, 0x0f, 0x00};
char *target=0;
source_limit=I18N_UPRV_LENGTHOF(source);
*/
int utc_capi_base_utils_i18n_ucnv_convert_n3(void)
{
- int32_t target_limit = 0, source_limit = 0, target_capacity = 0;
+ int32_t target_limit = 0, target_capacity = 0;
const uint8_t source[]={ 0x00, 0x04, 0x05, 0x06, 0xa2, 0xb4, 0x00};
- const uint8_t expected_target[]={ 0x00, 0x37, 0x2d, 0x2e, 0x0e, 0x49, 0x62, 0x0f, 0x00};
char *target=0;
- source_limit=I18N_UPRV_LENGTHOF(source);
target_limit = target_capacity + 1;
target = (char *)malloc(sizeof(char) * target_limit);
int32_t source_limit = 0, target_capacity = 0;
const uint8_t source[]={ 0x00, 0x04, 0x05, 0x06, 0xa2, 0xb4, 0x00};
- const uint8_t expected_target[]={ 0x00, 0x37, 0x2d, 0x2e, 0x0e, 0x49, 0x62, 0x0f, 0x00};
char *target=0;
source_limit=I18N_UPRV_LENGTHOF(source);
int32_t target_limit = 0, source_limit = 0, target_capacity = 0;
const uint8_t source[]={ 0x00, 0x04, 0x05, 0x06, 0xa2, 0xb4, 0x00};
- const uint8_t expected_target[]={ 0x00, 0x37, 0x2d, 0x2e, 0x0e, 0x49, 0x62, 0x0f, 0x00};
source_limit=I18N_UPRV_LENGTHOF(source);
target_limit = target_capacity + 1;
*/
int utc_capi_base_utils_i18n_ucnv_to_algorithmic_n4(void)
{
- static const uint8_t
- shiftJIS[]={
- 0x88, 0xea, 0x83, 0x40, 0xa1, 0x84, 0x40
- };
-
int32_t length;
char target[100];
*/
int utc_capi_base_utils_i18n_ucnv_create_all_names_n(void)
{
- i18n_uenumeration_h enumeration;
-
ret = i18n_ucnv_create_all_names(NULL);
assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);
*/
int utc_capi_base_utils_i18n_ucnv_get_aliases_n(void)
{
- const char **aliases;
+ const char **aliases = NULL;
ret = i18n_ucnv_get_aliases(NULL, aliases);
assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);
#define I18N_UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
static int ret = I18N_ERROR_NONE;
-static int i;
static i18n_uconverter_selector_h g_sel;
/**
{
}
-static const char **g_available_names = NULL;
-static int32_t g_count_available = 0;
-
static const char ** get_encodings(int32_t start, int32_t step, int32_t count, int32_t *pCount)
{
const char **names;
- int32_t i;
*pCount = 0;
if (count <= 0) {
*/
int utc_capi_base_utils_i18n_ucnvsel_create_n2(void)
{
- int32_t num_encodings;
-
i18n_uset_h excluded_set = NULL;
ret = i18n_uset_create_empty(&excluded_set);
assert_eq(ret, I18N_ERROR_NONE);
int utc_capi_base_utils_i18n_ucnvsel_select_for_string_n1(void)
{
i18n_uenumeration_h enumeration;
- const i18n_uchar *string;
+ const i18n_uchar *string = NULL;
ret = i18n_ucnvsel_select_for_string(NULL, string, 1, &enumeration);
assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);
int utc_capi_base_utils_i18n_ucnvsel_select_for_utf8_n1(void)
{
i18n_uenumeration_h enumeration;
- const char *string;
+ const char *string = NULL;
ret = i18n_ucnvsel_select_for_utf8(NULL, string, 1, &enumeration);
assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);
static char *extract_bytes(const i18n_uchar *src, int32_t length, const char *codepage, int32_t *byte_length);
static int ret = I18N_ERROR_NONE;
-static int i;
i18n_ucharset_detector_h ucsd;
/**
"\\u0391\\u0392\\u0393\\u0394\\u0395"
"Sure would be nice if our source could contain Unicode directly!";
- int32_t byte_length = 0, s_length = 0, d_length = 0;
+ int32_t byte_length = 0, s_length = 0;
i18n_uchar s[sizeof(ss)];
char *bytes;
*/
int utc_capi_base_utils_i18n_ucsdet_set_text_n(void)
{
- ret = i18n_ucsdet_set_text(NULL, NULL, NULL);
+ ret = i18n_ucsdet_set_text(NULL, NULL, 0);
assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);
return 0;
"\\u0391\\u0392\\u0393\\u0394\\u0395"
"Sure would be nice if our source could contain Unicode directly!";
- int32_t byte_length = 0, s_length = 0, d_length = 0;
+ int32_t byte_length = 0, s_length = 0;
i18n_uchar s[sizeof(ss)];
char *bytes;
*/
int utc_capi_base_utils_i18n_ucsdet_detect_n1(void)
{
- int32_t matches_found = 0;
i18n_ucharset_match_h ucsm = NULL;
ret = i18n_ucsdet_create(&ucsd);
*/
int utc_capi_base_utils_i18n_ucsdet_detect_n2(void)
{
- int32_t matches_found = 0;
- i18n_ucharset_match_h ucsm = NULL;
-
ret = i18n_ucsdet_create(&ucsd);
assert_eq(ret, I18N_ERROR_NONE);
ret = i18n_ucsdet_create(&ucsd);
assert_eq(ret, I18N_ERROR_NONE);
- const char *lang, *name;
s_length = i18n_ustring_unescape(ss, s, sizeof(ss));
bytes = extract_bytes(s, s_length, "ISO-8859-1", &byte_length);
ret = i18n_ucsdet_create(&ucsd);
assert_eq(ret, I18N_ERROR_NONE);
- const char *lang, *name;
+ const char *name;
s_length = i18n_ustring_unescape(ss, s, sizeof(ss));
bytes = extract_bytes(s, s_length, "ISO-8859-1", &byte_length);
ret = i18n_ucsdet_create(&ucsd);
assert_eq(ret, I18N_ERROR_NONE);
- const char *lang, *name;
s_length = i18n_ustring_unescape(ss, s, sizeof(ss));
bytes = extract_bytes(s, s_length, "ISO-8859-1", &byte_length);
ret = i18n_ucsdet_create(&ucsd);
assert_eq(ret, I18N_ERROR_NONE);
- const char *lang, *name;
+ const char *lang;
s_length = i18n_ustring_unescape(ss, s, sizeof(ss));
bytes = extract_bytes(s, s_length, "ISO-8859-1", &byte_length);
ret = i18n_ucsdet_create(&ucsd);
assert_eq(ret, I18N_ERROR_NONE);
- const char *lang, *name;
s_length = i18n_ustring_unescape(ss, s, sizeof(ss));
bytes = extract_bytes(s, s_length, "ISO-8859-1", &byte_length);
#define I18N_UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
static int ret = I18N_ERROR_NONE;
-static int i;
static i18n_uidna_h uidna;
/**
int utc_capi_base_utils_i18n_uidna_label_to_ascii_p(void)
{
static const i18n_uchar fA_sharps16[] = { 0x66, 0x41, 0xdf, 0 };
- static const i18n_uchar fa_sharps16[] = { 0x66, 0x61, 0xdf, 0 };
i18n_uchar dest[10];
i18n_uidna_info_h info;
ret = i18n_unormalization_get_instance(NULL, "nfc", I18N_UNORMALIZATION_COMPOSE_CONTIGUOUS, &normalizer2);
assert_eq(ret, I18N_ERROR_NONE);
- i18n_uchar decomp[32];
int32_t length;
ret = i18n_unormalization_get_decomposition(normalizer2, 0xac01, NULL, 0, &length);
assert_eq(ret, I18N_ERROR_BUFFER_OVERFLOW);
ret = i18n_unormalization_get_instance(NULL, "nfc", I18N_UNORMALIZATION_COMPOSE_CONTIGUOUS, &normalizer2);
assert_eq(ret, I18N_ERROR_NONE);
- i18n_uchar decomp[32];
int32_t length;
ret = i18n_unormalization_get_decomposition(normalizer2, 0xac01, NULL, 4, &length);
assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);
i18n_uchar a = 0x1100;
i18n_uchar b = 0x1161;
- i18n_uchar composite = 0xac00;
i18n_uchar32 result;
ret = i18n_unormalization_compose_pair(NULL, a, b, &result);
}
/**
- * @testcase utc_capi_base_utils_i18n_ures_get_UTF8_string_n2
- * @since_tizen 6.0
- * @description Calls i18n_ures_get_UTF8_string and checks whether function succeeded.
- */
-int utc_capi_base_utils_i18n_ures_get_UTF8_string_n2(void)
-{
- i18n_ures_h uresource;
- int ret = i18n_ures_create("./tests/res/", "testtypes", &uresource);
- assert_eq(ret, I18N_ERROR_NONE);
-
- i18n_ures_h item = NULL;
- int count;
- i18n_ures_type_e type_result;
-
- const char *result = NULL;
- char buffer8[16];
- int32_t result_len = (int32_t)sizeof(buffer8);
-
- ret = i18n_ures_get_size(uresource, &count);
- assert_eq(ret, I18N_ERROR_NONE);
-
- if(count > 10)
- count = 10;
-
- for(int i = 0; i < count; ++i) {
- ret = i18n_ures_get_by_index(uresource, i, item, &item);
- assert_eq(ret, I18N_ERROR_NONE);
-
- ret = i18n_ures_get_type(item, &type_result);
- assert_eq(ret, I18N_ERROR_NONE);
-
- if (I18N_URES_STRING == type_result) {
- ret = i18n_ures_get_UTF8_string(item, buffer8, &result_len, false, &result);
- assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);
- }
- }
- i18n_ures_destroy(uresource);
- return 0;
-}
-
-/**
* @testcase utc_capi_base_utils_i18n_ures_get_binary_p
* @since_tizen 6.0
* @description Calls i18n_ures_get_binary and checks whether function succeeded.
assert_eq(ret, I18N_ERROR_NONE);
const i18n_uchar *result = NULL;
- int32_t result_len = NULL;
+ int32_t result_len = 0;
ret = i18n_ures_get_next_string(uresource, &result_len, NULL, &result);
assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);
*/
int utc_capi_base_utils_i18n_uscript_get_codes_n(void)
{
- static const i18n_uscript_code_e KOREAN[2] = { I18N_USCRIPT_HANGUL, I18N_USCRIPT_HAN };
i18n_uscript_code_e scripts[2];
int32_t len = 0;
*/
int utc_capi_base_utils_i18n_uscript_get_name_n(void)
{
- const char * name = i18n_uscript_get_name(I18N_USCRIPT_INVALID_CODE);
+ i18n_uscript_get_name(I18N_USCRIPT_INVALID_CODE);
ret = get_last_result();
assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);
- name = i18n_uscript_get_name(I18N_USCRIPT_CODE_LIMIT);
+ i18n_uscript_get_name(I18N_USCRIPT_CODE_LIMIT);
ret = get_last_result();
assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);
*/
int utc_capi_base_utils_i18n_uscript_get_short_name_n(void)
{
- const char * name = i18n_uscript_get_short_name(I18N_USCRIPT_INVALID_CODE);
+ i18n_uscript_get_short_name(I18N_USCRIPT_INVALID_CODE);
ret = get_last_result();
assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);
- name = i18n_uscript_get_short_name(I18N_USCRIPT_CODE_LIMIT);
+ i18n_uscript_get_short_name(I18N_USCRIPT_CODE_LIMIT);
ret = get_last_result();
assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);
*/
int utc_capi_base_utils_i18n_uscript_has_script_n(void)
{
- i18n_ubool b = i18n_uscript_has_script(0x063f, I18N_USCRIPT_INVALID_CODE);
+ i18n_uscript_has_script(0x063f, I18N_USCRIPT_INVALID_CODE);
ret = get_last_result();
assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);
- b = i18n_uscript_has_script(0x063f, I18N_USCRIPT_CODE_LIMIT);
+ i18n_uscript_has_script(0x063f, I18N_USCRIPT_CODE_LIMIT);
ret = get_last_result();
assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);
*/
int utc_capi_base_utils_i18n_uscript_is_right_to_left_n(void)
{
- i18n_ubool b = i18n_uscript_is_right_to_left(I18N_USCRIPT_INVALID_CODE);
+ i18n_uscript_is_right_to_left(I18N_USCRIPT_INVALID_CODE);
ret = get_last_result();
assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);
- b = i18n_uscript_is_right_to_left(I18N_USCRIPT_CODE_LIMIT);
+ i18n_uscript_is_right_to_left(I18N_USCRIPT_CODE_LIMIT);
ret = get_last_result();
assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);
*/
int utc_capi_base_utils_i18n_uscript_breaks_between_letters_n(void)
{
- i18n_ubool b = i18n_uscript_breaks_between_letters(I18N_USCRIPT_INVALID_CODE);
+ i18n_uscript_breaks_between_letters(I18N_USCRIPT_INVALID_CODE);
ret = get_last_result();
assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);
- b = i18n_uscript_breaks_between_letters(I18N_USCRIPT_CODE_LIMIT);
+ i18n_uscript_breaks_between_letters(I18N_USCRIPT_CODE_LIMIT);
ret = get_last_result();
assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);
return 0;
*/
int utc_capi_base_utils_i18n_uscript_is_cased_n(void)
{
- i18n_ubool b = i18n_uscript_is_cased(I18N_USCRIPT_INVALID_CODE);
+ i18n_uscript_is_cased(I18N_USCRIPT_INVALID_CODE);
ret = get_last_result();
assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);
- b = i18n_uscript_is_cased(I18N_USCRIPT_CODE_LIMIT);
+ i18n_uscript_is_cased(I18N_USCRIPT_CODE_LIMIT);
ret = get_last_result();
assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);
*/
int utc_capi_base_utils_i18n_utext_create_for_UTF8_p(void)
{
- i18n_utext_h *utLoc;
i18n_uchar32 c;
ret = i18n_utext_create_for_UTF8(NULL, NULL, 0, &uta);
*/
int utc_capi_base_utils_i18n_utext_create_for_UTF8_n(void)
{
- i18n_utext_h *utLoc;
- i18n_uchar32 c;
-
ret = i18n_utext_create_for_UTF8(NULL, NULL, 0, NULL);
assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);
*/
int utc_capi_base_utils_i18n_utext_native_length_n(void)
{
- int64_t len;
-
- len = i18n_utext_native_length(NULL);
+ i18n_utext_native_length(NULL);
ret = get_last_result();
assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);
*/
int utc_capi_base_utils_i18n_utext_is_length_expensive_n(void)
{
- i18n_ubool b;
-
- b = i18n_utext_is_length_expensive(NULL);
+ i18n_utext_is_length_expensive(NULL);
ret = get_last_result();
assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);
*/
int utc_capi_base_utils_i18n_utext_char32_at_n(void)
{
- i18n_uchar32 c;
-
- c = i18n_utext_char32_at(NULL, 0);
+ i18n_utext_char32_at(NULL, 0);
ret = get_last_result();
assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);
*/
int utc_capi_base_utils_i18n_utext_current32_n(void)
{
- i18n_uchar32 c;
-
- c = i18n_utext_current32(NULL);
+ i18n_utext_current32(NULL);
ret = get_last_result();
assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);
*/
int utc_capi_base_utils_i18n_utext_next32_n(void)
{
- i18n_uchar32 c;
-
- c = i18n_utext_current32(NULL);
+ i18n_utext_current32(NULL);
ret = get_last_result();
assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);
*/
int utc_capi_base_utils_i18n_utext_previous32_n(void)
{
- i18n_uchar32 c;
- c = i18n_utext_current32(NULL);
+ i18n_utext_current32(NULL);
ret = get_last_result();
assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);
*/
int utc_capi_base_utils_i18n_utext_next32_from_n(void)
{
- i18n_uchar32 c;
- c = i18n_utext_next32_from(NULL, 1);
+ i18n_utext_next32_from(NULL, 1);
ret = get_last_result();
assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);
*/
int utc_capi_base_utils_i18n_utext_previous32_from_n(void)
{
- i18n_uchar32 c;
- c = i18n_utext_previous32_from(NULL, 2);
+ i18n_utext_previous32_from(NULL, 2);
ret = get_last_result();
assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);
}
/**
- * @testcase utc_capi_base_utils_i18n_utext_set_native_index_n2
- * @since_tizen 6.0
- * @description Calls i18n_utext_set_native_index and checks whether function succeeded.
- */
-int utc_capi_base_utils_i18n_utext_set_native_index_n2(void)
-{
- i18n_uchar uString[] = {0x41, 0x42, 0x43, 0}; //ABC
- int64_t i;
-
- ret = i18n_utext_create_for_uchars(NULL, uString, -1, &uta);
- assert_eq(ret, I18N_ERROR_NONE);
-
- i18n_utext_set_native_index(uta, NULL);
- ret = get_last_result();
- assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);
-
- return 0;
-}
-
-/**
* @testcase utc_capi_base_utils_i18n_utext_get_native_index_n
* @since_tizen 6.0
* @description Calls i18n_utext_get_native_index and checks whether function succeeded.
*/
int utc_capi_base_utils_i18n_utext_get_native_index_n(void)
{
- int64_t i = i18n_utext_get_native_index(NULL);
+ i18n_utext_get_native_index(NULL);
ret = get_last_result();
assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);
*/
int utc_capi_base_utils_i18n_utext_move_index32_n1(void)
{
- i18n_uchar uString[] = {0x41, 0x42, 0x43, 0}; //ABC
- i18n_ubool b;
-
- ret = i18n_utext_create_for_uchars(NULL, uString, -1, &uta);
- assert_eq(ret, I18N_ERROR_NONE);
-
- i18n_utext_set_native_index(uta, 0);
- b = i18n_utext_move_index32(uta, NULL);
- ret = get_last_result();
- assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);
-
-
- return 0;
-}
-
-/**
- * @testcase utc_capi_base_utils_i18n_utext_move_index32_n2
- * @since_tizen 6.0
- * @description Calls i18n_utext_move_index32 and checks whether function succeeded.
- */
-int utc_capi_base_utils_i18n_utext_move_index32_n2(void)
-{
- i18n_ubool b = i18n_utext_move_index32(NULL, 1);
+ i18n_utext_move_index32(NULL, 1);
ret = get_last_result();
assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);
*/
int utc_capi_base_utils_i18n_utext_get_previous_native_index_n(void)
{
- int64_t i = i18n_utext_get_previous_native_index(NULL);
+ i18n_utext_get_previous_native_index(NULL);
ret = get_last_result();
assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);
*/
int utc_capi_base_utils_i18n_utext_has_meta_data_n(void)
{
- i18n_ubool b = i18n_utext_has_meta_data(NULL);
+ i18n_utext_has_meta_data(NULL);
ret = get_last_result();
assert_eq(ret, I18N_ERROR_INVALID_PARAMETER);