Home
last modified time | relevance | path

Searched refs:maxncpy (Results 1 – 8 of 8) sorted by relevance

/dports/graphics/blender/blender-2.91.0/source/blender/blenlib/intern/
H A Dtimecode.c52 const size_t maxncpy, in BLI_timecode_string_from_time() argument
115 str, maxncpy, "%s%02d:%02d+%02d", neg, minutes, seconds, frames); in BLI_timecode_string_from_time()
118 rlen = BLI_snprintf_rlen(str, maxncpy, "%s%d+%02d", neg, seconds, frames); in BLI_timecode_string_from_time()
127 rlen = BLI_snprintf_rlen(str, maxncpy, "%s%02d:%02d", neg, minutes, seconds); in BLI_timecode_string_from_time()
182 rlen = BLI_snprintf_rlen(str, maxncpy, "%d", round_fl_to_int(time_seconds)); in BLI_timecode_string_from_time()
207 const size_t maxncpy, in BLI_timecode_string_from_time_simple() argument
219 rlen = BLI_snprintf(str, maxncpy, "%.2d:%.2d:%.2d.%.2d", hr, min, sec, hun); in BLI_timecode_string_from_time_simple()
222 rlen = BLI_snprintf(str, maxncpy, "%.2d:%.2d.%.2d", min, sec, hun); in BLI_timecode_string_from_time_simple()
241 const size_t maxncpy, in BLI_timecode_string_from_time_seconds() argument
249 rlen = BLI_snprintf_rlen(str, maxncpy, "%.*f", 1 - brevity_level, time_seconds); in BLI_timecode_string_from_time_seconds()
[all …]
H A Dstring.c110 BLI_assert(maxncpy != 0); in BLI_strncpy()
136 BLI_assert(maxncpy != 0); in BLI_strncpy_ensure_pad()
152 maxncpy--; in BLI_strncpy_ensure_pad()
189 BLI_assert(maxncpy != 0); in BLI_strncpy_rlen()
218 BLI_assert(maxncpy > 0); in BLI_vsnprintf()
223 if (n != -1 && n < maxncpy) { in BLI_vsnprintf()
227 buffer[maxncpy - 1] = '\0'; in BLI_vsnprintf()
244 BLI_assert(maxncpy > 0); in BLI_vsnprintf_rlen()
253 n = maxncpy - 1; in BLI_vsnprintf_rlen()
329 BLI_assert(maxncpy != 0); in BLI_strescape()
[all …]
H A Dstring_utf8.c232 maxncpy -= utf8_size; \
261 BLI_assert(maxncpy != 0); in BLI_strncpy_utf8()
277 BLI_assert(maxncpy != 0); in BLI_strncpy_utf8_rlen()
298 const size_t maxlen = maxncpy - 1; in BLI_strncpy_wchar_as_utf8()
303 BLI_assert(maxncpy != 0); in BLI_strncpy_wchar_as_utf8()
396 const size_t maxlen = maxncpy - 1; in BLI_strncpy_wchar_from_utf8()
399 BLI_assert(maxncpy != 0); in BLI_strncpy_wchar_from_utf8()
714 const size_t maxlen = maxncpy - 1; in BLI_str_utf8_as_utf32()
717 BLI_assert(maxncpy != 0); in BLI_str_utf8_as_utf32()
747 const size_t maxlen = maxncpy - 1; in BLI_str_utf32_as_utf8()
[all …]
H A Dstorage.c81 char *BLI_current_working_dir(char *dir, const size_t maxncpy) in BLI_current_working_dir() argument
86 if (BLI_strncpy_wchar_as_utf8(dir, path, maxncpy) != maxncpy) { in BLI_current_working_dir()
94 size_t srclen = BLI_strnlen(pwd, maxncpy); in BLI_current_working_dir()
95 if (srclen != maxncpy) { in BLI_current_working_dir()
101 return getcwd(dir, maxncpy); in BLI_current_working_dir()
/dports/graphics/blender/blender-2.91.0/source/blender/blenlib/
H A DBLI_string_utf8.h30 char *BLI_strncpy_utf8(char *__restrict dst, const char *__restrict src, size_t maxncpy)
32 size_t BLI_strncpy_utf8_rlen(char *__restrict dst, const char *__restrict src, size_t maxncpy)
51 const size_t maxncpy) ATTR_NONNULL();
54 const size_t maxncpy) ATTR_NONNULL();
70 const size_t maxncpy) ATTR_NONNULL();
73 const size_t maxncpy) ATTR_NONNULL();
H A DBLI_timecode.h33 const size_t maxncpy,
40 const size_t maxncpy,
44 const size_t maxncpy,
H A DBLI_string.h45 char *BLI_strncpy(char *__restrict dst, const char *__restrict src, const size_t maxncpy)
51 size_t maxncpy) ATTR_NONNULL();
55 const size_t maxncpy) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
71 size_t BLI_snprintf(char *__restrict dst, size_t maxncpy, const char *__restrict format, ...)
73 size_t BLI_snprintf_rlen(char *__restrict dst, size_t maxncpy, const char *__restrict format, ...)
77 size_t maxncpy,
81 size_t maxncpy,
88 size_t BLI_strescape(char *__restrict dst, const char *__restrict src, const size_t maxncpy)
H A DBLI_fileops.h111 char *BLI_current_working_dir(char *dir, const size_t maxncpy) ATTR_WARN_UNUSED_RESULT