vlc_strings.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * vlc_strings.h: String functions
00003  *****************************************************************************
00004  * Copyright (C) 2006 VLC authors and VideoLAN
00005  * $Id: 9b4d0944cf94b6c4208fe26f2d92caee8fb7459c $
00006  *
00007  * Authors: Antoine Cellerier <dionoea at videolan dot org>
00008  *
00009  * This program is free software; you can redistribute it and/or modify it
00010  * under the terms of the GNU Lesser General Public License as published by
00011  * the Free Software Foundation; either version 2.1 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00017  * GNU Lesser General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU Lesser General Public License
00020  * along with this program; if not, write to the Free Software Foundation,
00021  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
00022  *****************************************************************************/
00023 
00024 #ifndef VLC_STRINGS_H
00025 #define VLC_STRINGS_H 1
00026 
00027 /**
00028  * \file
00029  * This file defines functions and structures handling misc strings
00030  */
00031 
00032 /**
00033  * \defgroup strings Strings
00034  * @{
00035  */
00036 
00037 VLC_API void resolve_xml_special_chars( char *psz_value );
00038 VLC_API char * convert_xml_special_chars( const char *psz_content );
00039 
00040 VLC_API char * vlc_b64_encode_binary( const uint8_t *, size_t );
00041 VLC_API char * vlc_b64_encode( const char * );
00042 
00043 VLC_API size_t vlc_b64_decode_binary_to_buffer( uint8_t *p_dst, size_t i_dst_max, const char *psz_src );
00044 VLC_API size_t vlc_b64_decode_binary( uint8_t **pp_dst, const char *psz_src );
00045 VLC_API char * vlc_b64_decode( const char *psz_src );
00046 
00047 VLC_API char * str_format_time( const char * );
00048 VLC_API char * str_format_meta( vlc_object_t *, const char * );
00049 #define str_format_meta( a, b ) str_format_meta( VLC_OBJECT( a ), b )
00050 VLC_API char * str_format( vlc_object_t *, const char * );
00051 #define str_format( a, b ) str_format( VLC_OBJECT( a ), b )
00052 
00053 VLC_API void filename_sanitize( char * );
00054 VLC_API void path_sanitize( char * );
00055 
00056 VLC_API time_t str_duration( const char * );
00057 
00058 /**
00059  * @}
00060  */
00061 
00062 #endif
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines