void i18n_utext_set_native_index(i18n_utext_h ut, int64_t native_index)
{
- if(ut == NULL || native_index == NULL)
+ if(ut == NULL || native_index == NULL) {
set_last_result(I18N_ERROR_INVALID_PARAMETER);
+ return;
+ }
set_last_result(I18N_ERROR_NONE);
+ utext_setNativeIndex((UText *)ut, native_index);
- return utext_setNativeIndex((UText *)ut, native_index);
+ return;
}
i18n_ubool i18n_utext_move_index32(i18n_utext_h ut, int32_t delta)
void i18n_utext_freeze(i18n_utext_h ut)
{
- if(ut == NULL)
+ if(ut == NULL) {
set_last_result(I18N_ERROR_INVALID_PARAMETER);
+ return;
+ }
set_last_result(I18N_ERROR_NONE);
utext_freeze((UText *)ut);
+
+ return;
}