Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/BLI_string_cursor_utf8.h
| Show All 18 Lines | |||||
| #ifndef __BLI_STRING_CURSOR_UTF8_H__ | #ifndef __BLI_STRING_CURSOR_UTF8_H__ | ||||
| #define __BLI_STRING_CURSOR_UTF8_H__ | #define __BLI_STRING_CURSOR_UTF8_H__ | ||||
| /** \file | /** \file | ||||
| * \ingroup bli | * \ingroup bli | ||||
| */ | */ | ||||
| #include <uchar.h> | |||||
| typedef enum eStrCursorJumpType { | typedef enum eStrCursorJumpType { | ||||
| STRCUR_JUMP_NONE, | STRCUR_JUMP_NONE, | ||||
| STRCUR_JUMP_DELIM, | STRCUR_JUMP_DELIM, | ||||
| STRCUR_JUMP_ALL, | STRCUR_JUMP_ALL, | ||||
| } eStrCursorJumpType; | } eStrCursorJumpType; | ||||
| typedef enum eStrCursorJumpDirection { | typedef enum eStrCursorJumpDirection { | ||||
| STRCUR_DIR_PREV, | STRCUR_DIR_PREV, | ||||
| STRCUR_DIR_NEXT, | STRCUR_DIR_NEXT, | ||||
| } eStrCursorJumpDirection; | } eStrCursorJumpDirection; | ||||
| bool BLI_str_cursor_step_next_utf8(const char *str, size_t maxlen, int *pos); | 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); | bool BLI_str_cursor_step_prev_utf8(const char *str, size_t maxlen, int *pos); | ||||
| void BLI_str_cursor_step_utf8(const char *str, | void BLI_str_cursor_step_utf8(const char *str, | ||||
| size_t maxlen, | size_t maxlen, | ||||
| int *pos, | int *pos, | ||||
| eStrCursorJumpDirection direction, | eStrCursorJumpDirection direction, | ||||
| eStrCursorJumpType jump, | eStrCursorJumpType jump, | ||||
| bool use_init_step); | bool use_init_step); | ||||
| void BLI_str_cursor_step_wchar(const wchar_t *str, | void BLI_str_cursor_step_utf32(const char32_t *str, | ||||
| size_t maxlen, | size_t maxlen, | ||||
| int *pos, | int *pos, | ||||
| eStrCursorJumpDirection direction, | eStrCursorJumpDirection direction, | ||||
| eStrCursorJumpType jump, | eStrCursorJumpType jump, | ||||
| bool use_init_step); | bool use_init_step); | ||||
| #endif /* __BLI_STRING_CURSOR_UTF8_H__ */ | #endif /* __BLI_STRING_CURSOR_UTF8_H__ */ | ||||