MLT 7.30.0
strbuf_s Struct Reference

Private to mlt_properties_s, a self-growing buffer for building strings. More...

Data Fields

size_t size
char * string

Static Private Member Functions

static void indent_yaml (strbuf output, int indent)
 Indent a line of YAML Tiny.
static void output_yaml_block_literal (strbuf output, const char *value, int indent)
 Convert a line string into a YAML block literal.
static void strbuf_close (strbuf buffer)
 Destroy a string buffer.
static strbuf strbuf_new ()
 Create a new string buffer.
static char * strbuf_printf (strbuf buffer, const char *format,...)
 Format a string into a string buffer.

Detailed Description

Private to mlt_properties_s, a self-growing buffer for building strings.

Member Function Documentation

◆ indent_yaml()

void indent_yaml ( strbuf output,
int indent )
inlinestaticprivate

Indent a line of YAML Tiny.

Parameters
outputa string buffer
indentthe number of spaces to indent

◆ output_yaml_block_literal()

void output_yaml_block_literal ( strbuf output,
const char * value,
int indent )
staticprivate

Convert a line string into a YAML block literal.

Parameters
outputa string buffer
valuethe string to format as a block literal
indentthe number of spaces to indent

◆ strbuf_close()

void strbuf_close ( strbuf buffer)
staticprivate

Destroy a string buffer.

Parameters
bufferthe string buffer to close

◆ strbuf_new()

strbuf strbuf_new ( )
staticprivate

Create a new string buffer.

Returns
a new string buffer

◆ strbuf_printf()

char * strbuf_printf ( strbuf buffer,
const char * format,
... )
staticprivate

Format a string into a string buffer.

A variable number of arguments follows the format string - one for each format specifier.

Parameters
bufferthe string buffer to write into
formata string that contains text and formatting instructions
Returns
the formatted string

Field Documentation

◆ size

size_t strbuf_s::size

◆ string

char* strbuf_s::string

The documentation for this struct was generated from the following file: