73 const
char *__restrict
src,
91 const
char *__restrict
src,
110 const
char *__restrict prefix,
111 int *__restrict r_start,
115 char *BLI_str_quoted_substrN(
const char *__restrict
str,
133 const char *__restrict prefix,
135 size_t result_maxlen);
150 const char *__restrict substr_old,
172 const
char *replace_table[][2],
173 int replace_table_len);
191 const
char *__restrict
format,
198 const
char *__restrict
format,
220 size_t BLI_str_escape(
char *__restrict dst, const
char *__restrict
src,
size_t dst_maxncpy)
235 const
char *__restrict
src,
250 size_t BLI_str_unescape(
char *__restrict dst, const
char *__restrict
src,
size_t src_maxncpy)
380 const
char **__restrict str_array,
421 size_t BLI_str_partition(const
char *
str, const
char delim[], const
char **sep, const
char **suf)
483 #define STRNCPY(dst, src) BLI_strncpy(dst, src, ARRAY_SIZE(dst))
484 #define STRNCPY_RLEN(dst, src) BLI_strncpy_rlen(dst, src, ARRAY_SIZE(dst))
485 #define SNPRINTF(dst, format, ...) BLI_snprintf(dst, ARRAY_SIZE(dst), format, __VA_ARGS__)
486 #define SNPRINTF_RLEN(dst, format, ...) \
487 BLI_snprintf_rlen(dst, ARRAY_SIZE(dst), format, __VA_ARGS__)
488 #define STR_CONCAT(dst, len, suffix) \
489 len += BLI_strncpy_rlen(dst + len, suffix, ARRAY_SIZE(dst) - len)
490 #define STR_CONCATF(dst, len, format, ...) \
491 len += BLI_snprintf_rlen(dst + len, ARRAY_SIZE(dst) - len, format, __VA_ARGS__)
505 #define _VA_STR_ELEM2(v, a) (strcmp(v, a) == 0)
506 #define _VA_STR_ELEM3(v, a, b) \
507 (_VA_STR_ELEM2(v, a) || (_VA_STR_ELEM2(v, b)))
508 #define _VA_STR_ELEM4(v, a, b, c) \
509 (_VA_STR_ELEM3(v, a, b) || (_VA_STR_ELEM2(v, c)))
510 #define _VA_STR_ELEM5(v, a, b, c, d) \
511 (_VA_STR_ELEM4(v, a, b, c) || (_VA_STR_ELEM2(v, d)))
512 #define _VA_STR_ELEM6(v, a, b, c, d, e) \
513 (_VA_STR_ELEM5(v, a, b, c, d) || (_VA_STR_ELEM2(v, e)))
514 #define _VA_STR_ELEM7(v, a, b, c, d, e, f) \
515 (_VA_STR_ELEM6(v, a, b, c, d, e) || (_VA_STR_ELEM2(v, f)))
516 #define _VA_STR_ELEM8(v, a, b, c, d, e, f, g) \
517 (_VA_STR_ELEM7(v, a, b, c, d, e, f) || (_VA_STR_ELEM2(v, g)))
518 #define _VA_STR_ELEM9(v, a, b, c, d, e, f, g, h) \
519 (_VA_STR_ELEM8(v, a, b, c, d, e, f, g) || (_VA_STR_ELEM2(v, h)))
520 #define _VA_STR_ELEM10(v, a, b, c, d, e, f, g, h, i) \
521 (_VA_STR_ELEM9(v, a, b, c, d, e, f, g, h) || (_VA_STR_ELEM2(v, i)))
522 #define _VA_STR_ELEM11(v, a, b, c, d, e, f, g, h, i, j) \
523 (_VA_STR_ELEM10(v, a, b, c, d, e, f, g, h, i) || (_VA_STR_ELEM2(v, j)))
524 #define _VA_STR_ELEM12(v, a, b, c, d, e, f, g, h, i, j, k) \
525 (_VA_STR_ELEM11(v, a, b, c, d, e, f, g, h, i, j) || (_VA_STR_ELEM2(v, k)))
526 #define _VA_STR_ELEM13(v, a, b, c, d, e, f, g, h, i, j, k, l) \
527 (_VA_STR_ELEM12(v, a, b, c, d, e, f, g, h, i, j, k) || (_VA_STR_ELEM2(v, l)))
528 #define _VA_STR_ELEM14(v, a, b, c, d, e, f, g, h, i, j, k, l, m) \
529 (_VA_STR_ELEM13(v, a, b, c, d, e, f, g, h, i, j, k, l) || (_VA_STR_ELEM2(v, m)))
530 #define _VA_STR_ELEM15(v, a, b, c, d, e, f, g, h, i, j, k, l, m, n) \
531 (_VA_STR_ELEM14(v, a, b, c, d, e, f, g, h, i, j, k, l, m) || (_VA_STR_ELEM2(v, n)))
532 #define _VA_STR_ELEM16(v, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) \
533 (_VA_STR_ELEM15(v, a, b, c, d, e, f, g, h, i, j, k, l, m, n) || (_VA_STR_ELEM2(v, o)))
534 #define _VA_STR_ELEM17(v, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) \
535 (_VA_STR_ELEM16(v, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) || (_VA_STR_ELEM2(v, p)))
539 #define STR_ELEM(...) VA_NARGS_CALL_OVERLOAD(_VA_STR_ELEM, __VA_ARGS__)
#define ATTR_WARN_UNUSED_RESULT
#define ATTR_NONNULL(...)
int BLI_str_index_in_array(const char *__restrict str, const char **__restrict str_array) ATTR_NONNULL()
void BLI_str_replace_char(char *str, char src, char dst) ATTR_NONNULL()
bool BLI_str_startswith(const char *__restrict str, const char *__restrict start) ATTR_NONNULL()
size_t size_t BLI_vsnprintf_rlen(char *__restrict buffer, size_t maxncpy, const char *__restrict format, va_list arg) ATTR_PRINTF_FORMAT(3
size_t size_t char * BLI_sprintfN(const char *__restrict format,...) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) ATTR_MALLOC ATTR_PRINTF_FORMAT(1
int BLI_str_rstrip_float_zero(char *str, char pad) ATTR_NONNULL()
size_t ATTR_PRINTF_FORMAT(3, 4)
size_t int BLI_string_max_possible_word_count(int str_len)
size_t BLI_str_unescape(char *__restrict dst, const char *__restrict src, size_t src_maxncpy) ATTR_NONNULL()
bool BLI_string_all_words_matched(const char *name, const char *str, int(*words)[2], int words_len)
char * BLI_strncasestr(const char *s, const char *find, size_t len) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void BLI_str_rstrip(char *str) ATTR_NONNULL()
bool BLI_string_has_word_prefix(const char *haystack, const char *needle, size_t needle_len)
size_t BLI_strncpy_rlen(char *__restrict dst, const char *__restrict src, size_t maxncpy) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
int BLI_strncasecmp(const char *s1, const char *s2, size_t len) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
char * BLI_strcasestr(const char *s, const char *find) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
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
size_t BLI_strnlen(const char *str, size_t maxlen) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
int BLI_strcasecmp(const char *s1, const char *s2) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
bool BLI_strn_endswith(const char *__restrict str, const char *__restrict end, size_t length) ATTR_NONNULL()
size_t BLI_strcpy_rlen(char *__restrict dst, const char *__restrict src) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
char * BLI_str_replaceN(const char *__restrict str, const char *__restrict substr_old, const char *__restrict substr_new) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL() ATTR_MALLOC
int BLI_strcmp_ignore_pad(const char *str1, const char *str2, char pad) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
bool BLI_str_replace_table_exact(char *string, size_t string_len, const char *replace_table[][2], int replace_table_len)
void BLI_str_tolower_ascii(char *str, size_t len) ATTR_NONNULL()
int BLI_strcasecmp_natural(const char *s1, const char *s2) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
int BLI_string_find_split_words(const char *str, size_t len, char delim, int r_words[][2], int words_max) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
char BLI_toupper_ascii(const char c)
size_t BLI_snprintf_rlen(char *__restrict dst, size_t maxncpy, const char *__restrict format,...) ATTR_NONNULL(1
int BLI_str_index_in_array_n(const char *__restrict str, const char **__restrict str_array, int str_array_len) ATTR_NONNULL()
bool bool BLI_str_quoted_substr(const char *__restrict str, const char *__restrict prefix, char *result, size_t result_maxlen)
int BLI_strcaseeq(const char *a, const char *b) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void BLI_str_format_decimal_unit(char dst[7], int number_to_format) ATTR_NONNULL()
char * BLI_strdup(const char *str) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL() ATTR_MALLOC
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()
size_t BLI_str_partition(const char *str, const char delim[], const char **sep, const char **suf) ATTR_NONNULL()
void BLI_str_toupper_ascii(char *str, size_t len) ATTR_NONNULL()
char * BLI_strdupn(const char *str, size_t len) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
size_t BLI_vsnprintf(char *__restrict buffer, size_t 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() ATTR_MALLOC
char BLI_tolower_ascii(const char c)
bool BLI_str_endswith(const char *__restrict str, const char *__restrict end) ATTR_NONNULL()
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
size_t BLI_str_format_uint64_grouped(char dst[16], uint64_t num) ATTR_NONNULL()
size_t BLI_str_format_int_grouped(char dst[16], int num) ATTR_NONNULL()
size_t BLI_str_rpartition(const char *str, const char delim[], const char **sep, const char **suf) ATTR_NONNULL()
char * BLI_strncpy_ensure_pad(char *__restrict dst, const char *__restrict src, char pad, size_t maxncpy) ATTR_NONNULL()
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, size_t maxncpy) ATTR_NONNULL()
const char * BLI_str_escape_find_quote(const char *str) ATTR_NONNULL()
size_t BLI_snprintf(char *__restrict dst, size_t maxncpy, const char *__restrict format,...) ATTR_NONNULL(1
void BLI_str_format_byte_unit(char dst[15], long long int bytes, bool base_10) ATTR_NONNULL()
size_t size_t char size_t BLI_str_escape(char *__restrict dst, const char *__restrict src, size_t dst_maxncpy) ATTR_NONNULL()
int pad[32 - sizeof(int)]
SyclQueue void void * src
ccl_global float * buffer
T length(const vec_base< T, Size > &a)
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
unsigned __int64 uint64_t