lv_bidi_get_logical_pos() function
Get the logical position of a character in a line
Arguments
str_in
the input string. Can be only one line.
bidi_txt
internally the text is bidi processed which buffer can be get here. If not required anymore has to freed with `lv_free()` Can be `NULL` is unused
len
length of the line in character count
base_dir
base direction of the text: `LV_BASE_DIR_LTR` or `LV_BASE_DIR_RTL`
visual_pos
the visual character position which logical position should be get
is_rtl
tell the char at `visual_pos` is RTL or LTR context
Return value
the logical character position