Blender V5.3
BLI_string.hh File Reference
#include <inttypes.h>
#include <stdarg.h>
#include <string>
#include "BLI_compiler_attrs.hh"
#include "BLI_string_ref.hh"
#include "BLI_utildefines.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define BLI_STR_FORMAT_UINT64_GROUPED_SIZE   27
#define BLI_STR_FORMAT_INT64_GROUPED_SIZE   28
#define BLI_STR_FORMAT_INT32_GROUPED_SIZE   15
#define BLI_STR_FORMAT_INT64_BYTE_UNIT_SIZE   15
#define BLI_STR_FORMAT_INT64_BYTE_UNIT_COMPACT_SIZE   5
#define BLI_STR_FORMAT_INT32_DECIMAL_UNIT_SIZE   7
#define BLI_STR_FORMAT_INT32_INTEGER_UNIT_SIZE   5
String Copy/Format Macros

Avoid repeating destination with sizeof(..).

Note
ARRAY_SIZE allows pointers on some platforms.
#define STRNCPY_RLEN(dst, src)
#define SNPRINTF(dst, format, ...)
#define SNPRINTF_RLEN(dst, format, ...)
#define VSNPRINTF(dst, format, args)
#define VSNPRINTF_RLEN(dst, format, args)
#define STR_CONCAT(dst, len, suffix)
#define STR_CONCATF(dst, len, format, ...)
#define STRNLEN(str)
Equal to Any Element (STR_ELEM) Macro

Follows ELEM macro convention.

#define _VA_STR_ELEM2(v, a)
#define _VA_STR_ELEM3(v, a, b)
#define _VA_STR_ELEM4(v, a, b, c)
#define _VA_STR_ELEM5(v, a, b, c, d)
#define _VA_STR_ELEM6(v, a, b, c, d, e)
#define _VA_STR_ELEM7(v, a, b, c, d, e, f)
#define _VA_STR_ELEM8(v, a, b, c, d, e, f, g)
#define _VA_STR_ELEM9(v, a, b, c, d, e, f, g, h)
#define _VA_STR_ELEM10(v, a, b, c, d, e, f, g, h, i)
#define _VA_STR_ELEM11(v, a, b, c, d, e, f, g, h, i, j)
#define _VA_STR_ELEM12(v, a, b, c, d, e, f, g, h, i, j, k)
#define _VA_STR_ELEM13(v, a, b, c, d, e, f, g, h, i, j, k, l)
#define _VA_STR_ELEM14(v, a, b, c, d, e, f, g, h, i, j, k, l, m)
#define _VA_STR_ELEM15(v, a, b, c, d, e, f, g, h, i, j, k, l, m, n)
#define _VA_STR_ELEM16(v, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)
#define _VA_STR_ELEM17(v, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)
#define STR_ELEM(...)
String Debugging
#define BLI_string_debug_size(str, str_maxncpy)
#define BLI_string_debug_size_after_nil(str, str_maxncpy)

Functions

size_t blender::ATTR_PRINTF_FORMAT (3, 4)
size_t size_t char blender::ATTR_PRINTF_FORMAT (4, 5)
char blender::ATTR_PRINTF_FORMAT (4, 0)
template<size_t N>
char * blender::STRNCPY (char(&dst)[N], const char *src)
String Duplicate/Copy
char * blender::BLI_strdupn (const char *str, size_t len) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
char * blender::BLI_strdup (const char *str) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) ATTR_MALLOC
char * blender::BLI_strdup_null (const char *str) ATTR_WARN_UNUSED_RESULT ATTR_MALLOC
char * blender::BLI_strdupcat (const char *__restrict str1, const char *__restrict str2) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
char * blender::BLI_strncpy (char *__restrict dst, const char *__restrict src, size_t dst_maxncpy) ATTR_NONNULL(1
char char * blender::BLI_strncpy_ensure_pad (char *__restrict dst, const char *__restrict src, char pad, size_t dst_maxncpy) ATTR_NONNULL(1
char char size_t blender::BLI_strncpy_rlen (char *__restrict dst, const char *__restrict src, size_t dst_maxncpy) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
String Append
char char size_t char * blender::BLI_strncat (char *__restrict dst, const char *__restrict src, size_t dst_maxncpy) ATTR_NONNULL(1
String Scanning
char char size_t char const char * blender::BLI_strchr_or_end (const char *str, char ch) ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL ATTR_NONNULL(1)
String Quote/Un-Quote
bool blender::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
bool bool blender::BLI_str_quoted_substr (const char *__restrict str, const char *__restrict prefix, char *result, size_t result_maxncpy)
String Printing
size_t blender::BLI_snprintf (char *__restrict dst, size_t dst_maxncpy, const char *__restrict format,...) ATTR_NONNULL(1
size_t blender::BLI_snprintf_rlen (char *__restrict dst, size_t dst_maxncpy, const char *__restrict format,...) ATTR_NONNULL(1
size_t blender::BLI_vsnprintf (char *__restrict dst, size_t dst_maxncpy, const char *__restrict format, va_list arg) ATTR_PRINTF_FORMAT(3
size_t size_t blender::BLI_vsnprintf_rlen (char *__restrict dst, size_t dst_maxncpy, const char *__restrict format, va_list arg) ATTR_PRINTF_FORMAT(3
size_t size_t char * blender::BLI_sprintfN_with_buffer (char *fixed_buf, size_t fixed_buf_maxncpy, size_t *result_len, const char *__restrict format,...) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
char * blender::BLI_vsprintfN_with_buffer (char *fixed_buf, size_t fixed_buf_maxncpy, size_t *result_len, const char *__restrict format, va_list args) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
char * blender::BLI_sprintfN (const char *__restrict format,...) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) ATTR_MALLOC ATTR_PRINTF_FORMAT(1
char char * blender::BLI_vsprintfN (const char *__restrict format, va_list args) ATTR_NONNULL(1) ATTR_MALLOC ATTR_PRINTF_FORMAT(1
String Escape/Un-Escape
char char size_t blender::BLI_str_escape (char *__restrict dst, StringRef src, size_t dst_maxncpy) ATTR_NONNULL(1)
std::string blender::BLI_str_escape (StringRef str)
size_t blender::BLI_str_unescape_ex (char *__restrict dst, const char *__restrict src, size_t src_len, size_t dst_maxncpy, bool *r_is_complete) ATTR_NONNULL(1
size_t size_t blender::BLI_str_unescape (char *__restrict dst, const char *__restrict src, size_t src_len) ATTR_NONNULL(1
size_t size_t const char * blender::BLI_str_escape_find_quote (const char *str) ATTR_NONNULL(1)
String Formatting (Numeric)
size_t blender::BLI_str_format_int_grouped (char dst[BLI_STR_FORMAT_INT32_GROUPED_SIZE], int num) ATTR_NONNULL(1)
size_t blender::BLI_str_format_uint64_grouped (char dst[BLI_STR_FORMAT_UINT64_GROUPED_SIZE], uint64_t num) ATTR_NONNULL(1)
size_t blender::BLI_str_format_int64_grouped (char dst[BLI_STR_FORMAT_INT64_GROUPED_SIZE], int64_t num) ATTR_NONNULL(1)
void blender::BLI_str_format_byte_unit (char dst[BLI_STR_FORMAT_INT64_BYTE_UNIT_SIZE], long long int bytes, bool base_10) ATTR_NONNULL(1)
void blender::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)
void blender::BLI_str_format_decimal_unit (char dst[BLI_STR_FORMAT_INT32_DECIMAL_UNIT_SIZE], int number_to_format) ATTR_NONNULL(1)
void blender::BLI_str_format_integer_unit (char dst[BLI_STR_FORMAT_INT32_INTEGER_UNIT_SIZE], int number_to_format) ATTR_NONNULL(1)
String Comparison/Matching
int blender::BLI_strcaseeq (const char *a, const char *b) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
int char * blender::BLI_strcasestr (const char *s, const char *find) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
int char char * blender::BLI_strncasestr (const char *s, const char *find, size_t len) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
int char char int blender::BLI_strcasecmp (const char *s1, const char *s2) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
int char char int int blender::BLI_strncasecmp (const char *s1, const char *s2, size_t len) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
int char char int int int blender::BLI_strcasecmp_natural (const char *s1, const char *s2) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
int char char int int int int blender::BLI_strcmp_ignore_pad (const char *str1, const char *str2, char pad) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
int bool bool bool size_t size_t size_t int blender::BLI_string_max_possible_word_count (int str_len) ATTR_WARN_UNUSED_RESULT
bool blender::BLI_string_has_word_prefix (const char *haystack, const char *needle, size_t needle_len) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
bool bool blender::BLI_string_all_words_matched (const char *name, const char *str, int(*words)[2], int words_len) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
String Length
int char char int int int int size_t blender::BLI_strnlen (const char *str, size_t maxlen) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
String Case Conversion
void blender::BLI_str_tolower_ascii (char *str, size_t len) ATTR_NONNULL(1)
void blender::BLI_str_toupper_ascii (char *str, size_t len) ATTR_NONNULL(1)
char blender::BLI_tolower_ascii (const char c) ATTR_WARN_UNUSED_RESULT
char blender::BLI_toupper_ascii (const char c) ATTR_WARN_UNUSED_RESULT
String Stripping
void blender::BLI_str_rstrip (char *str) ATTR_NONNULL(1)
int blender::BLI_str_rstrip_float_zero (char *str, char pad) ATTR_NONNULL(1)
int blender::BLI_str_rstrip_digits (char *str) ATTR_NONNULL()
String Comparison at Start/End
int blender::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)
int blender::BLI_str_index_in_array (const char *__restrict str, const char **__restrict str_array) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
int bool blender::BLI_str_startswith (const char *__restrict str, const char *__restrict start) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
int bool bool blender::BLI_str_endswith (const char *__restrict str, const char *__restrict end) ATTR_NONNULL(1
int bool bool bool blender::BLI_strn_endswith (const char *__restrict str, const char *__restrict end, size_t str_len) ATTR_NONNULL(1
String Split (Partition)
int bool bool bool size_t blender::BLI_str_partition (const char *str, const char delim[], const char **sep, const char **suf) ATTR_NONNULL(1
int bool bool bool size_t size_t blender::BLI_str_rpartition (const char *str, const char delim[], const char **sep, const char **suf) ATTR_NONNULL(1
int bool bool bool size_t size_t size_t blender::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
bool bool int blender::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
bool bool int bool blender::BLI_string_elem_split_by_delim (const char *haystack, const char delim, const char *needle) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1

Variables

String Replace
char blender::ATTR_MALLOC

Macro Definition Documentation

◆ _VA_STR_ELEM10

#define _VA_STR_ELEM10 ( v,
a,
b,
c,
d,
e,
f,
g,
h,
i )
Value:
(_VA_STR_ELEM9(v, a, b, c, d, e, f, g, h) || (_VA_STR_ELEM2(v, i)))
#define _VA_STR_ELEM9(v, a, b, c, d, e, f, g, h)
#define _VA_STR_ELEM2(v, a)

Definition at line 644 of file BLI_string.hh.

◆ _VA_STR_ELEM11

#define _VA_STR_ELEM11 ( v,
a,
b,
c,
d,
e,
f,
g,
h,
i,
j )
Value:
(_VA_STR_ELEM10(v, a, b, c, d, e, f, g, h, i) || (_VA_STR_ELEM2(v, j)))
#define _VA_STR_ELEM10(v, a, b, c, d, e, f, g, h, i)

Definition at line 646 of file BLI_string.hh.

◆ _VA_STR_ELEM12

#define _VA_STR_ELEM12 ( v,
a,
b,
c,
d,
e,
f,
g,
h,
i,
j,
k )
Value:
(_VA_STR_ELEM11(v, a, b, c, d, e, f, g, h, i, j) || (_VA_STR_ELEM2(v, k)))
#define _VA_STR_ELEM11(v, a, b, c, d, e, f, g, h, i, j)

Definition at line 648 of file BLI_string.hh.

◆ _VA_STR_ELEM13

#define _VA_STR_ELEM13 ( v,
a,
b,
c,
d,
e,
f,
g,
h,
i,
j,
k,
l )
Value:
(_VA_STR_ELEM12(v, a, b, c, d, e, f, g, h, i, j, k) || (_VA_STR_ELEM2(v, l)))
#define _VA_STR_ELEM12(v, a, b, c, d, e, f, g, h, i, j, k)

Definition at line 650 of file BLI_string.hh.

◆ _VA_STR_ELEM14

#define _VA_STR_ELEM14 ( v,
a,
b,
c,
d,
e,
f,
g,
h,
i,
j,
k,
l,
m )
Value:
(_VA_STR_ELEM13(v, a, b, c, d, e, f, g, h, i, j, k, l) || (_VA_STR_ELEM2(v, m)))
#define _VA_STR_ELEM13(v, a, b, c, d, e, f, g, h, i, j, k, l)

Definition at line 652 of file BLI_string.hh.

◆ _VA_STR_ELEM15

#define _VA_STR_ELEM15 ( v,
a,
b,
c,
d,
e,
f,
g,
h,
i,
j,
k,
l,
m,
n )
Value:
(_VA_STR_ELEM14(v, a, b, c, d, e, f, g, h, i, j, k, l, m) || (_VA_STR_ELEM2(v, n)))
#define _VA_STR_ELEM14(v, a, b, c, d, e, f, g, h, i, j, k, l, m)

Definition at line 654 of file BLI_string.hh.

◆ _VA_STR_ELEM16

#define _VA_STR_ELEM16 ( v,
a,
b,
c,
d,
e,
f,
g,
h,
i,
j,
k,
l,
m,
n,
o )
Value:
(_VA_STR_ELEM15(v, a, b, c, d, e, f, g, h, i, j, k, l, m, n) || (_VA_STR_ELEM2(v, o)))
#define _VA_STR_ELEM15(v, a, b, c, d, e, f, g, h, i, j, k, l, m, n)

Definition at line 656 of file BLI_string.hh.

◆ _VA_STR_ELEM17

#define _VA_STR_ELEM17 ( v,
a,
b,
c,
d,
e,
f,
g,
h,
i,
j,
k,
l,
m,
n,
o,
p )
Value:
(_VA_STR_ELEM16(v, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) || (_VA_STR_ELEM2(v, p)))
#define _VA_STR_ELEM16(v, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)

Definition at line 658 of file BLI_string.hh.

◆ _VA_STR_ELEM2

#define _VA_STR_ELEM2 ( v,
a )
Value:
(strcmp(v, a) == 0)

Definition at line 629 of file BLI_string.hh.

◆ _VA_STR_ELEM3

#define _VA_STR_ELEM3 ( v,
a,
b )
Value:
(_VA_STR_ELEM2(v, a) || (_VA_STR_ELEM2(v, b)))

Definition at line 630 of file BLI_string.hh.

◆ _VA_STR_ELEM4

#define _VA_STR_ELEM4 ( v,
a,
b,
c )
Value:
(_VA_STR_ELEM3(v, a, b) || (_VA_STR_ELEM2(v, c)))
#define _VA_STR_ELEM3(v, a, b)

Definition at line 632 of file BLI_string.hh.

◆ _VA_STR_ELEM5

#define _VA_STR_ELEM5 ( v,
a,
b,
c,
d )
Value:
(_VA_STR_ELEM4(v, a, b, c) || (_VA_STR_ELEM2(v, d)))
#define _VA_STR_ELEM4(v, a, b, c)

