Blender
V3.3
|
Go to the source code of this file.
Typedefs | |
typedef enum eStrCursorJumpType | eStrCursorJumpType |
typedef enum eStrCursorJumpDirection | eStrCursorJumpDirection |
Enumerations | |
enum | eStrCursorJumpType { STRCUR_JUMP_NONE , STRCUR_JUMP_DELIM , STRCUR_JUMP_ALL } |
enum | eStrCursorJumpDirection { STRCUR_DIR_PREV , STRCUR_DIR_NEXT } |
Functions | |
bool | BLI_str_cursor_step_next_utf8 (const char *str, size_t maxlen, int *pos) |
bool | BLI_str_cursor_step_prev_utf8 (const char *str, size_t maxlen, int *pos) |
void | BLI_str_cursor_step_utf8 (const char *str, size_t maxlen, int *pos, eStrCursorJumpDirection direction, eStrCursorJumpType jump, bool use_init_step) |
void | BLI_str_cursor_step_utf32 (const char32_t *str, size_t maxlen, int *pos, eStrCursorJumpDirection direction, eStrCursorJumpType jump, bool use_init_step) |
typedef enum eStrCursorJumpDirection eStrCursorJumpDirection |
typedef enum eStrCursorJumpType eStrCursorJumpType |
Enumerator | |
---|---|
STRCUR_DIR_PREV | |
STRCUR_DIR_NEXT |
Definition at line 20 of file BLI_string_cursor_utf8.h.
enum eStrCursorJumpType |
Enumerator | |
---|---|
STRCUR_JUMP_NONE | |
STRCUR_JUMP_DELIM | |
STRCUR_JUMP_ALL |
Definition at line 14 of file BLI_string_cursor_utf8.h.
bool BLI_str_cursor_step_next_utf8 | ( | const char * | str, |
size_t | maxlen, | ||
int * | pos | ||
) |
Definition at line 99 of file string_cursor_utf8.c.
References BLI_str_find_next_char_utf8(), pos, and str.
Referenced by BLI_str_cursor_step_utf8().
bool BLI_str_cursor_step_prev_utf8 | ( | const char * | str, |
size_t | maxlen, | ||
int * | pos | ||
) |
Referenced by ui_textedit_set_cursor_pos().
void BLI_str_cursor_step_utf32 | ( | const char32_t * | str, |
size_t | maxlen, | ||
int * | pos, | ||
eStrCursorJumpDirection | direction, | ||
eStrCursorJumpType | jump, | ||
bool | use_init_step | ||
) |
Definition at line 228 of file string_cursor_utf8.c.
References BLI_assert, BLI_assert_unreachable, cursor_delim_type_unicode(), cursor_step_next_utf32(), cursor_step_prev_utf32(), jump(), pos, str, STRCUR_DELIM_NONE, STRCUR_DIR_NEXT, STRCUR_DIR_PREV, STRCUR_JUMP_ALL, STRCUR_JUMP_DELIM, and STRCUR_JUMP_NONE.
Referenced by delete_exec(), and move_cursor().
void BLI_str_cursor_step_utf8 | ( | const char * | str, |
size_t | maxlen, | ||
int * | pos, | ||
eStrCursorJumpDirection | direction, | ||
eStrCursorJumpType | jump, | ||
bool | use_init_step | ||
) |
Definition at line 127 of file string_cursor_utf8.c.
References BLI_assert, BLI_assert_unreachable, BLI_str_cursor_step_next_utf8(), BLI_str_cursor_step_prev_utf8(), cursor_delim_type_utf8(), jump(), pos, str, STRCUR_DELIM_NONE, STRCUR_DIR_NEXT, STRCUR_DIR_PREV, STRCUR_JUMP_ALL, STRCUR_JUMP_DELIM, and STRCUR_JUMP_NONE.
Referenced by console_delete_exec(), console_move_exec(), console_selectword_invoke(), handleNumInput(), txt_jump_left(), txt_jump_right(), ui_textedit_delete(), and ui_textedit_move().