diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:17:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:21:24 +0300 |
commit | e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch) | |
tree | 8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/blenlib/BLI_string_cursor_utf8.h | |
parent | b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff) |
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'source/blender/blenlib/BLI_string_cursor_utf8.h')
-rw-r--r-- | source/blender/blenlib/BLI_string_cursor_utf8.h | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/source/blender/blenlib/BLI_string_cursor_utf8.h b/source/blender/blenlib/BLI_string_cursor_utf8.h index 4037b403712..2d0acabc9de 100644 --- a/source/blender/blenlib/BLI_string_cursor_utf8.h +++ b/source/blender/blenlib/BLI_string_cursor_utf8.h @@ -25,27 +25,31 @@ */ typedef enum eStrCursorJumpType { - STRCUR_JUMP_NONE, - STRCUR_JUMP_DELIM, - STRCUR_JUMP_ALL, + STRCUR_JUMP_NONE, + STRCUR_JUMP_DELIM, + STRCUR_JUMP_ALL, } eStrCursorJumpType; typedef enum eStrCursorJumpDirection { - STRCUR_DIR_PREV, - STRCUR_DIR_NEXT, + STRCUR_DIR_PREV, + STRCUR_DIR_NEXT, } eStrCursorJumpDirection; 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_wchar( - const wchar_t *str, size_t maxlen, - int *pos, eStrCursorJumpDirection direction, - eStrCursorJumpType jump, bool use_init_step); +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_wchar(const wchar_t *str, + size_t maxlen, + int *pos, + eStrCursorJumpDirection direction, + eStrCursorJumpType jump, + bool use_init_step); #endif /* __BLI_STRING_CURSOR_UTF8_H__ */ |