18 stream << std::string(ref);
24 stream << std::string(ref.
data(),
size_t(ref.
size()));
36 if (
size_ < dst_size) {
41 const int64_t max_copy_num_without_terminator = std::min(
size_, dst_size - 1);
43 dst,
data_, max_copy_num_without_terminator);
53 if (
size_ < dst_size) {
59 memcpy(dst,
data_, new_len);
ptrdiff_t BLI_str_utf8_invalid_byte(const char *str, size_t str_len) ATTR_NONNULL(1)
char size_t size_t BLI_strncpy_utf8_rlen_unterminated(char *__restrict dst, const char *__restrict src, size_t dst_maxncpy)
void copy_unsafe(char *dst) const
void copy_bytes_truncated(char *dst, int64_t dst_size) const
constexpr int64_t size() const
void copy_utf8_truncated(char *dst, int64_t dst_size) const
constexpr const char * data() const
std::ostream & operator<<(std::ostream &stream, const eAlpha &space)