亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? url.h

?? 彩信瀏覽器
?? H
字號:
/* * This file is part of Ambulant Player, www.ambulantplayer.org. * * Copyright (C) 2003-2007 Stichting CWI,  * Kruislaan 413, 1098 SJ Amsterdam, The Netherlands. * * Ambulant Player is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * Ambulant Player 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with Ambulant Player; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA *//*  * @$Id: url.h,v 1.43 2007/02/12 14:14:43 jackjansen Exp $  */#ifndef AMBULANT_NET_URL_H#define AMBULANT_NET_URL_H#include "ambulant/config/config.h"#include <string>#include <list>#include "ambulant/lib/string_util.h"namespace ambulant {namespace net {/// Class representing a URL.class AMBULANTAPI url {	// String type used by this impplementation	typedef std::basic_string<char> string;		// Size type	typedef std::basic_string<char>::size_type size_type;		// Short type representing a protocol port.	typedef unsigned short short_type;		// True if absolute URL. m_protocol, m_host and m_port are	// only valid for absolulte URLs.	bool m_absolute;	    // The protocol to use (ftp, http, nntp, ... etc.)     string m_protocol;    // The host name to connect to.    string m_host;    // The protocol port to connect to.    short_type m_port;	// The path part of this url.    string m_path;    	// The query part of this url.    string m_query;	// The ref or fragment.    string m_ref;	    // The mime type    string m_mime;	// Determines how strict we parse URLs	static bool s_strict;  protected:	/// Create a URL from a given string.	url(const string& spec); 		/// Create a URL from protocol, host and path.	url(const string& protocol, const string& host, const string& path); 			/// Create a URL from protocol, host, port and path.	url(const string& protocol, const string& host, int port, 		const string& path); 		/// Create a URL from protocol, host, port, path, query and fragment.	url(const string& protocol, const string& host, int port, 		const string& path, const string& query, const string& ref); 		  public:	/// Default constructor: create an empty URL. 	url();	/// Factory function: create URL given a URL string	static url from_url(const std::string& spec) {		return url(spec);	}	/// Factory function: create URL given a filename string	static url from_filename(const std::string& spec, bool handle_frag=false); 	/// Factory function: create URL given a filename string	static  url from_filename(const char *spec, bool handle_frag=false); 	/// Return the protocol of this URL.	const string& get_protocol() const {		return m_protocol;	}		/// Return the host of this URL.	const string& get_host() const {		return m_host;	}		/// Return the port of this URL.	short_type get_port() const {		return m_port;	}		/// Return the fragment of this URL.	const string& get_ref() const {		return m_ref;	}		/// Return the query of this URL.	const string& get_query() const {		return m_query;	}		/// Return the path of this URL.	const string& get_path() const {		return m_path;	}		/// Return the mimetype of this URL (not implemented).	const string& get_mime() const {		return m_mime;	}		/// Return true if the URL is absolute.	bool is_absolute() const {		return m_absolute;	}		/// Return true if the path of this URL is empty	bool is_empty_path() const {		return m_path == "";	}		/// Return true if the URL refers to a local file.	bool is_local_file() const;		/// If the URL refers to a local file: return the filename.	string get_file() const;		/// Return the whole URL as a string.	string get_url() const;//	/// Return the whole URL as a string.//	operator string() const { return get_url(); }		/// Join a relative URL to a base URL.	/// An absolute URL is returned as-is.	url join_to_base(const url &base) const;	/// Return a URL pointing to the directory containing this URL	url get_base() const;		/// Return a URL with the #fragment stripped.	url get_document() const;	/// Return a URL with a new #fragment.	url add_fragment(string fragment) const;	/// Return true if two URLs refer to the same document.	/// In other words, if they only differ in fragment.	bool same_document(const url &base) const;	/// Return the absolute pathname of probably cached datafile	/// as an URL. Implementation may be platform dependent.	std::pair<bool, url> get_local_datafile() const;	/// Guess the mimetype. Supports only very few types, returns	/// the empty string if it cannot guess.	std::string guesstype() const;		/// Set the directory where datafiles (as returned by get_local_datafile())	/// normally reside on this platform. The argument is a platform-style	/// pathname, not a URL.	static void set_datafile_directory(std::string pathname);		/// Set a flag that determines whether we are strict about URL conformance	/// (illegal characters, etc) or not	static void set_strict_url_parsing(bool strict) {		s_strict = strict;	}	static void init_statics();  private:	// protocols to ports map 	// static std::map<string, short_type > s_ports;		// Check that URL has correctly escaped characters	void _checkurl() const; 	void set_parts(ambulant::lib::scanner& sc, const std::string& pat);		// split url string representation 	void set_from_spec(const string& spec); 	// pat: "n://n:d/"	void set_from_host_port_uri(ambulant::lib::scanner& sc, const std::string& pat); 		// pat: "n://dn:d/"	void set_from_numhost_port_uri(ambulant::lib::scanner& sc, const std::string& pat); 		// pat: "n://n/"	void set_from_host_uri(ambulant::lib::scanner& sc, const std::string& pat); 		// pat: "n://dn/"	void set_from_numhost_uri(ambulant::lib::scanner& sc, const std::string& pat); 		// pat: "n:///"	void set_from_localhost_file_uri(ambulant::lib::scanner& sc, const std::string& pat); 		// pat: "/n"	void set_from_absolute_path(ambulant::lib::scanner& sc, const std::string& pat);		// pat: "n"	void set_from_relative_path(ambulant::lib::scanner& sc, const std::string& pat);	// pat: "n:,"	void set_from_data_uri(ambulant::lib::scanner& sc, const std::string& pat);		// pat: "n:"	void set_from_scheme(ambulant::lib::scanner& sc, const std::string& pat);	};// workaround for g++ 2.95struct url_handler_pair { 	const char *first; 	void (url::*second)(ambulant::lib::scanner& sc, const std::string& pat);};//typedef void (url::*HANDLER)(ambulant::lib::scanner& sc, const std::string& pat);static std::list<url_handler_pair*> s_handlers;	} // namespace net } // namespace ambulant#if !defined(AMBULANT_PLATFORM_WIN32_WCE)inline std::string repr(const ambulant::net::url& u) {	std::string os;	if (u.is_absolute()) {		if(u.get_protocol() == "file") {			os << u.get_protocol() << "://" << 				((u.get_host()=="localhost")?"":u.get_host());		} else if (u.get_protocol() == "data") {			os << "data:,";		} else if (u.get_host() != "" ) {			os << u.get_protocol() << "://" << u.get_host();			if(u.get_port() != 0) os << ":" << int(u.get_port());		} else {			os << u.get_protocol() << ":";		}	}	os << u.get_path();	if(!u.get_ref().empty()) 		os << "#" << u.get_ref();	if(!u.get_query().empty()) 		os << "?" << u.get_query();	return os;}#else inline std::string repr(const ambulant::net::url& u) {	std::string os;	if (u.is_absolute())		os += u.get_protocol() + "//" + u.get_host() + u.get_path();	else		os += u.get_path();	return os;}void set_url_from_spec(ambulant::net::url& u, const char *spec);#endif#endif // AMBULANT_NET_URL_H

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品国产欧美一区二区18| 一区二区三区欧美日| 亚洲视频一区在线| 麻豆精品新av中文字幕| 色国产精品一区在线观看| 国产日韩成人精品| 九色porny丨国产精品| 欧美日韩国产高清一区| 国产精品久久久爽爽爽麻豆色哟哟| 日韩精品一区第一页| 色婷婷综合久久久久中文一区二区 | 色激情天天射综合网| 久久综合丝袜日本网| 麻豆精品视频在线观看| 91精品国产综合久久精品性色| 亚洲人成网站在线| 99久久伊人久久99| 国产精品国产三级国产aⅴ原创| 国产乱码精品1区2区3区| 精品久久久久久无| 另类小说综合欧美亚洲| 日韩欧美一区二区在线视频| 日日夜夜免费精品视频| 欧美探花视频资源| 亚洲一区二区免费视频| 欧美午夜在线一二页| 亚洲精品成人在线| 在线观看区一区二| 亚洲色图视频网| 日本韩国欧美在线| 一区二区三区在线视频观看58 | 亚洲欧美偷拍卡通变态| 97久久精品人人爽人人爽蜜臀 | 在线观看免费亚洲| 中文字幕字幕中文在线中不卡视频| 成人性生交大片免费看视频在线| 国产亚洲成av人在线观看导航 | 午夜av区久久| 日韩小视频在线观看专区| 麻豆国产欧美日韩综合精品二区 | 欧美96一区二区免费视频| 欧美一级久久久| 国内精品伊人久久久久av影院| 久久嫩草精品久久久精品| 国产成人av电影在线| 中文字幕一区视频| 欧洲精品中文字幕| 蜜臀久久99精品久久久久宅男| 欧美哺乳videos| 成人动漫精品一区二区| 亚洲第一福利视频在线| 日韩一级完整毛片| 国产成人在线视频网站| 依依成人精品视频| 欧美不卡在线视频| 福利一区二区在线观看| 亚洲五码中文字幕| 久久品道一品道久久精品| 99久久精品一区二区| 亚洲二区视频在线| 久久久久久久久久久久久女国产乱| 成人小视频免费观看| 亚洲午夜电影在线| 国产欧美日韩三级| 欧美日韩和欧美的一区二区| 国产精品中文字幕日韩精品| 一级中文字幕一区二区| 精品少妇一区二区三区日产乱码| 成人av资源在线观看| 麻豆视频一区二区| 亚洲美女淫视频| 精品国产乱码久久久久久图片 | 日韩视频国产视频| 成a人片亚洲日本久久| 亚洲成av人在线观看| 亚洲国产精品精华液ab| 这里只有精品99re| 91色视频在线| 国产九色sp调教91| 三级在线观看一区二区| 亚洲色图欧洲色图| 久久精品无码一区二区三区| 欧美精品v日韩精品v韩国精品v| 成人精品一区二区三区中文字幕| 奇米精品一区二区三区在线观看一 | 亚洲gay无套男同| 国产精品短视频| 久久综合狠狠综合| 欧美一区永久视频免费观看| 色婷婷av一区二区三区gif| 丁香天五香天堂综合| 极品少妇一区二区| 奇米影视7777精品一区二区| 亚洲国产另类av| 一片黄亚洲嫩模| 亚洲三级电影网站| 中文字幕在线观看不卡视频| 国产午夜亚洲精品不卡| 精品国产3级a| 欧美成人r级一区二区三区| 欧美日韩国产片| 欧美伊人久久久久久久久影院| 不卡视频在线看| 成人黄色在线看| 不卡的av电影| 成人丝袜高跟foot| 波多野结衣在线aⅴ中文字幕不卡| 精品一区二区三区免费观看| 久久99精品久久久久久国产越南| 日本va欧美va欧美va精品| 亚洲成av人片在线观看无码| 亚洲一区二区三区不卡国产欧美| 一区二区三区精品久久久| 亚洲日本va午夜在线电影| 亚洲视频中文字幕| 成人欧美一区二区三区小说| 国产精品美日韩| 亚洲人成在线观看一区二区| 亚洲精品写真福利| 亚洲一区二区三区视频在线播放| 午夜亚洲国产au精品一区二区| 亚洲电影你懂得| 欧美aaaaaa午夜精品| 国模娜娜一区二区三区| 国产**成人网毛片九色 | 国产美女精品人人做人人爽| 国产乱码精品一区二区三区忘忧草 | 欧美最猛性xxxxx直播| 欧美在线你懂得| 欧美日产在线观看| 国产亚洲精品bt天堂精选| 国产三级欧美三级日产三级99| 欧美激情一区在线观看| 一区二区三区日本| 奇米影视一区二区三区| 国产福利一区在线观看| 91在线观看美女| 欧美日韩在线一区二区| 亚洲精品一区二区三区影院| 国产精品久线在线观看| 亚洲第一福利一区| 韩国女主播成人在线观看| 93久久精品日日躁夜夜躁欧美| 欧美亚日韩国产aⅴ精品中极品| 日韩一区二区精品在线观看| 国产精品日产欧美久久久久| 天堂在线亚洲视频| 大陆成人av片| 777亚洲妇女| 国产精品国产三级国产aⅴ入口 | 高清成人在线观看| 欧美日韩国产成人在线91| 久久久久97国产精华液好用吗| 亚洲激情av在线| 久久国产精品72免费观看| 99天天综合性| 久久久亚洲国产美女国产盗摄| 亚洲国产视频直播| 国产大陆亚洲精品国产| 欧美老女人在线| 国产精品国产三级国产aⅴ入口| 丝袜亚洲另类欧美| av成人动漫在线观看| 欧美精品一区二区三区四区| 亚洲影视在线观看| 成人激情电影免费在线观看| 日韩精品自拍偷拍| 亚洲一区二区中文在线| 成人精品高清在线| 精品美女一区二区| 午夜视频在线观看一区二区 | 成人国产在线观看| 91精品国产综合久久福利软件| 亚洲视频每日更新| 粉嫩在线一区二区三区视频| 欧美电影免费观看高清完整版| 亚洲夂夂婷婷色拍ww47| www.99精品| 国产精品全国免费观看高清| 国产一区二区三区四区在线观看| 在线不卡中文字幕| 亚洲一区免费视频| 91在线国产福利| 中文字幕高清不卡| 国产激情精品久久久第一区二区| 欧美一区二区三区免费在线看| 亚洲综合色噜噜狠狠| 在线中文字幕一区二区| 亚洲天堂精品在线观看| 不卡的av在线| 国产精品第13页| 91在线免费视频观看| 亚洲人妖av一区二区| 99在线精品免费| 亚洲免费观看视频| 在线精品视频一区二区三四| 亚洲五码中文字幕| 欧美日韩一区不卡| 免费高清成人在线| 精品久久久久香蕉网|