|
VLC
2.1.0-git
|
Functions | |
| void | resolve_xml_special_chars (char *psz_value) |
| Converts "<", ">" and "&" to "<", ">" and "&". | |
| char * | convert_xml_special_chars (const char *psz_content) |
| XML-encode an UTF-8 string. | |
| 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 (playlist_t *, const char *) |
| static char * | str_format (playlist_t *pl, const char *fmt) |
| void | filename_sanitize (char *) |
| Remove forbidden, potentially forbidden and otherwise evil characters from filenames. | |
| void | path_sanitize (char *) |
| Remove forbidden characters from full paths (leaves slashes) | |
| time_t | str_duration (const char *) |
| char* convert_xml_special_chars | ( | const char * | str | ) |
XML-encode an UTF-8 string.
| str | nul-terminated UTF-8 byte sequence to XML-encode |
References likely, unlikely, and vlc_towc().
Referenced by encode().
| void filename_sanitize | ( | char * | str | ) |
Remove forbidden, potentially forbidden and otherwise evil characters from filenames.
This includes slashes, and popular characters like colon (on Unix anyway), so this should only be used for automatically generated filenames.
References EnsureUTF8().
Referenced by ArtCacheGetDirPath(), ArtCacheName(), input_CreateFilename(), and vout_snapshot_SaveImage().
| void path_sanitize | ( | char * | ) |
Remove forbidden characters from full paths (leaves slashes)
References DIR_SEP_CHAR.
Referenced by input_CreateFilename(), and vout_snapshot_SaveImage().
| void resolve_xml_special_chars | ( | char * | psz_value | ) |
Converts "<", ">" and "&" to "<", ">" and "&".
| string | to convert |
References cmp_entity(), xml_entity_s::psz_char, xml_entity_s::psz_entity, psz_value, and xml_entities.
Referenced by decode().
| time_t str_duration | ( | const char * | ) |
|
inlinestatic |
References str_format_meta(), and str_format_time().
Referenced by input_CreateFilename().
| char* str_format_meta | ( | playlist_t * | , |
| const char * | |||
| ) |
References AOUT_VOLUME_DEFAULT, EMPTY_STR, format_duration(), input_stats_t::i_displayed_pictures, input_GetItem(), input_item_GetAlbum(), input_item_GetArtist(), input_item_GetCopyright(), input_item_GetDate(), input_item_GetDescription(), input_item_GetDuration(), input_item_GetEncodedBy(), input_item_GetGenre(), input_item_GetLanguage(), input_item_GetName(), input_item_GetNowPlaying(), input_item_GetPublisher(), input_item_GetRating(), input_item_GetTitle(), input_item_GetTitleFbName(), input_item_GetTrackNum, input_item_GetURI(), input_item_GetURL(), INSERT_STRING, INSERT_STRING_NO_FREE, input_stats_t::lock, input_item_t::p_stats, playlist_CurrentInput(), playlist_VolumeGet(), strdup(), var_GetFloat, var_GetInteger, var_GetNonEmptyString, var_GetTime, vlc_mutex_lock(), vlc_mutex_unlock(), and vlc_object_release.
Referenced by str_format().
| char* str_format_time | ( | const char * | tformat | ) |
Formats current time into a heap-allocated string.
| tformat | time format (as with C strftime()) |
References localtime_r(), and strdup().
Referenced by str_format(), and vout_snapshot_SaveImage().
| char* vlc_b64_decode | ( | const char * | psz_src | ) |
References vlc_b64_decode_binary_to_buffer().
Referenced by httpd_HostThread().
| size_t vlc_b64_decode_binary | ( | uint8_t ** | pp_dst, |
| const char * | psz_src | ||
| ) |
References vlc_b64_decode_binary_to_buffer().
| size_t vlc_b64_decode_binary_to_buffer | ( | uint8_t * | p_dst, |
| size_t | i_dst_max, | ||
| const char * | psz_src | ||
| ) |
Referenced by vlc_b64_decode(), and vlc_b64_decode_binary().
| char* vlc_b64_encode | ( | const char * | ) |
References vlc_b64_encode_binary().
Referenced by http_auth_FormatAuthorizationHeader(), and test_b64().
| char* vlc_b64_encode_binary | ( | const uint8_t * | , |
| size_t | |||
| ) |
Referenced by vlc_b64_encode().
1.8.1.2