Blender V4.3
BLI_string_cursor_utf8.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2011 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
11#ifdef __cplusplus
12extern "C" {
13#endif
14
20
25
26bool BLI_str_cursor_step_next_utf8(const char *str, int str_maxlen, int *pos);
27bool BLI_str_cursor_step_prev_utf8(const char *str, int str_maxlen, int *pos);
28
29bool BLI_str_cursor_step_next_utf32(const char32_t *str, int str_maxlen, int *pos);
30bool BLI_str_cursor_step_prev_utf32(const char32_t *str, int str_maxlen, int *pos);
31
32void BLI_str_cursor_step_utf8(const char *str,
33 int str_maxlen,
34 int *pos,
37 bool use_init_step);
38
39void BLI_str_cursor_step_utf32(const char32_t *str,
40 int str_maxlen,
41 int *pos,
44 bool use_init_step);
45
60 const char *str, int str_maxlen, int pos, int *r_start, int *r_end);
61
64 const char32_t *str, int str_maxlen, int pos, int *r_start, int *r_end);
65
66#ifdef __cplusplus
67}
68#endif
bool BLI_str_cursor_step_prev_utf32(const char32_t *str, int str_maxlen, int *pos)
void BLI_str_cursor_step_utf32(const char32_t *str, int str_maxlen, int *pos, eStrCursorJumpDirection direction, eStrCursorJumpType jump, bool use_init_step)
bool BLI_str_cursor_step_next_utf8(const char *str, int str_maxlen, int *pos)
eStrCursorJumpDirection
@ STRCUR_DIR_NEXT
@ STRCUR_DIR_PREV
bool BLI_str_cursor_step_prev_utf8(const char *str, int str_maxlen, int *pos)
void BLI_str_cursor_step_bounds_utf32(const char32_t *str, int str_maxlen, int pos, int *r_start, int *r_end)
void BLI_str_cursor_step_utf8(const char *str, int str_maxlen, int *pos, eStrCursorJumpDirection direction, eStrCursorJumpType jump, bool use_init_step)
void BLI_str_cursor_step_bounds_utf8(const char *str, int str_maxlen, int pos, int *r_start, int *r_end)
bool BLI_str_cursor_step_next_utf32(const char32_t *str, int str_maxlen, int *pos)
@ STRCUR_JUMP_ALL
@ STRCUR_JUMP_NONE
@ STRCUR_JUMP_DELIM
void jump(const btVector3 &v=btVector3(0, 0, 0))
#define str(s)