libcss
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions
format_list_style.c File Reference
#include "select/propget.h"
#include "utils/utils.h"

Classes

struct  numeric
 
struct  list_counter_style
 

Macros

#define SYMBOL_SIZE   8
 

Typedefs

typedef char symbol_t[SYMBOL_SIZE]
 

Functions

css_error css_computed_format_list_style (const css_computed_style *style, int value, char *buffer, size_t buffer_length, size_t *format_length)
 

Macro Definition Documentation

◆ SYMBOL_SIZE

#define SYMBOL_SIZE   8

Typedef Documentation

◆ symbol_t

typedef char symbol_t[SYMBOL_SIZE]

Function Documentation

◆ css_computed_format_list_style()

css_error css_computed_format_list_style ( const css_computed_style style,
int  value,
char *  buffer,
size_t  buffer_length,
size_t *  format_length 
)

Format a value into a text string controled by a list style

Parameters
[in]styleThe computed style to use for formatting
[in]valueThe value to format
[out]bufferThe buffer to recive the formatted result
[in]buffer_lengthThe length of the buffer
[out]format_lengthThe complete length of the formatted result which may exceed buffer_length in which case the buffer data will not be complete.
Returns
CSS_OK on success and the buffer and format_length updated