Blender V4.3
BLI_string.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
11#include <inttypes.h>
12#include <stdarg.h>
13
14#include "BLI_compiler_attrs.h"
15#include "BLI_utildefines.h"
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21/* Buffer size of maximum `uint64` plus commas and terminator. */
22#define BLI_STR_FORMAT_UINT64_GROUPED_SIZE 27
23
24/* Buffer size of maximum `int32` with commas and terminator. */
25#define BLI_STR_FORMAT_INT32_GROUPED_SIZE 15
26
27/* Buffer size of maximum `int64` formatted as byte size (with GiB for example). */
28#define BLI_STR_FORMAT_INT64_BYTE_UNIT_SIZE 15
29
30/* Buffer size of maximum `int64` formatted as byte size, minimum length (".1G" for example). */
31#define BLI_STR_FORMAT_INT64_BYTE_UNIT_COMPACT_SIZE 5
32
33/* Buffer size of maximum `int32` formatted as compact decimal size ("15.6M" for example). */
34#define BLI_STR_FORMAT_INT32_DECIMAL_UNIT_SIZE 7
35
36/* Buffer size of maximum `int32` formatted as very short decimal size ("15B" for example). */
37#define BLI_STR_FORMAT_INT32_INTEGER_UNIT_SIZE 5
38
49
58
67
74char *BLI_strdupcat(const char *__restrict str1,
75 const char *__restrict str2) ATTR_WARN_UNUSED_RESULT
77
86char *BLI_strncpy(char *__restrict dst, const char *__restrict src, size_t dst_maxncpy)
87 ATTR_NONNULL(1, 2);
88
99char *BLI_strncpy_ensure_pad(char *__restrict dst,
100 const char *__restrict src,
101 char pad,
102 size_t dst_maxncpy) ATTR_NONNULL(1, 2);
103
115size_t BLI_strncpy_rlen(char *__restrict dst,
116 const char *__restrict src,
117 size_t dst_maxncpy) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1, 2);
118
119char *BLI_strncat(char *__restrict dst, const char *__restrict src, size_t dst_maxncpy)
120 ATTR_NONNULL(1, 2);
121
128const char *BLI_strchr_or_end(const char *str,
130 ATTR_NONNULL(1);
131
144bool BLI_str_quoted_substr_range(const char *__restrict str,
145 const char *__restrict prefix,
146 int *__restrict r_start,
147 int *__restrict r_end) ATTR_WARN_UNUSED_RESULT
148 ATTR_NONNULL(1, 2, 3, 4);
149#if 0 /* UNUSED */
150char *BLI_str_quoted_substrN(const char *__restrict str,
151 const char *__restrict prefix) ATTR_WARN_UNUSED_RESULT
153#endif
167bool BLI_str_quoted_substr(const char *__restrict str,
168 const char *__restrict prefix,
169 char *result,
170 size_t result_maxncpy);
171
175size_t BLI_snprintf(char *__restrict dst, size_t dst_maxncpy, const char *__restrict format, ...)
180size_t BLI_snprintf_rlen(char *__restrict dst,
181 size_t dst_maxncpy,
182 const char *__restrict format,
183 ...) ATTR_NONNULL(1, 3) ATTR_PRINTF_FORMAT(3, 4);
184
188size_t BLI_vsnprintf(char *__restrict dst,
189 size_t dst_maxncpy,
190 const char *__restrict format,
191 va_list arg) ATTR_PRINTF_FORMAT(3, 0);
195size_t BLI_vsnprintf_rlen(char *__restrict dst,
196 size_t dst_maxncpy,
197 const char *__restrict format,
198 va_list arg) ATTR_PRINTF_FORMAT(3, 0);
199
200char *BLI_sprintfN_with_buffer(char *fixed_buf,
201 size_t fixed_buf_size,
202 size_t *result_len,
203 const char *__restrict format,
206char *BLI_vsprintfN_with_buffer(char *fixed_buf,
207 size_t fixed_buf_size,
208 size_t *result_len,
209 const char *__restrict format,
210 va_list args) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1, 3, 4)
212
217char *BLI_sprintfN(const char *__restrict format, ...) ATTR_WARN_UNUSED_RESULT
220char *BLI_vsprintfN(const char *__restrict format, va_list args) ATTR_NONNULL(1, 2) ATTR_MALLOC
222
235size_t BLI_str_escape(char *__restrict dst, const char *__restrict src, size_t dst_maxncpy)
236 ATTR_NONNULL(1, 2);
249size_t BLI_str_unescape_ex(char *__restrict dst,
250 const char *__restrict src,
251 size_t src_maxncpy,
252 /* Additional arguments. */
253 size_t dst_maxncpy,
254 bool *r_is_complete) ATTR_NONNULL(1, 2, 5);
265size_t BLI_str_unescape(char *__restrict dst, const char *__restrict src, size_t src_maxncpy)
266 ATTR_NONNULL(1, 2);
267
276const char *BLI_str_escape_find_quote(const char *str) ATTR_NONNULL(1);
277
287 ATTR_NONNULL(1);
297 ATTR_NONNULL(1);
309 long long int bytes,
310 bool base_10) ATTR_NONNULL(1);
311
335 long long int bytes,
336 bool base_10) ATTR_NONNULL(1);
337
357 int number_to_format) ATTR_NONNULL(1);
380 int number_to_format) ATTR_NONNULL(1);
386int BLI_strcaseeq(const char *a, const char *b) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1, 2);
390char *BLI_strcasestr(const char *s, const char *find) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1, 2);
394char *BLI_strncasestr(const char *s, const char *find, size_t len) ATTR_WARN_UNUSED_RESULT
395 ATTR_NONNULL(1, 2);
396int BLI_strcasecmp(const char *s1, const char *s2) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1, 2);
397int BLI_strncasecmp(const char *s1, const char *s2, size_t len) ATTR_WARN_UNUSED_RESULT
398 ATTR_NONNULL(1, 2);
403int BLI_strcasecmp_natural(const char *s1, const char *s2) ATTR_WARN_UNUSED_RESULT
404 ATTR_NONNULL(1, 2);
409int BLI_strcmp_ignore_pad(const char *str1, const char *str2, char pad) ATTR_WARN_UNUSED_RESULT
410 ATTR_NONNULL(1, 2);
411
419size_t BLI_strnlen(const char *str, size_t maxlen) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1);
420
425void BLI_str_tolower_ascii(char *str, size_t len) ATTR_NONNULL(1);
426void BLI_str_toupper_ascii(char *str, size_t len) ATTR_NONNULL(1);
427
430
434void BLI_str_rstrip(char *str) ATTR_NONNULL(1);
445
454
463int BLI_str_index_in_array_n(const char *__restrict str,
464 const char **__restrict str_array,
465 int str_array_len) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1);
473int BLI_str_index_in_array(const char *__restrict str,
474 const char **__restrict str_array) ATTR_WARN_UNUSED_RESULT
475 ATTR_NONNULL(1, 2);
476
484bool BLI_str_startswith(const char *__restrict str,
485 const char *__restrict start) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1, 2);
493bool BLI_str_endswith(const char *__restrict str, const char *__restrict end) ATTR_NONNULL(1, 2);
494bool BLI_strn_endswith(const char *__restrict str, const char *__restrict end, size_t str_len)
495 ATTR_NONNULL(1, 2);
496
507size_t BLI_str_partition(const char *str, const char delim[], const char **sep, const char **suf)
508 ATTR_NONNULL(1, 2, 3, 4);
519size_t BLI_str_rpartition(const char *str, const char delim[], const char **sep, const char **suf)
520 ATTR_NONNULL(1, 2, 3, 4);
533size_t BLI_str_partition_ex(const char *str,
534 const char *end,
535 const char delim[],
536 const char **sep,
537 const char **suf,
538 bool from_right) ATTR_NONNULL(1, 3, 4, 5);
539
541bool BLI_string_has_word_prefix(const char *haystack,
542 const char *needle,
543 size_t needle_len) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1, 2);
544bool BLI_string_all_words_matched(const char *name,
545 const char *str,
546 int (*words)[2],
547 int words_len) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1, 2, 3);
548
560 size_t str_maxlen,
561 char delim,
562 int r_words[][2],
563 int words_max) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1, 4);
564
582bool BLI_string_elem_split_by_delim(const char *haystack,
583 const char delim,
584 const char *needle) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1, 3);
585
586/* -------------------------------------------------------------------- */
592#ifndef __cplusplus
593# define STRNCPY(dst, src) BLI_strncpy(dst, src, ARRAY_SIZE(dst))
594#endif
595
596#define STRNCPY_RLEN(dst, src) BLI_strncpy_rlen(dst, src, ARRAY_SIZE(dst))
597#define SNPRINTF(dst, format, ...) BLI_snprintf(dst, ARRAY_SIZE(dst), format, __VA_ARGS__)
598#define SNPRINTF_RLEN(dst, format, ...) \
599 BLI_snprintf_rlen(dst, ARRAY_SIZE(dst), format, __VA_ARGS__)
600#define VSNPRINTF(dst, format, args) BLI_vsnprintf(dst, ARRAY_SIZE(dst), format, args)
601#define VSNPRINTF_RLEN(dst, format, args) BLI_vsnprintf_rlen(dst, ARRAY_SIZE(dst), format, args)
602#define STR_CONCAT(dst, len, suffix) \
603 len += BLI_strncpy_rlen(dst + len, suffix, ARRAY_SIZE(dst) - len)
604#define STR_CONCATF(dst, len, format, ...) \
605 len += BLI_snprintf_rlen(dst + len, ARRAY_SIZE(dst) - len, format, __VA_ARGS__)
606
609/* -------------------------------------------------------------------- */
615/* Manual line breaks for readability. */
616/* clang-format off */
617/* STR_ELEM#(v, ...): is the first arg equal any others? */
618/* Internal helpers. */
619#define _VA_STR_ELEM2(v, a) (strcmp(v, a) == 0)
620#define _VA_STR_ELEM3(v, a, b) \
621 (_VA_STR_ELEM2(v, a) || (_VA_STR_ELEM2(v, b)))
622#define _VA_STR_ELEM4(v, a, b, c) \
623 (_VA_STR_ELEM3(v, a, b) || (_VA_STR_ELEM2(v, c)))
624#define _VA_STR_ELEM5(v, a, b, c, d) \
625 (_VA_STR_ELEM4(v, a, b, c) || (_VA_STR_ELEM2(v, d)))
626#define _VA_STR_ELEM6(v, a, b, c, d, e) \
627 (_VA_STR_ELEM5(v, a, b, c, d) || (_VA_STR_ELEM2(v, e)))
628#define _VA_STR_ELEM7(v, a, b, c, d, e, f) \
629 (_VA_STR_ELEM6(v, a, b, c, d, e) || (_VA_STR_ELEM2(v, f)))
630#define _VA_STR_ELEM8(v, a, b, c, d, e, f, g) \
631 (_VA_STR_ELEM7(v, a, b, c, d, e, f) || (_VA_STR_ELEM2(v, g)))
632#define _VA_STR_ELEM9(v, a, b, c, d, e, f, g, h) \
633 (_VA_STR_ELEM8(v, a, b, c, d, e, f, g) || (_VA_STR_ELEM2(v, h)))
634#define _VA_STR_ELEM10(v, a, b, c, d, e, f, g, h, i) \
635 (_VA_STR_ELEM9(v, a, b, c, d, e, f, g, h) || (_VA_STR_ELEM2(v, i)))
636#define _VA_STR_ELEM11(v, a, b, c, d, e, f, g, h, i, j) \
637 (_VA_STR_ELEM10(v, a, b, c, d, e, f, g, h, i) || (_VA_STR_ELEM2(v, j)))
638#define _VA_STR_ELEM12(v, a, b, c, d, e, f, g, h, i, j, k) \
639 (_VA_STR_ELEM11(v, a, b, c, d, e, f, g, h, i, j) || (_VA_STR_ELEM2(v, k)))
640#define _VA_STR_ELEM13(v, a, b, c, d, e, f, g, h, i, j, k, l) \
641 (_VA_STR_ELEM12(v, a, b, c, d, e, f, g, h, i, j, k) || (_VA_STR_ELEM2(v, l)))
642#define _VA_STR_ELEM14(v, a, b, c, d, e, f, g, h, i, j, k, l, m) \
643 (_VA_STR_ELEM13(v, a, b, c, d, e, f, g, h, i, j, k, l) || (_VA_STR_ELEM2(v, m)))
644#define _VA_STR_ELEM15(v, a, b, c, d, e, f, g, h, i, j, k, l, m, n) \
645 (_VA_STR_ELEM14(v, a, b, c, d, e, f, g, h, i, j, k, l, m) || (_VA_STR_ELEM2(v, n)))
646#define _VA_STR_ELEM16(v, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) \
647 (_VA_STR_ELEM15(v, a, b, c, d, e, f, g, h, i, j, k, l, m, n) || (_VA_STR_ELEM2(v, o)))
648#define _VA_STR_ELEM17(v, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) \
649 (_VA_STR_ELEM16(v, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) || (_VA_STR_ELEM2(v, p)))
650/* clang-format on */
651
652/* reusable STR_ELEM macro */
653#define STR_ELEM(...) VA_NARGS_CALL_OVERLOAD(_VA_STR_ELEM, __VA_ARGS__)
654
657/* -------------------------------------------------------------------- */
660#ifdef WITH_STRSIZE_DEBUG
661# define BLI_string_debug_size(str, str_maxncpy) memset(str, 0xff, sizeof(*(str)) * str_maxncpy)
666void BLI_string_debug_size_after_nil(char *str, size_t str_maxncpy);
667#else
668# define BLI_string_debug_size(str, str_maxncpy) \
669 if (0) { \
670 (void)str, (void)str_maxncpy; \
671 } \
672 ((void)0)
673# define BLI_string_debug_size_after_nil(str, str_maxncpy) BLI_string_debug_size(str, str_maxncpy)
674#endif /* !WITH_STRSIZE_DEBUG */
675
677#ifdef __cplusplus
678}
679
687template<size_t N> inline char *STRNCPY(char (&dst)[N], const char *src)
688{
689 return BLI_strncpy(dst, src, N);
690}
691
692#endif /* __cplusplus */
#define ATTR_WARN_UNUSED_RESULT
#define ATTR_RETURNS_NONNULL
#define ATTR_PRINTF_FORMAT(format_param, dots_param)
#define ATTR_NONNULL(...)
char * BLI_sprintfN(const char *__restrict format,...) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) ATTR_MALLOC ATTR_PRINTF_FORMAT(1
char * BLI_strdup(const char *str) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) ATTR_MALLOC
Definition string.c:40
size_t size_t BLI_str_unescape_ex(char *__restrict dst, const char *__restrict src, size_t src_maxncpy, size_t dst_maxncpy, bool *r_is_complete) ATTR_NONNULL(1
char BLI_tolower_ascii(const char c) ATTR_WARN_UNUSED_RESULT
Definition string.c:942
int bool BLI_str_startswith(const char *__restrict str, const char *__restrict start) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
int BLI_str_index_in_array_n(const char *__restrict str, const char **__restrict str_array, int str_array_len) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
Definition string.c:842
size_t BLI_str_format_int_grouped(char dst[BLI_STR_FORMAT_INT32_GROUPED_SIZE], int num) ATTR_NONNULL(1)
Definition string.c:1168
size_t size_t size_t const char * BLI_str_escape_find_quote(const char *str) ATTR_NONNULL(1)
Definition string.c:434
int char char int int BLI_strncasecmp(const char *s1, const char *s2, size_t len) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
size_t size_t BLI_vsnprintf_rlen(char *__restrict dst, size_t dst_maxncpy, const char *__restrict format, va_list arg) ATTR_PRINTF_FORMAT(3
char * BLI_strdupcat(const char *__restrict str1, const char *__restrict str2) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
void BLI_str_rstrip(char *str) ATTR_NONNULL(1)
Definition string.c:976
int bool bool bool size_t BLI_str_partition(const char *str, const char delim[], const char **sep, const char **suf) ATTR_NONNULL(1
void BLI_str_toupper_ascii(char *str, size_t len) ATTR_NONNULL(1)
Definition string.c:961
int bool bool bool BLI_strn_endswith(const char *__restrict str, const char *__restrict end, size_t str_len) ATTR_NONNULL(1
char * BLI_vsprintfN_with_buffer(char *fixed_buf, size_t fixed_buf_size, size_t *result_len, const char *__restrict format, va_list args) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
int bool bool bool size_t size_t size_t int BLI_string_max_possible_word_count(int str_len) ATTR_WARN_UNUSED_RESULT
Definition string.c:569
#define STRNCPY(dst, src)
Definition BLI_string.h:593
char * BLI_strdupn(const char *str, size_t len) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
Definition string.c:29
char char size_t char const char * BLI_strchr_or_end(const char *str, char ch) ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL ATTR_NONNULL(1)
Definition string.c:927
size_t size_t size_t BLI_str_unescape(char *__restrict dst, const char *__restrict src, size_t src_maxncpy) ATTR_NONNULL(1
#define BLI_STR_FORMAT_INT64_BYTE_UNIT_SIZE
Definition BLI_string.h:28
bool BLI_str_quoted_substr_range(const char *__restrict str, const char *__restrict prefix, int *__restrict r_start, int *__restrict r_end) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
int BLI_str_rstrip_digits(char *str) ATTR_NONNULL()
Definition string.c:1008
int char char int int int int size_t BLI_strnlen(const char *str, size_t maxlen) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
Definition string.c:909
char char * BLI_vsprintfN(const char *__restrict format, va_list args) ATTR_NONNULL(1
char * BLI_strdup_null(const char *str) ATTR_WARN_UNUSED_RESULT ATTR_MALLOC
Definition string.c:45
char BLI_toupper_ascii(const char c) ATTR_WARN_UNUSED_RESULT
Definition string.c:947
#define BLI_STR_FORMAT_INT32_DECIMAL_UNIT_SIZE
Definition BLI_string.h:34
char ATTR_MALLOC
Definition BLI_string.h:76
#define BLI_string_debug_size_after_nil(str, str_maxncpy)
Definition BLI_string.h:673
#define BLI_STR_FORMAT_INT32_GROUPED_SIZE
Definition BLI_string.h:25
void BLI_str_format_byte_unit(char dst[BLI_STR_FORMAT_INT64_BYTE_UNIT_SIZE], long long int bytes, bool base_10) ATTR_NONNULL(1)
Definition string.c:1192
size_t size_t char * BLI_sprintfN_with_buffer(char *fixed_buf, size_t fixed_buf_size, size_t *result_len, const char *__restrict format,...) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
bool bool BLI_string_all_words_matched(const char *name, const char *str, int(*words)[2], int words_len) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
int BLI_str_rstrip_float_zero(char *str, char pad) ATTR_NONNULL(1)
Definition string.c:988
int bool bool bool size_t size_t BLI_str_rpartition(const char *str, const char delim[], const char **sep, const char **suf) ATTR_NONNULL(1
#define BLI_STR_FORMAT_INT32_INTEGER_UNIT_SIZE
Definition BLI_string.h:37
bool BLI_string_has_word_prefix(const char *haystack, const char *needle, size_t needle_len) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
#define BLI_STR_FORMAT_UINT64_GROUPED_SIZE
Definition BLI_string.h:22
char char size_t char * BLI_strncat(char *__restrict dst, const char *__restrict src, size_t dst_maxncpy) ATTR_NONNULL(1
size_t BLI_snprintf_rlen(char *__restrict dst, size_t dst_maxncpy, const char *__restrict format,...) ATTR_NONNULL(1
int char char int BLI_strcasecmp(const char *s1, const char *s2) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
void BLI_str_format_integer_unit(char dst[BLI_STR_FORMAT_INT32_INTEGER_UNIT_SIZE], int number_to_format) ATTR_NONNULL(1)
Definition string.c:1279
int char char int int int int BLI_strcmp_ignore_pad(const char *str1, const char *str2, char pad) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
int char char * BLI_strncasestr(const char *s, const char *find, size_t len) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
void BLI_str_format_byte_unit_compact(char dst[BLI_STR_FORMAT_INT64_BYTE_UNIT_COMPACT_SIZE], long long int bytes, bool base_10) ATTR_NONNULL(1)
Definition string.c:1222
int bool bool bool size_t size_t size_t BLI_str_partition_ex(const char *str, const char *end, const char delim[], const char **sep, const char **suf, bool from_right) ATTR_NONNULL(1
void BLI_str_format_decimal_unit(char dst[BLI_STR_FORMAT_INT32_DECIMAL_UNIT_SIZE], int number_to_format) ATTR_NONNULL(1)
Definition string.c:1255
size_t BLI_snprintf(char *__restrict dst, size_t dst_maxncpy, const char *__restrict format,...) ATTR_NONNULL(1
int char char int int int BLI_strcasecmp_natural(const char *s1, const char *s2) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
size_t BLI_str_format_uint64_grouped(char dst[BLI_STR_FORMAT_UINT64_GROUPED_SIZE], uint64_t num) ATTR_NONNULL(1)
Definition string.c:1180
char char * BLI_strncpy_ensure_pad(char *__restrict dst, const char *__restrict src, char pad, size_t dst_maxncpy) ATTR_NONNULL(1
int BLI_strcaseeq(const char *a, const char *b) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
void BLI_str_tolower_ascii(char *str, size_t len) ATTR_NONNULL(1)
Definition string.c:952
bool bool int bool BLI_string_elem_split_by_delim(const char *haystack, const char delim, const char *needle) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
size_t BLI_vsnprintf(char *__restrict dst, size_t dst_maxncpy, const char *__restrict format, va_list arg) ATTR_PRINTF_FORMAT(3
int bool bool BLI_str_endswith(const char *__restrict str, const char *__restrict end) ATTR_NONNULL(1
bool bool int BLI_string_find_split_words(const char *str, size_t str_maxlen, char delim, int r_words[][2], int words_max) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
char char size_t BLI_strncpy_rlen(char *__restrict dst, const char *__restrict src, size_t dst_maxncpy) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
int BLI_str_index_in_array(const char *__restrict str, const char **__restrict str_array) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
int char * BLI_strcasestr(const char *s, const char *find) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
#define BLI_STR_FORMAT_INT64_BYTE_UNIT_COMPACT_SIZE
Definition BLI_string.h:31
bool bool BLI_str_quoted_substr(const char *__restrict str, const char *__restrict prefix, char *result, size_t result_maxncpy)
Definition string.c:517
size_t BLI_str_escape(char *__restrict dst, const char *__restrict src, size_t dst_maxncpy) ATTR_NONNULL(1
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, size_t dst_maxncpy) ATTR_NONNULL(1
int pad[32 - sizeof(int)]
local_group_size(16, 16) .push_constant(Type b
int len
#define str(s)
format
#define N
unsigned __int64 uint64_t
Definition stdint.h:90