#ifdef INTERNATIONAL_SUPPORT
int len = 0;
EvasIntlParType direction = FRIBIDI_TYPE_ON;
- EvasIntlLevel *level_list;
- EvasIntlStrIndex *logical_to_visual;
-
+ EvasIntlLevel *level_list = NULL;
+ EvasIntlStrIndex *logical_to_visual = NULL;
char *visual_text = evas_intl_utf8_to_visual(in_text, &len, &direction, &logical_to_visual, NULL, &level_list);
text = (visual_text) ? visual_text : in_text;
#endif
#ifdef INTERNATIONAL_SUPPORT
int len = 0;
EvasIntlParType direction = FRIBIDI_TYPE_ON;
- EvasIntlLevel *level_list;
- EvasIntlStrIndex *visual_to_logical;
-
+ EvasIntlLevel *level_list = NULL;
+ EvasIntlStrIndex *visual_to_logical = NULL;
char *visual_text = evas_intl_utf8_to_visual(in_text, &len, &direction, NULL, &visual_to_logical, &level_list);
text = (visual_text) ? visual_text : in_text;
#endif
int i;
int logical_chr;
int position = evas_intl_position_visual_to_logical(visual_to_logical, char_index);
-
/* ensure even if the list won't run */
pchr = 0;
- for (logical_chr = 0, i = 0; i <= position; i++) {
- pchr = logical_chr;
- evas_common_font_utf8_get_next((unsigned char *)in_text, &logical_chr);
- }
+ for (logical_chr = 0, i = 0; i <= position; i++)
+ {
+ pchr = logical_chr;
+ evas_common_font_utf8_get_next((unsigned char *)in_text, &logical_chr);
+ }
}
#endif
ret_val = pchr;
}
return -1;
}
+
#if 0
/* last char pos of text at xy pos */
EAPI int
#ifdef INTERNATIONAL_SUPPORT
int len = 0;
EvasIntlParType direction = FRIBIDI_TYPE_ON;
- EvasIntlLevel *level_list;
- EvasIntlStrIndex *visual_to_logical;
-
+ EvasIntlLevel *level_list = NULL;
+ EvasIntlStrIndex *visual_to_logical = NULL;
char *visual_text = evas_intl_utf8_to_visual(in_text, &len, &direction, NULL, &visual_to_logical, &level_list);
text = (visual_text) ? visual_text : in_text;
#endif
*/
int i;
int logical_chr;
-
+
/* ensure even if the list won't run */
pchr = 0;
for (logical_chr = 0, i = 0; i <= char_index; i++) {
return ret_val;
}
-#endif
\ No newline at end of file
+#endif