VLC  2.1.0-git
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
strings.c File Reference
Include dependency graph for strings.c:

Data Structures

struct  xml_entity_s

Macros

#define INSERT_STRING(string)
#define INSERT_STRING_NO_FREE(string)

Functions

static int cmp_entity (const void *key, const void *elem)
void resolve_xml_special_chars (char *psz_value)
 Converts "&lt;", "&gt;" and "&amp;" to "<", ">" and "&".
char * convert_xml_special_chars (const char *str)
 XML-encode an UTF-8 string.
char * vlc_b64_encode_binary (const uint8_t *src, size_t i_src)
char * vlc_b64_encode (const char *src)
size_t vlc_b64_decode_binary_to_buffer (uint8_t *p_dst, size_t i_dst, const char *p_src)
size_t vlc_b64_decode_binary (uint8_t **pp_dst, const char *psz_src)
char * vlc_b64_decode (const char *psz_src)
char * str_format_time (const char *tformat)
 Formats current time into a heap-allocated string.
static void format_duration (char *buf, size_t len, int64_t duration)
char * str_format_meta (playlist_t *p_object, const char *string)
void filename_sanitize (char *str)
 Remove forbidden, potentially forbidden and otherwise evil characters from filenames.
void path_sanitize (char *str)
 Remove forbidden characters from full paths (leaves slashes)
time_t str_duration (const char *psz_duration)

Variables

static struct xml_entity_s xml_entities []

Macro Definition Documentation

#define INSERT_STRING (   string)
Value:
if( string != NULL ) \
{ \
int len = strlen( string ); \
dst = xrealloc( dst, i_size = i_size + len );\
memcpy( (dst+d), string, len ); \
d += len; \
free( string ); \
}

Referenced by str_format_meta().

#define INSERT_STRING_NO_FREE (   string)
Value:
{ \
int len = strlen( string ); \
dst = xrealloc( dst, i_size = i_size + len );\
memcpy( dst+d, string, len ); \
d += len; \
}

Referenced by str_format_meta().

Function Documentation

static int cmp_entity ( const void *  key,
const void *  elem 
)
static
static void format_duration ( char *  buf,
size_t  len,
int64_t  duration 
)
static

References CLOCK_FREQ, lldiv(), lldiv_t::quot, and lldiv_t::rem.

Referenced by str_format_meta().

Variable Documentation

struct xml_entity_s xml_entities[]
static