Definition at line 634 of file BLI_string.hh.

◆ _VA_STR_ELEM6

#define _VA_STR_ELEM6 ( v,
a,
b,
c,
d,
e )
Value:
(_VA_STR_ELEM5(v, a, b, c, d) || (_VA_STR_ELEM2(v, e)))
#define _VA_STR_ELEM5(v, a, b, c, d)

Definition at line 636 of file BLI_string.hh.

◆ _VA_STR_ELEM7

#define _VA_STR_ELEM7 ( v,
a,
b,
c,
d,
e,
f )
Value:
(_VA_STR_ELEM6(v, a, b, c, d, e) || (_VA_STR_ELEM2(v, f)))
#define _VA_STR_ELEM6(v, a, b, c, d, e)

Definition at line 638 of file BLI_string.hh.

◆ _VA_STR_ELEM8

#define _VA_STR_ELEM8 ( v,
a,
b,
c,
d,
e,
f,
g )
Value:
(_VA_STR_ELEM7(v, a, b, c, d, e, f) || (_VA_STR_ELEM2(v, g)))
#define _VA_STR_ELEM7(v, a, b, c, d, e, f)

Definition at line 640 of file BLI_string.hh.

◆ _VA_STR_ELEM9

#define _VA_STR_ELEM9 ( v,
a,
b,
c,
d,
e,
f,
g,
h )
Value:
(_VA_STR_ELEM8(v, a, b, c, d, e, f, g) || (_VA_STR_ELEM2(v, h)))
#define _VA_STR_ELEM8(v, a, b, c, d, e, f, g)

Definition at line 642 of file BLI_string.hh.

◆ BLI_STR_FORMAT_INT32_DECIMAL_UNIT_SIZE

#define BLI_STR_FORMAT_INT32_DECIMAL_UNIT_SIZE   7

◆ BLI_STR_FORMAT_INT32_GROUPED_SIZE

◆ BLI_STR_FORMAT_INT32_INTEGER_UNIT_SIZE

#define BLI_STR_FORMAT_INT32_INTEGER_UNIT_SIZE   5

◆ BLI_STR_FORMAT_INT64_BYTE_UNIT_COMPACT_SIZE

#define BLI_STR_FORMAT_INT64_BYTE_UNIT_COMPACT_SIZE   5

◆ BLI_STR_FORMAT_INT64_BYTE_UNIT_SIZE

◆ BLI_STR_FORMAT_INT64_GROUPED_SIZE

#define BLI_STR_FORMAT_INT64_GROUPED_SIZE   28

◆ BLI_STR_FORMAT_UINT64_GROUPED_SIZE

#define BLI_STR_FORMAT_UINT64_GROUPED_SIZE   27

◆ BLI_string_debug_size

#define BLI_string_debug_size ( str,
str_maxncpy )
Value:
if (0) { \
(void)(str), (void)(str_maxncpy); \
} \
((void)0)
#define str(s)

Definition at line 678 of file BLI_string.hh.

Referenced by blender::BLI_path_frame_strip(), blender::BLI_path_join_array(), blender::BLI_path_program_search(), blender::BLI_path_sequence_decode(), blender::BLI_path_sequence_encode(), blender::BLI_path_split_dir_file(), blender::BLI_path_split_dir_part(), blender::BLI_path_split_file_part(), blender::BLI_path_to_display_name(), blender::BLI_snprintf(), blender::BLI_snprintf_rlen(), blender::BLI_snprintf_utf8(), blender::BLI_snprintf_utf8_rlen(), blender::BLI_str_escape(), blender::BLI_str_format_byte_unit(), blender::BLI_str_format_byte_unit_compact(), blender::BLI_str_format_decimal_unit(), blender::BLI_str_format_int64_grouped(), blender::BLI_str_format_int_grouped(), blender::BLI_str_format_integer_unit(), blender::BLI_str_format_uint64_grouped(), blender::BLI_str_quoted_substr(), blender::BLI_str_unescape(), blender::BLI_str_unescape_ex(), blender::BLI_str_utf32_as_utf8(), blender::BLI_str_utf8_as_utf32(), blender::BLI_str_utf8_from_unicode(), blender::BLI_string_flip_side_name(), blender::BLI_string_join_array(), blender::BLI_string_join_array_by_sep_char(), blender::BLI_string_split_prefix(), blender::BLI_string_split_suffix(), blender::BLI_strncpy(), blender::BLI_strncpy_ensure_pad(), blender::BLI_strncpy_rlen(), blender::BLI_strncpy_utf8(), blender::BLI_strncpy_utf8_rlen(), blender::BLI_strncpy_utf8_rlen_unterminated(), blender::BLI_strncpy_wchar_as_utf8(), blender::BLI_strncpy_wchar_from_utf8(), blender::BLI_vsnprintf(), blender::BLI_vsnprintf_rlen(), blender::BLI_vsnprintf_utf8(), blender::BLI_vsnprintf_utf8_rlen(), and blender::RNA_property_string_get_alloc().

◆ BLI_string_debug_size_after_nil

◆ SNPRINTF

#define SNPRINTF ( dst,
format,
... )
Value:
BLI_snprintf(dst, ARRAY_SIZE(dst), format, __VA_ARGS__)
constexpr size_t ARRAY_SIZE(const T(&arg)[N]) noexcept

Definition at line 606 of file BLI_string.hh.

Referenced by blender::draw::attribute_vbo_format(), blender::BKE_appdir_program_python_search(), blender::BKE_image_save_options_init(), blender::BKE_memfile_undo_encode(), blender::BKE_packedfile_write_to_file(), blender::BKE_ptcache_load_external(), blender::BKE_unit_replace_string(), blender::blend_file_thumb_from_camera(), blender::blend_file_thumb_from_screenshot(), blender::blender_version_decimal(), Freestyle::BlenderStrokeRenderer::BlenderStrokeRenderer(), blender::BLI_path_frame(), blender::BLI_path_frame_range(), blender::BLI_str_format_int64_grouped(), blender::BLI_str_format_int_grouped(), blender::BLI_str_format_uint64_grouped(), blender::BLO_write_file_impl(), blender::io::hydra::cache_image_file(), blender::io::hydra::cache_or_get_image_file(), blender::camera_multiview_advanced(), blender::gpu::GLTexture::check_feedback_loop(), blender::gpu::debug::check_gl_error(), blender::gpu::debug::check_gl_resources(), blender::deg::color_for_pointer(), blender::console_drop_path_copy(), blender::crashlog_file_generate(), blender::forward_compat::create_legacy_geometry_nodes_properties(), blender::do_history(), blender::draw::DRW_cdlayer_attr_aliases_add(), blender::dynamicPaintSurface_updateType(), blender::io::hydra::emit_hair_proto(), blender::io::usd::export_packed_texture(), blender::draw::extract_tan_init_common(), blender::file_overwrite_detailed_info_show(), blender::bke::bake::frame_to_file_name(), blender::fsmenu_external_drive_icon(), blender::fsmenu_macos_insert_entry(), blender::gpu::shader::GPUCodegen::generate_attribs(), blender::io::usd::get_in_memory_texture_filename(), blender::get_proxy_filepath(), blender::get_proxy_filepath(), blender::GPU_material_split_sub_function(), blender::gpu_node_graph_add_texture(), blender::gpu_node_input_link(), blender::GPU_vertformat_multiload_enable(), blender::io::hydra::PopulateContext::hair_prim_id(), blender::deg::IDNode::identifier(), blender::image_update_views_format(), blender::image_zoom_apply(), blender::io::hydra::PopulateContext::instance_clone_prim_id(), blender::io::hydra::PopulateContext::instancer_proto_root(), blender::io::hydra::PopulateContext::instancer_proto_submesh(), blender::interactive_value_update(), blender::io::hydra::PopulateContext::material_prim_id(), Freestyle::BlenderStrokeRenderer::NewMesh(), blender::gpu::debug::object_label(), blender::gpu::debug::object_label(), blender::io::hydra::PopulateContext::object_prim_id(), blender::operator<<(), blender::playanim_toscreen_ex(), blender::pyop_create_function(), blender::radial_control_paint_cursor(), blender::radial_control_update_header(), blender::RE_engine_update_stats(), blender::asset_system::remote_library_asset_preview_path(), blender::render_result_exr_file_cache_path(), blender::replace_if_different(), blender::rna_def_fileselect_asset_idfilter(), blender::rna_def_node_item_array_common_functions(), blender::rna_def_node_item_array_new_with_socket_and_name(), blender::rna_def_node_item_array_socket_item_common(), blender::RNA_path_append(), blender::rna_preprocess(), blender::ocio::LibOCIOView::scope_info(), blender::seq::seq_proxy_get_custom_file_filepath(), blender::seq::seq_proxy_get_filepath_for_elem(), blender::seq::seqbase_unique_name(), blender::strip_sound_proxy_update_cb(), blender::io::hydra::PopulateContext::submesh_prim_id(), blender::bke::greasepencil::tests::TEST_F(), blender::thumb_create_ex(), blender::unpack_generate_paths(), blender::uri_from_filepath(), blender::io::hydra::USDSceneIndex::USDSceneIndex(), blender::version_geometry_nodes_add_attribute_input_settings(), blender::wm_autosave_location(), blender::WM_platform_associate_set(), and blender::write_global().

◆ SNPRINTF_RLEN

#define SNPRINTF_RLEN ( dst,
format,
... )
Value:
BLI_snprintf_rlen(dst, ARRAY_SIZE(dst), format, __VA_ARGS__)

Definition at line 607 of file BLI_string.hh.

Referenced by blender::DRW_text_edit_mesh_measure_stats(), blender::idp_str_append_escape(), and blender::gpu::VKBackend::supported_devices_print().

◆ STR_CONCAT

