Blender V5.0
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
10
11#include "BLI_sys_types.h"
12
18
23
24bool BLI_str_cursor_step_next_utf8(const char *str, int str_maxlen, int *pos);
25bool BLI_str_cursor_step_prev_utf8(const char *str, int str_maxlen, int *pos);
26
27bool BLI_str_cursor_step_next_utf32(const char32_t *str, int str_maxlen, int *pos);
28bool BLI_str_cursor_step_prev_utf32(const char32_t *str, int str_maxlen, int *pos);
29
30void BLI_str_cursor_step_utf8(const char *str,
31 int str_maxlen,
32 int *pos,
35 bool use_init_step);
36
37void BLI_str_cursor_step_utf32(const char32_t *str,
38 int str_maxlen,
39 int *pos,
42 bool use_init_step);
43
58 const char *str, int str_maxlen, int pos, int *r_start, int *r_end);
59
62 const char32_t *str, int str_maxlen, int pos, int *r_start, int *r_end);
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)
uint pos