* char *timezone_id = NULL;
*
* error_code = i18n_timezone_create_unknown(&timezone);
- * if (error_code!= I18N_ERROR_NONE) {
+ * if (error_code != I18N_ERROR_NONE) {
* printf("Error creating unknown timezone: %d\n", error_code);
* return EXIT_FAILURE;
* }
* i18n_timezone_get_id(timezone, &timezone_id);
* printf("Created unknown timezone: %s\n", timezone_id);
*
- * i18n_timezone_destroy(timezone);
* free(timezone_id);
+ * i18n_timezone_destroy(timezone);
*
* return EXIT_SUCCESS;
* }
* char *timezone_id = NULL;
*
* error_code = i18n_timezone_create_gmt(&timezone);
- * if (error_code!= I18N_ERROR_NONE) {
+ * if (error_code != I18N_ERROR_NONE) {
* printf("Error creating GMT timezone: %d\n", error_code);
* return EXIT_FAILURE;
* }
* i18n_timezone_get_id(timezone, &timezone_id);
* printf("Created gmt timezone: %s\n", timezone_id);
*
- * i18n_timezone_destroy(timezone);
* free(timezone_id);
+ * i18n_timezone_destroy(timezone);
*
* return EXIT_SUCCESS;
* }
* char *timezone_id = NULL;
*
* error_code = i18n_timezone_create(&timezone, "Asia/Seoul");
- * if (error_code!= I18N_ERROR_NONE) {
+ * if (error_code != I18N_ERROR_NONE) {
* printf("Error creating timezone: %d\n", error_code);
* return EXIT_FAILURE;
* }
* i18n_timezone_get_id(timezone, &timezone_id);
* printf("Created timezone: %s\n", timezone_id);
*
- * i18n_timezone_destroy(timezone);
* free(timezone_id);
+ * i18n_timezone_destroy(timezone);
*
* return EXIT_SUCCESS;
* }
* @param[in] timezone_id a system time zone ID
* @param[in] index a value from 0 to n-1, where n is the out parameter value from i18n_timezone_count_equivalent_ids(timezone_id, &n)
* @param[out] equivalent_timezone_id the ID of the index-th zone in the equivalency group containing 'timezone_id',
- * or an empty string if 'timezone_id' is not a valid system ID or 'index' is out of range
+ * or an empty string if 'timezone_id' is not a valid system ID or 'index' is out of range
*
* @retval #I18N_ERROR_NONE Successful
* @see i18n_timezone_count_equivalent_ids()
* int32_t index = 0;
* char *equivalent_timezone_id;
* ret = i18n_timezone_get_equivalent_id(timezone_id, index, &equivalent_timezone_id);
- * if (error_code!= I18N_ERROR_NONE) {
+ * if (error_code != I18N_ERROR_NONE) {
* printf("Error creating timezone: %d\n", error_code);
* return EXIT_FAILURE;
* }
* char *timezone_id = NULL;
*
* error_code = i18n_timezone_create_default(&timezone);
- * if (error_code!= I18N_ERROR_NONE) {
+ * if (error_code != I18N_ERROR_NONE) {
* printf("Error creating default timezone: %d\n", error_code);
* return EXIT_FAILURE;
* }
* i18n_timezone_get_id(timezone, &timezone_id);
* printf("Created default timezone: %s\n", timezone_id);
*
- * i18n_timezone_destroy(timezone);
* free(timezone_id);
+ * i18n_timezone_destroy(timezone);
*
* return EXIT_SUCCESS;
* }
/**
* @brief Sets the i18n_timezone_h's raw GMT offset
- * (i.e., the number of milliseconds to add to GMT to get local time, before taking daylight savings time into account).
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * (i.e., the number of milliseconds to add to GMT to get local time, before taking daylight savings time into account).
+ * @since_tizen 2.3
*
* @param[in] timezone The i18n_timezone_h to set a raw offset.
* @param[in] offset_milliseconds The new raw GMT offset for this time zone.
* char *timezone_id = NULL;
*
* error_code = i18n_timezone_create(&timezone, "Asia/Seoul");
- * if (error_code!= I18N_ERROR_NONE) {
+ * if (error_code != I18N_ERROR_NONE) {
* printf("Error creating timezone: %d\n", error_code);
* return EXIT_FAILURE;
* }
* i18n_timezone_get_id(timezone, &timezone_id);
* printf("Created timezone: %s\n", timezone_id);
*
- * i18n_timezone_destroy(timezone);
* free(timezone_id);
+ * i18n_timezone_destroy(timezone);
*
* return EXIT_SUCCESS;
* }
* for(; gmt < 15; gmt++) {
* snprintf(timezone_id, 10, (gmt<0)? "GMT%d:00" : "GMT+%d:00", gmt);
* error_code = i18n_timezone_create(&timezone, timezone_id);
- * if (error_code!= I18N_ERROR_NONE) {
+ * if (error_code != I18N_ERROR_NONE) {
* printf("Error i18n_timezone_create: %d\n", error_code);
* return EXIT_FAILURE;
* }
*
* error_code = i18n_timezone_get_display_name(timezone, &display_name);
- * if (error_code!= I18N_ERROR_NONE) {
+ * if (error_code != I18N_ERROR_NONE) {
* printf("Error i18n_timezone_get_display_name: %d\n", error_code);
* i18n_timezone_destroy(timezone);
* return EXIT_FAILURE;
* printf("Created %s timezone display_name: %s\n", timezone_id, display_name);
* free(display_name);
* i18n_timezone_destroy(timezone);
- * timezone = NULL;
* }
*
* return EXIT_SUCCESS;
* for(; gmt < 15; gmt++) {
* snprintf(timezone_id, 10, (gmt<0)? "GMT%d:00" : "GMT+%d:00", gmt);
* error_code = i18n_timezone_create(&timezone, timezone_id);
- * if (error_code!= I18N_ERROR_NONE) {
+ * if (error_code != I18N_ERROR_NONE) {
* printf("Error i18n_timezone_create: %d\n", error_code);
* return EXIT_FAILURE;
* }
*
* error_code = i18n_timezone_get_display_name_with_locale(timezone, language, country, &display_name);
- * if (error_code!= I18N_ERROR_NONE) {
+ * if (error_code != I18N_ERROR_NONE) {
* printf("Error i18n_timezone_get_display_name_with_locale: %d\n", error_code);
* i18n_timezone_destroy(timezone);
* return EXIT_FAILURE;
* free(display_name);
*
* i18n_timezone_destroy(timezone);
- * timezone = NULL;
* }
*
* return EXIT_SUCCESS;
* type = I18N_TIMEZONE_DISPLAY_TYPE_SHORT;
* snprintf(timezone_id, 10, (gmt<0)? "GMT%d:00" : "GMT+%d:00", gmt);
* error_code = i18n_timezone_create(&timezone, timezone_id);
- * if (error_code!= I18N_ERROR_NONE) {
+ * if (error_code != I18N_ERROR_NONE) {
* printf("Error i18n_timezone_create: %d\n", error_code);
* return EXIT_FAILURE;
* }
*
* for(; type <= I18N_TIMEZONE_DISPLAY_TYPE_GENERIC_LOCATION; type++) {
* error_code = i18n_timezone_get_display_name_with_type(timezone, daylight, type, &display_name);
- * if (error_code!= I18N_ERROR_NONE) {
+ * if (error_code != I18N_ERROR_NONE) {
* printf("Error i18n_timezone_get_display_name_with_type: %d\n", error_code);
* i18n_timezone_destroy(timezone);
* return EXIT_FAILURE;
* }
* printf("Created %s timezone display_name: %s\n", timezone_id, display_name);
- * free(display_name);
+ * free(display_name);
* }
*
* error_code = i18n_timezone_destroy(timezone);
- * timezone = NULL;
* }
*
* return EXIT_SUCCESS;
* char *display_name;
*
* error_code = i18n_timezone_create_default(&timezone);
- * if (error_code!= I18N_ERROR_NONE) {
+ * if (error_code != I18N_ERROR_NONE) {
* printf("Error creating default timezone: %d\n", error_code);
* return EXIT_FAILURE;
* }
*
* error_code = i18n_timezone_get_display_name_with_type_locale(timezone, daylight, style, language, country, &display_name);
- * if (error_code!= I18N_ERROR_NONE) {
+ * if (error_code != I18N_ERROR_NONE) {
* printf("Error i18n_timezone_get_display_name_with_type_locale: %d\n", error_code);
* i18n_timezone_destroy(timezone);
* return EXIT_FAILURE;
* i18n_timezone_get_id(timezone, &timezone_id);
* printf("Created %s timezone display_name: %s\n", timezone_id, display_name);
*
- * i18n_timezone_destroy(timezone);
- * free(display_name);
* free(timezone_id);
+ * free(display_name);
+ * i18n_timezone_destroy(timezone);
*
* return EXIT_SUCCESS;
* }
* char *timezone_id = NULL;
*
* error_code = i18n_timezone_create_default(&timezone);
- * if (error_code!= I18N_ERROR_NONE) {
+ * if (error_code != I18N_ERROR_NONE) {
* printf("Error creating default timezone: %d\n", error_code);
* return EXIT_FAILURE;
* }
*
* error_code = i18n_timezone_clone(timezone, &clone);
- * if (error_code!= I18N_ERROR_NONE) {
+ * if (error_code != I18N_ERROR_NONE) {
* printf("Error i18n_timezone_get_display_name_with_type_locale: %d\n", error_code);
* i18n_timezone_destroy(timezone);
* return EXIT_FAILURE;
* i18n_timezone_get_id(clone, &timezone_id);
* printf("Created clone timezone: %s\n", timezone_id);
*
- * i18n_timezone_destroy(timezone);
- * i18n_timezone_destroy(clone);
* free(timezone_id);
+ * i18n_timezone_destroy(clone);
+ * i18n_timezone_destroy(timezone);
*
* return EXIT_SUCCESS;
* }
* char *timezone_id = NULL;
*
* error_code = i18n_timezone_detect_host_timezone(&timezone);
- * if (error_code!= I18N_ERROR_NONE) {
+ * if (error_code != I18N_ERROR_NONE) {
* printf("Error creating timezone: %d\n", error_code);
* return EXIT_FAILURE;
* }
* i18n_timezone_get_id(timezone, &timezone_id);
* printf("Created timezone: %s\n", timezone_id);
*
- * i18n_timezone_destroy(timezone);
* free(timezone_id);
+ * i18n_timezone_destroy(timezone);
*
* return EXIT_SUCCESS;
* }