#define STR_CONCAT ( dst,
len,
suffix )
Value:
len += BLI_strncpy_rlen(dst + len, suffix, ARRAY_SIZE(dst) - len)
ccl_device_inline dual1 len(const ccl_private dual< T > &a)
Definition math_dual.h:263

Definition at line 611 of file BLI_string.hh.

Referenced by blender::BKE_image_save_options_init(), and blender::WM_platform_support_perform_checks().

◆ STR_CONCATF

#define STR_CONCATF ( dst,
len,
format,
... )
Value:
len += BLI_snprintf_rlen(dst + len, ARRAY_SIZE(dst) - len, format, __VA_ARGS__)

Definition at line 613 of file BLI_string.hh.

◆ STR_ELEM

#define STR_ELEM ( ...)
Value:
VA_NARGS_CALL_OVERLOAD(_VA_STR_ELEM, __VA_ARGS__)
#define VA_NARGS_CALL_OVERLOAD(name,...)

Definition at line 663 of file BLI_string.hh.

Referenced by blender::io::fbx::add_image_texture(), blender::BKE_image_render_write_exr(), blender::BKE_scene_multiview_is_render_view_active(), blender::blo_do_versions_280(), blender::blo_do_versions_402(), blender::blo_is_builtin_template(), blender::blo_update_defaults_screen(), blender::BLO_update_defaults_startup_blend(), blender::ui::button_opens_link(), blender::common_poll_default(), blender::deg::RNANodeQuery::construct_node_identifier(), blender::customData_add_layer__internal(), blender::ed::object::data_transfer_poll_property(), blender::nodes::node_composite_image_cc::declare_pass(), blender::draw::drw_volume_object_mesh_init(), blender::edbm_spin_poll_property(), blender::file_browse_invoke(), blender::fn_cmp_node_poll_default(), blender::geo_cmp_node_poll_default(), blender::compositor::get_pass_type(), blender::gpu_node_input_link(), blender::image_open_draw_check_prop(), main(), blender::ui::menu_types_add_from_keymap_items(), blender::ed::space_node::node_add_image_poll(), blender::nodes::node_composite_render_layer_cc::node_extra_info(), blender::bke::node_foreach_working_space_color(), blender::ed::space_node::node_group_operator_active_poll(), blender::nodes::node_shader_volume_coefficients_cc::node_shader_update_coefficients(), blender::nodes::node_shader_bsdf_hair_principled_cc::node_shader_update_hair_principled(), blender::nodes::node_shader_volume_scatter_cc::node_shader_update_scatter(), blender::nodes::node_shader_subsurface_scattering_cc::node_shader_update_subsurface_scattering(), blender::ed::object::object_add_to_selected_poll_property(), blender::openexr_metadata_skip_read(), blender::openexr_metadata_skip_write(), blender::pyrna_struct_getattro(), blender::rna_def_property_get_func(), blender::ed::asset::screenshot_preview_exec(), blender::ed::transform::seq_slide_poll_property(), blender::ed::vse::sequencer_add_draw_check_fn(), blender::ed::vse::sequencer_add_effect_strip_poll_property(), blender::ed::vse::sequencer_add_text_strip_poll_property(), blender::sh_geo_poll_default(), blender::nodes::gizmos::show_box_mask_gizmo(), blender::nodes::gizmos::show_ellipse_mask_gizmo(), blender::nodes::gizmos::show_glare_gizmo(), blender::nodes::gizmos::show_scale_gizmo(), blender::nodes::gizmos::show_split(), blender::nodes::gizmos::show_transform_gizmo(), blender::nodes::gizmos::show_translate_gizmo(), blender::ui::tree_interface_item_can_set_prop(), blender::version_geometry_nodes_use_rotation_socket(), blender::version_mesh_crease_generic(), and blender::WM_window_cursor_keymap_status_refresh().

◆ STRNCPY_RLEN

◆ STRNLEN

◆ VSNPRINTF

#define VSNPRINTF ( dst,
format,
args )
Value:
BLI_vsnprintf(dst, ARRAY_SIZE(dst), format, args)

Definition at line 609 of file BLI_string.hh.

◆ VSNPRINTF_RLEN

#define VSNPRINTF_RLEN ( dst,
format,
args )
Value:
BLI_vsnprintf_rlen(dst, ARRAY_SIZE(dst), format, args)

Definition at line 610 of file BLI_string.hh.