📄 xurl.h
字号:
/***************************************************************************** * xurl.h: URL manipulation functions (header file) ***************************************************************************** * Copyright (C) 2003-2004 Commonwealth Scientific and Industrial Research * Organisation (CSIRO) Australia * Copyright (C) 2004 VideoLAN * * $Id: xurl.h 10101 2005-03-02 16:47:31Z robux4 $ * * Authors: Andre Pang <Andre.Pang@csiro.au> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. *****************************************************************************/#ifndef __XURL_H__#define __XURL_H__#include <vlc/vlc.h>/* Specialise boolean definitions to VLC's boolean types */typedef vlc_bool_t XURL_Bool;#define XURL_FALSE VLC_FALSE#define XURL_TRUE VLC_TRUE/* Specialise general C functions to VLC's standards */#define xurl_malloc malloc#define xurl_free free/* Use DOS/Windows path separators? */#ifdef WIN32# define XURL_WIN32_PATHING#else# undef XURL_WIN32_PATHING#endif/* Debugging */#undef XURL_DEBUGchar * XURL_Join ( char *psz_url1, char *psz_url2 );char * XURL_Concat ( char *psz_url, char *psz_append );XURL_Bool XURL_IsAbsolute ( char *psz_url );XURL_Bool XURL_HasAbsolutePath ( char *psz_url );XURL_Bool XURL_IsFileURL ( char *psz_url );XURL_Bool XURL_HasFragment ( char *psz_url );char * XURL_GetHostname ( char *psz_url );char * XURL_GetSchemeAndHostname ( char *psz_url );char * XURL_GetScheme ( char *psz_url );char * XURL_GetPath ( char *psz_url );char * XURL_GetWithoutFragment ( char *psz_url );char * XURL_GetHead ( const char *psz_path );#endif /* __XURL_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -