diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-07 20:24:25 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-07 20:24:25 +0400 |
commit | c78f02d9908773ec29d10b31c9401bb17eb5eacb (patch) | |
tree | 97d62e6e2bb375b05d41924cd51579a513476fda /source/blender/blenlib/BLI_string_cursor_utf8.h | |
parent | 00781668ce936db58681e2b49d635857e5b2d25e (diff) |
edit to cursor adjustment, use int rather then short to store the cursor position.
Diffstat (limited to 'source/blender/blenlib/BLI_string_cursor_utf8.h')
-rw-r--r-- | source/blender/blenlib/BLI_string_cursor_utf8.h | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/source/blender/blenlib/BLI_string_cursor_utf8.h b/source/blender/blenlib/BLI_string_cursor_utf8.h index 4bdc7f612c6..11c91aac6ac 100644 --- a/source/blender/blenlib/BLI_string_cursor_utf8.h +++ b/source/blender/blenlib/BLI_string_cursor_utf8.h @@ -30,17 +30,6 @@ * \ingroup bli */ -typedef enum strCursorDelimType { - STRCUR_DELIM_NONE, - STRCUR_DELIM_ALPHA, - STRCUR_DELIM_PUNCT, - STRCUR_DELIM_BRACE, - STRCUR_DELIM_OPERATOR, - STRCUR_DELIM_QUOTE, - STRCUR_DELIM_WHITESPACE, - STRCUR_DELIM_OTHER -} strCursorDelimType; - typedef enum strCursorJumpType { STRCUR_JUMP_NONE, STRCUR_JUMP_DELIM, @@ -52,11 +41,11 @@ typedef enum strCursorJumpDirection { STRCUR_DIR_NEXT } strCursorJumpDirection; -int BLI_str_cursor_step_next_utf8(const char *str, size_t maxlen, short *pos); -int BLI_str_cursor_step_prev_utf8(const char *str, size_t maxlen, short *pos); +int BLI_str_cursor_step_next_utf8(const char *str, size_t maxlen, int *pos); +int 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, - short *pos, strCursorJumpDirection direction, + int *pos, strCursorJumpDirection direction, strCursorJumpType jump); #endif /* __BLI_STRING_CURSOR_UTF8_H__ */ |