33 # pragma GCC diagnostic error "-Wsign-conversion"
114 const char *str_end =
str + (maxlen + 1);
115 const char *str_pos =
str + (*pos);
118 (*pos) += (str_next - str_pos);
119 if ((*
pos) > (int)maxlen) {
120 (*pos) = (int)maxlen;
131 const char *str_pos =
str + (*pos);
134 (*pos) -= (str_pos - str_prev);
149 const int pos_orig = *
pos;
165 while ((*
pos) < maxlen) {
193 const int pos_prev = *
pos;
197 if ((pos_orig - (*
pos)) >= 1) {
221 if ((*
pos) >= (
int)maxlen) {
244 const int pos_orig = *
pos;
261 while ((*
pos) < maxlen) {
290 const int pos_prev = *
pos;
295 if ((pos_orig - (*
pos)) >= 1) {
char * BLI_str_find_prev_char_utf8(const char *str, const char *p) ATTR_NONNULL()
char * BLI_str_find_next_char_utf8(const char *p, const char *end) ATTR_NONNULL(1)
unsigned int BLI_str_utf8_as_unicode(const char *p) ATTR_NONNULL()
void jump(const btVector3 &v=btVector3(0, 0, 0))
void BLI_str_cursor_step_utf8(const char *str, size_t maxlen, int *pos, eStrCursorJumpDirection direction, eStrCursorJumpType jump, bool use_init_step)
static eStrCursorDelimType cursor_delim_type_unicode(const uint uch)
static bool cursor_step_prev_utf32(const char32_t *UNUSED(str), size_t UNUSED(maxlen), int *pos)
bool BLI_str_cursor_step_next_utf8(const char *str, size_t maxlen, int *pos)
@ STRCUR_DELIM_WHITESPACE
@ STRCUR_DELIM_ALPHANUMERIC
void BLI_str_cursor_step_utf32(const char32_t *str, size_t maxlen, int *pos, eStrCursorJumpDirection direction, eStrCursorJumpType jump, bool use_init_step)
static bool cursor_step_next_utf32(const char32_t *UNUSED(str), size_t maxlen, int *pos)
static eStrCursorDelimType cursor_delim_type_utf8(const char *ch_utf8)
bool BLI_str_cursor_step_prev_utf8(const char *str, size_t UNUSED(maxlen), int *pos)