MLT  7.22.0
Data Fields | Private Member Functions
strbuf_s Struct Reference

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

Data Fields

size_t size
 
char * string
 

Private Member Functions

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

Detailed Description

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

Member Function Documentation

◆ indent_yaml()

static void indent_yaml ( strbuf  output,
int  indent 
)
inlineprivate

Indent a line of YAML Tiny.

Parameters
outputa string buffer
indentthe number of spaces to indent

◆ output_yaml_block_literal()

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

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()

static void strbuf_close ( strbuf  buffer)
private

Destroy a string buffer.

Parameters
bufferthe string buffer to close

◆ strbuf_new()

static strbuf strbuf_new ( )
private

Create a new string buffer.

Returns
a new string buffer

◆ strbuf_printf()

static char * strbuf_printf ( strbuf  buffer,
const char *  format,
  ... 
)
private

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: