Strings


Defines

#define str_format_meta(a, b)   __str_format_meta( VLC_OBJECT( a ), b )
#define str_format(a, b)   __str_format( VLC_OBJECT( a ), b )

Functions

void resolve_xml_special_chars (char *psz_value)
 Converts "&lt;", "&gt;" and "&amp;" to "<", ">" and "&".
char * convert_xml_special_chars (const char *psz_content)
 Converts '<', '>', '\"', '\'' and '&' to their html entities.
char * vlc_b64_encode_binary (const uint8_t *, size_t)
char * vlc_b64_encode (const char *)
size_t vlc_b64_decode_binary_to_buffer (uint8_t *p_dst, size_t i_dst_max, const char *psz_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 *)
 Formats current time into a heap-allocated string.
char * __str_format_meta (vlc_object_t *, const char *)
char * __str_format (vlc_object_t *, const char *)
 Apply str format time and str format meta.
char * filename_sanitize (const char *)
 Remove forbidden characters from filenames (including slashes).
void path_sanitize (char *)
 Remove forbidden characters from full paths (leaves slashes).

Define Documentation

#define str_format ( a,
 )     __str_format( VLC_OBJECT( a ), b )

#define str_format_meta ( a,
 )     __str_format_meta( VLC_OBJECT( a ), b )

Referenced by __str_format(), and ItemChange().


Function Documentation

char* __str_format ( vlc_object_t ,
const char *   
)

Apply str format time and str format meta.

References str_format_meta, and str_format_time().

char* __str_format_meta ( vlc_object_t ,
const char *   
)

char* convert_xml_special_chars ( const char *  psz_content  ) 

Converts '<', '>', '\"', '\'' and '&' to their html entities.

Parameters:
psz_content simple element content that is to be converted

References c, i, and gen_builder::str.

Referenced by Block(), DoChildren(), encode(), EvaluateRPN(), new_node(), vlclua_convert_xml_special_chars(), WriteXSPF(), xspf_export_item(), xspf_export_playlist(), and xspf_extension_item().

char* filename_sanitize ( const char *   ) 

Remove forbidden characters from filenames (including slashes).

References gen_builder::str, and strdup().

Referenced by ArtCacheGetDirPath(), ArtCacheName(), and input_CreateFilename().

void path_sanitize ( char *   ) 

Remove forbidden characters from full paths (leaves slashes).

References DIR_SEP_CHAR.

Referenced by input_CreateFilename(), Open(), SavePicture(), and vout_snapshot_SaveImage().

void resolve_xml_special_chars ( char *  psz_value  ) 

Converts "&lt;", "&gt;" and "&amp;" to "<", ">" and "&".

Parameters:
string to convert

References cmp_entity(), xml_entity_s::psz_char, xml_entity_s::psz_entity, and xml_entities.

Referenced by decode(), parse_extension_node(), ProcessNodes(), save_data(), set_item_info(), set_option(), and vlclua_resolve_xml_special_chars().

char* str_format_time ( const char *  tformat  ) 

Formats current time into a heap-allocated string.

Parameters:
tformat time format (as with C strftime())
Returns:
an allocated string (must be free()'d), or NULL on memory error.

References localtime_r(), gen_builder::str, and strdup().

Referenced by __str_format().

char* vlc_b64_decode ( const char *  psz_src  ) 

size_t vlc_b64_decode_binary ( uint8_t **  pp_dst,
const char *  psz_src 
)

size_t vlc_b64_decode_binary_to_buffer ( uint8_t *  p_dst,
size_t  i_dst_max,
const char *  psz_src 
)

char* vlc_b64_encode ( const char *   ) 

char* vlc_b64_encode_binary ( const uint8_t *  ,
size_t   
)


Generated on Sun Nov 22 08:06:05 2009 for VLC by  doxygen 1.5.6