Blender V5.3
BLI_dynstr.hh File Reference

A dynamically sized string ADT. More...

#include <stdarg.h>
#include "BLI_compiler_attrs.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Functions

DynStr * blender::BLI_dynstr_new () ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
DynStr * blender::BLI_dynstr_new_memarena () ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
void blender::BLI_dynstr_append (DynStr *__restrict ds, const char *cstr) ATTR_NONNULL()
void blender::BLI_dynstr_nappend (DynStr *__restrict ds, const char *cstr, int len) ATTR_NONNULL()
void blender::BLI_dynstr_appendf (DynStr *__restrict ds, const char *__restrict format,...) ATTR_PRINTF_FORMAT(2
void blender::ATTR_NONNULL (1, 2)
void blender::BLI_dynstr_vappendf (DynStr *__restrict ds, const char *__restrict format, va_list args) ATTR_PRINTF_FORMAT(2
int blender::BLI_dynstr_get_len (const DynStr *ds) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
char * blender::BLI_dynstr_get_cstring (const DynStr *ds) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void blender::BLI_dynstr_get_cstring_ex (const DynStr *__restrict ds, char *__restrict rets) ATTR_NONNULL()
void blender::BLI_dynstr_clear (DynStr *ds) ATTR_NONNULL()
void blender::BLI_dynstr_free (DynStr *ds) ATTR_NONNULL()

Detailed Description

A dynamically sized string ADT.

Dynamic String

This ADT is designed purely for dynamic string creation through appending, not for general usage, the intent is to build up dynamic strings using a DynStr object, then convert it to a c-string and work with that.

Definition in file BLI_dynstr.hh.