Blender  V3.3
BLI_string_cursor_utf8.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2011 Blender Foundation. All rights reserved. */
3 
4 #pragma once
5 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 typedef enum eStrCursorJumpType {
19 
24 
25 bool BLI_str_cursor_step_next_utf8(const char *str, size_t maxlen, int *pos);
26 bool BLI_str_cursor_step_prev_utf8(const char *str, size_t maxlen, int *pos);
27 
28 void BLI_str_cursor_step_utf8(const char *str,
29  size_t maxlen,
30  int *pos,
31  eStrCursorJumpDirection direction,
33  bool use_init_step);
34 
35 void BLI_str_cursor_step_utf32(const char32_t *str,
36  size_t maxlen,
37  int *pos,
38  eStrCursorJumpDirection direction,
40  bool use_init_step);
41 
42 #ifdef __cplusplus
43 }
44 #endif
void BLI_str_cursor_step_utf8(const char *str, size_t maxlen, int *pos, eStrCursorJumpDirection direction, eStrCursorJumpType jump, bool use_init_step)
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_utf32(const char32_t *str, size_t maxlen, int *pos, eStrCursorJumpDirection direction, eStrCursorJumpType jump, bool use_init_step)
eStrCursorJumpDirection
@ STRCUR_DIR_NEXT
@ STRCUR_DIR_PREV
eStrCursorJumpType
@ STRCUR_JUMP_ALL
@ STRCUR_JUMP_NONE
@ STRCUR_JUMP_DELIM
void jump(const btVector3 &v=btVector3(0, 0, 0))
#define str(s)
uint pos