⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cs_url.h

📁 c-smile 一个语法类似与JS 又有点像C++的 编译器
💻 H
字号:
/*
*
* cs_url.h
*
* Copyright (c) 2001, 2002
* Andrew Fedoniouk - andrew@terra-informatica.org
* Portions: Serge Kuznetsov -  kuznetsov@deeptown.org
*
* See the file "COPYING" for information on usage 
* and redistribution of this file
*
*/
#ifndef __cs_url_h
#define __cs_url_h

#include "cs_string.h"
#include "cs_dictionary.h"

namespace tool
{
  class url
  {
    /*
    * protocol://username:password@hostname:port/filename#anchor
    */
  public:
    string protocol;
    string hostname;
    int    port;
    string filename;
    string anchor;

    string                     method;
    dictionary<string, string> attributes;

    string data_type;
    string auth_type;

    string username;
    string password;

  public:
    url () : port ( 0 )
    {
    }

    ~url ()
    {
    }

    bool parse ( const char * src );
    static string escape ( const char *url, bool space_to_plus = true );
    static string unescape ( const char *src );

  };

};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -