mlt 0.7.6
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.
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

static void indent_yaml ( strbuf  output,
int  indent 
) [inline, private]

Indent a line of YAML Tiny.

Parameters:
outputa string buffer
indentthe number of spaces to indent
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
static void strbuf_close ( strbuf  buffer) [private]

Destroy a string buffer.

Parameters:
bufferthe string buffer to close
static strbuf strbuf_new ( ) [private]

Create a new string buffer.

Returns:
a new string buffer
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


The documentation for this struct was generated from the following file:
TWiki Appliance - Powered by TurnKey Linux