39 const char *__restrict substr_old,
67 size_t string_maxncpy,
68 const
char *replace_table[][2],
69 int replace_table_len);
78 char *
string,
size_t string_maxncpy,
int src_beg,
int src_end, const
char *dst);
127 const
char *strings[],
130#define BLI_string_join_by_sep_char_with_tableN(sep, table, ...) \
131 BLI_string_join_array_by_sep_char_with_tableN( \
132 sep, table, ((const char *[]){__VA_ARGS__}), VA_NARGS_COUNT(__VA_ARGS__))
146 const char *name_src,
206#define _BLI_STRING_ARGS_1 _BLI_STRING_ARGS_0 const char *a
207#define _BLI_STRING_ARGS_2 _BLI_STRING_ARGS_1, const char *b
208#define _BLI_STRING_ARGS_3 _BLI_STRING_ARGS_2, const char *c
209#define _BLI_STRING_ARGS_4 _BLI_STRING_ARGS_3, const char *d
210#define _BLI_STRING_ARGS_5 _BLI_STRING_ARGS_4, const char *e
211#define _BLI_STRING_ARGS_6 _BLI_STRING_ARGS_5, const char *f
212#define _BLI_STRING_ARGS_7 _BLI_STRING_ARGS_6, const char *g
213#define _BLI_STRING_ARGS_8 _BLI_STRING_ARGS_7, const char *h
214#define _BLI_STRING_ARGS_9 _BLI_STRING_ARGS_8, const char *i
215#define _BLI_STRING_ARGS_10 _BLI_STRING_ARGS_9, const char *j
221#define _BLI_STRING_ARGS_0 char *__restrict dst, const size_t dst_len,
227 size_t result_maxncpy,
228 const char *strings[],
231#define BLI_string_join(...) VA_NARGS_CALL_OVERLOAD(_BLI_string_join_, __VA_ARGS__)
246 const char *string_array[] = {a};
251 const char *string_array[] = {a,
b};
256 const char *string_array[] = {a,
b, c};
261 const char *string_array[] = {a,
b, c, d};
266 const char *string_array[] = {a,
b, c, d,
e};
271 const char *string_array[] = {a,
b, c, d,
e, f};
276 const char *string_array[] = {a,
b, c, d,
e, f, g};
281 const char *string_array[] = {a,
b, c, d,
e, f, g, h};
286 const char *string_array[] = {a,
b, c, d,
e, f, g, h,
i};
291 const char *string_array[] = {a,
b, c, d,
e, f, g, h,
i, j};
295#undef _BLI_STRING_ARGS_0
309#define BLI_string_joinN(...) VA_NARGS_CALL_OVERLOAD(_BLI_string_joinN_, __VA_ARGS__)
311#define _BLI_STRING_ARGS_0
326 const char *string_array[] = {a};
331 const char *string_array[] = {a,
b};
336 const char *string_array[] = {a,
b, c};
341 const char *string_array[] = {a,
b, c, d};
346 const char *string_array[] = {a,
b, c, d,
e};
351 const char *string_array[] = {a,
b, c, d,
e, f};
356 const char *string_array[] = {a,
b, c, d,
e, f, g};
361 const char *string_array[] = {a,
b, c, d,
e, f, g, h};
366 const char *string_array[] = {a,
b, c, d,
e, f, g, h,
i};
371 const char *string_array[] = {a,
b, c, d,
e, f, g, h,
i, j};
375#undef _BLI_STRING_ARGS_0
388 size_t result_maxncpy,
390 const char *strings[],
393#define BLI_string_join_by_sep_char(...) \
394 VA_NARGS_CALL_OVERLOAD(_BLI_string_join_by_sep_char_, __VA_ARGS__)
396#define _BLI_STRING_ARGS_0 char *__restrict dst, const size_t dst_len, const char sep,
411 const char *string_array[] = {a};
413 dst, dst_len, sep, string_array,
ARRAY_SIZE(string_array));
417 const char *string_array[] = {a,
b};
419 dst, dst_len, sep, string_array,
ARRAY_SIZE(string_array));
423 const char *string_array[] = {a,
b, c};
425 dst, dst_len, sep, string_array,
ARRAY_SIZE(string_array));
429 const char *string_array[] = {a,
b, c, d};
431 dst, dst_len, sep, string_array,
ARRAY_SIZE(string_array));
435 const char *string_array[] = {a,
b, c, d,
e};
437 dst, dst_len, sep, string_array,
ARRAY_SIZE(string_array));
441 const char *string_array[] = {a,
b, c, d,
e, f};
443 dst, dst_len, sep, string_array,
ARRAY_SIZE(string_array));
447 const char *string_array[] = {a,
b, c, d,
e, f, g};
449 dst, dst_len, sep, string_array,
ARRAY_SIZE(string_array));
453 const char *string_array[] = {a,
b, c, d,
e, f, g, h};
455 dst, dst_len, sep, string_array,
ARRAY_SIZE(string_array));
459 const char *string_array[] = {a,
b, c, d,
e, f, g, h,
i};
461 dst, dst_len, sep, string_array,
ARRAY_SIZE(string_array));
465 const char *string_array[] = {a,
b, c, d,
e, f, g, h,
i, j};
467 dst, dst_len, sep, string_array,
ARRAY_SIZE(string_array));
470#undef _BLI_STRING_ARGS_0
483 const char *strings[],
486#define BLI_string_join_by_sep_charN(...) \
487 VA_NARGS_CALL_OVERLOAD(_BLI_string_join_by_sep_charN_, __VA_ARGS__)
489#define _BLI_STRING_ARGS_0 const char sep,
504 const char *string_array[] = {a};
509 const char *string_array[] = {a,
b};
514 const char *string_array[] = {a,
b, c};
519 const char *string_array[] = {a,
b, c, d};
524 const char *string_array[] = {a,
b, c, d,
e};
529 const char *string_array[] = {a,
b, c, d,
e, f};
534 const char *string_array[] = {a,
b, c, d,
e, f, g};
539 const char *string_array[] = {a,
b, c, d,
e, f, g, h};
544 const char *string_array[] = {a,
b, c, d,
e, f, g, h,
i};
549 const char *string_array[] = {a,
b, c, d,
e, f, g, h,
i, j};
555#undef _BLI_STRING_ARGS_0
#define ATTR_WARN_UNUSED_RESULT
#define ATTR_NONNULL(...)
BLI_INLINE char * _BLI_string_join_by_sep_charN_7(_BLI_STRING_ARGS_6) ATTR_NONNULL()
BLI_INLINE size_t _BLI_string_join_6(_BLI_STRING_ARGS_4) ATTR_NONNULL()
size_t BLI_string_flip_side_name(char *name_dst, const char *name_src, bool strip_number, size_t name_dst_maxncpy) ATTR_NONNULL(1
BLI_INLINE size_t _BLI_string_join_5(_BLI_STRING_ARGS_3) ATTR_NONNULL()
#define _BLI_STRING_ARGS_4
size_t BLI_string_join_array_by_sep_char(char *result, size_t result_maxncpy, char sep, const char *strings[], uint strings_num) ATTR_NONNULL()
BLI_INLINE size_t _BLI_string_join_9(_BLI_STRING_ARGS_7) ATTR_NONNULL()
BLI_INLINE char * _BLI_string_join_by_sep_charN_2(_BLI_STRING_ARGS_1) ATTR_NONNULL()
BLI_INLINE char * _BLI_string_joinN_3(_BLI_STRING_ARGS_3) ATTR_NONNULL()
BLI_INLINE size_t _BLI_string_join_by_sep_char_7(_BLI_STRING_ARGS_4) ATTR_NONNULL()
bool BLI_string_is_decimal(const char *string) ATTR_NONNULL(1)
void void char * BLI_string_join_array_by_sep_char_with_tableN(char sep, char *table[], const char *strings[], uint strings_num) ATTR_NONNULL(2
BLI_INLINE char * _BLI_string_joinN_10(_BLI_STRING_ARGS_10) ATTR_NONNULL()
BLI_INLINE char * _BLI_string_join_by_sep_charN_11(_BLI_STRING_ARGS_10) ATTR_NONNULL()
#define _BLI_STRING_ARGS_10
BLI_INLINE size_t _BLI_string_join_12(_BLI_STRING_ARGS_10) ATTR_NONNULL()
size_t BLI_string_split_name_number(const char *name, char delim, char *r_name_left, int *r_number) ATTR_NONNULL(1
BLI_INLINE size_t _BLI_string_join_3(_BLI_STRING_ARGS_1) ATTR_NONNULL()
BLI_INLINE char * _BLI_string_joinN_4(_BLI_STRING_ARGS_4) ATTR_NONNULL()
void void BLI_string_split_prefix(const char *string, size_t string_maxlen, char *r_pre, char *r_body) ATTR_NONNULL(1
BLI_INLINE size_t _BLI_string_join_by_sep_char_5(_BLI_STRING_ARGS_2) ATTR_NONNULL()
BLI_INLINE size_t _BLI_string_join_8(_BLI_STRING_ARGS_6) ATTR_NONNULL()
BLI_INLINE size_t _BLI_string_join_by_sep_char_6(_BLI_STRING_ARGS_3) ATTR_NONNULL()
void BLI_string_split_suffix(const char *string, size_t string_maxlen, char *r_body, char *r_suf) ATTR_NONNULL(1
BLI_INLINE size_t _BLI_string_join_by_sep_char_9(_BLI_STRING_ARGS_6) ATTR_NONNULL()
#define _BLI_STRING_ARGS_6
BLI_INLINE size_t _BLI_string_join_4(_BLI_STRING_ARGS_2) ATTR_NONNULL()
char * BLI_string_join_arrayN(const char *strings[], uint strings_num) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
BLI_INLINE char * _BLI_string_join_by_sep_charN_3(_BLI_STRING_ARGS_2) ATTR_NONNULL()
BLI_INLINE size_t _BLI_string_join_by_sep_char_4(_BLI_STRING_ARGS_1) ATTR_NONNULL()
BLI_INLINE char * _BLI_string_joinN_5(_BLI_STRING_ARGS_5) ATTR_NONNULL()
BLI_INLINE char * _BLI_string_joinN_8(_BLI_STRING_ARGS_8) ATTR_NONNULL()
BLI_INLINE char * _BLI_string_join_by_sep_charN_9(_BLI_STRING_ARGS_8) ATTR_NONNULL()
#define _BLI_STRING_ARGS_5
BLI_INLINE char * _BLI_string_joinN_6(_BLI_STRING_ARGS_6) ATTR_NONNULL()
size_t void BLI_uniquename_cb(blender::FunctionRef< bool(blender::StringRefNull)> unique_check, const char *defname, char delim, char *name, size_t name_maxncpy) ATTR_NONNULL(2
BLI_INLINE size_t _BLI_string_join_by_sep_char_10(_BLI_STRING_ARGS_7) ATTR_NONNULL()
void BLI_string_replace(std::string &haystack, blender::StringRef needle, blender::StringRef other)
BLI_INLINE size_t _BLI_string_join_by_sep_char_11(_BLI_STRING_ARGS_8) ATTR_NONNULL()
BLI_INLINE size_t _BLI_string_join_by_sep_char_8(_BLI_STRING_ARGS_5) ATTR_NONNULL()
void BLI_string_replace_char(char *str, char src, char dst) ATTR_NONNULL(1)
BLI_INLINE char * _BLI_string_join_by_sep_charN_4(_BLI_STRING_ARGS_3) ATTR_NONNULL()
char * BLI_string_join_array_by_sep_charN(char sep, const char *strings[], uint strings_num) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
#define _BLI_STRING_ARGS_3
BLI_INLINE size_t _BLI_string_join_11(_BLI_STRING_ARGS_9) ATTR_NONNULL()
size_t BLI_string_replace_range(char *string, size_t string_maxncpy, int src_beg, int src_end, const char *dst)
BLI_INLINE size_t _BLI_string_join_by_sep_char_12(_BLI_STRING_ARGS_9) ATTR_NONNULL()
size_t BLI_string_join_array(char *result, size_t result_maxncpy, const char *strings[], uint strings_num) ATTR_NONNULL()
BLI_INLINE size_t _BLI_string_join_10(_BLI_STRING_ARGS_8) ATTR_NONNULL()
bool BLI_string_replace_table_exact(char *string, size_t string_maxncpy, const char *replace_table[][2], int replace_table_len)
BLI_INLINE char * _BLI_string_join_by_sep_charN_6(_BLI_STRING_ARGS_5) ATTR_NONNULL()
BLI_INLINE char * _BLI_string_joinN_9(_BLI_STRING_ARGS_9) ATTR_NONNULL()
BLI_INLINE char * _BLI_string_joinN_1(_BLI_STRING_ARGS_1) ATTR_NONNULL()
void BLI_uniquename(const struct ListBase *list, void *vlink, const char *defname, char delim, int name_offset, size_t name_maxncpy) ATTR_NONNULL(1
BLI_INLINE char * _BLI_string_join_by_sep_charN_10(_BLI_STRING_ARGS_9) ATTR_NONNULL()
#define _BLI_STRING_ARGS_1
BLI_INLINE char * _BLI_string_joinN_2(_BLI_STRING_ARGS_2) ATTR_NONNULL()
void size_t BLI_string_len_array(const char *strings[], uint strings_num) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
BLI_INLINE char * _BLI_string_joinN_7(_BLI_STRING_ARGS_7) ATTR_NONNULL()
BLI_INLINE size_t _BLI_string_join_7(_BLI_STRING_ARGS_5) ATTR_NONNULL()
#define _BLI_STRING_ARGS_7
#define _BLI_STRING_ARGS_8
#define _BLI_STRING_ARGS_9
BLI_INLINE char * _BLI_string_join_by_sep_charN_5(_BLI_STRING_ARGS_4) ATTR_NONNULL()
BLI_INLINE char * _BLI_string_join_by_sep_charN_8(_BLI_STRING_ARGS_7) ATTR_NONNULL()
char * BLI_string_replaceN(const char *__restrict str, const char *__restrict substr_old, const char *__restrict substr_new) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
#define _BLI_STRING_ARGS_2
BLI_INLINE size_t _BLI_string_join_by_sep_char_13(_BLI_STRING_ARGS_10) ATTR_NONNULL()
ATTR_WARN_UNUSED_RESULT const BMVert const BMEdge * e