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

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

?? chmxx.h

?? It is a chm file viewer lib with source code
?? H
字號:
#ifndef __chm_h__#define __chm_h__#include <string>#include <ostream>#include <istream>#include <vector>#include <list>#include <map>/** * @mainpage * This is a c++ library for accessing the Microsoft(TM) * help files (mostly .chm files).<br> For latest updates * and more information please see<br> *      <ul>http://www.mare.ee/indrek/libchmxx/</ul> */struct chmFile;/** This is the namespace for libchmxx library.  * The library should not export any sumbols to global  * namespace.  */namespace chm {/** This represents a tree of topics with titles and paths. */struct chm_topics_tree {  std::string title;  ///< Title of the tree node  std::string path;   ///< Path to file under given topic or empty  chm_topics_tree *parent; ///< Pointer to parent tree node, NULL if no parent  std::list<chm_topics_tree *> children; ///< std::list of children node  ~chm_topics_tree ();};/** Matched document inside the search result. */struct chm_search_document {  std::string title;                ///< Document title.  std::string path;                 ///< Document path.  std::vector<int> offsets;         ///< Where inside this document the result was found};/** Search match for keyword found inside the index. */struct chm_search_match {  int is_title;                    ///< Given key is inside a title  std::string key;                  ///< Key that was found inside the index.  std::vector<chm_search_document> documents; ///< Documents matching to this index.};/** A chm archive. */class chmfile {public:  /** Construct a new chmfile object from given path. */  chmfile (const std::string& path);  virtual ~chmfile ();  /** Tests whether archive is valid and open. */  bool is_open () const;  /** Close the archive and free resources. */  void close ();  /** Tests whether opened archive is valid. */  inline operator bool() const { return is_open(); }  /** Read the entire contents of given file and write to stream out. */  bool read (const std::string& path, std::ostream& out) const;  /** Read the entire contents of a file and store inside given vector.   * The vector is resized to file size. */  bool read (const std::string& path, std::vector<char>& out) const;  /** Read buf_size bytes from path and place into buf. */  bool read (const std::string& path, char *buf, size_t buf_size) const;  /** Returns the size of given file inside archive, returns 0 if file does not exist. */  std::streamsize file_size (const std::string& path) const;  /** Returns a boolean value whether given file exists inside the archive. */  bool file_exists (const std::string& path) const;  /** Use a combination of these as argument to the readdir. */  enum readdir_type { files = 1, dirs = 2, special = 4, meta = 8 };  /** Read entries under given path and append them to the list.    * Files of directory type will have '/' at the end of their names. */  bool readdir (const std::string& path, std::list<std::string>& entries, int type = files|dirs) const;  /** Open given path inside the archive for reading and return a streambuf object.    * Returns 0 in case file does not exist or an error happened. You're    * better off to using chmistream than this method. The returned object should    * be deleted after use. */  std::streambuf* open (const std::string& path, size_t buf_size = 1024) const;  inline const std::string& get_title () const { return title; }  inline const std::string& get_home_file () const { return home_file; }  inline const std::string& get_generator () const { return generator; }  inline const std::string& get_index_file () const { return index_file; }  inline const std::string& get_topics_file () const { return topics_file; }  inline const std::string& get_path () const { return path; }  /** Gets the topics tree. If this is called first time the tree    * is calculated and stored for later use. In case the chm file    * has no soptics tree NULL is returned. */  const chm_topics_tree * get_topics_tree () const;  /** Search the archive for given keyword and return found entries in found. */  bool search_index (const std::string& txt, std::list<chm_search_match>& found,      bool whole_words = true, bool titles_only = true) const;  /** Cache given file for _fast_ access inside memory. All streams opened    * for that file will be memory cached. I know this caching business    * is a bit superfluous. It's not all good too - if you start    * unreading stuff using the stream the cache will be changed.    */  bool cache (const std::string& path);  /** Cache all metadata that is required to perform fast searches inside the index. */  void cache_search_database ();private:  mutable chmFile *chm;  std::string path;  std::string title, home_file, generator, index_file, topics_file;  mutable chm_topics_tree *tree;  chmfile (const chmfile&);  chmfile& operator= (const chmfile&);  typedef std::map<std::string,std::vector<char> > cache_data_t;  cache_data_t cache_data;};/** Inputstream for reading files inside a chm archives.  * @code        chm::chmfile chm("/chmfile.chm");        chm::chmistream in(chm, "/path");        string line;        while ( readline(chm, line) ) {            cout << line;        }  * @endcode  */class chmistream : public std::istream {public:  /** Create a new input stream from archive for given path. */  chmistream (const chmfile& chm, const std::string& path, size_t buf_size = 1024);  /** Returns the number of bytes that are left to be read from this stream.   * So returns the size of file when nothing has been read. */  std::streamsize read_left () const;  virtual ~chmistream ();  /** Get little endian MS encint from the stream. */  inline size_t get_encint()  {      size_t result = 0;      int shift = 0;      while (1) {          int n = get();          result |= (n & 0x7f) << shift;          shift += 7;          if ( !(n & 0x80) ) break;      };      return result;  }  /** Get local endianized MS dword (2 x 2 bytes) from the stream. */  inline unsigned long get_dword ()  {#if __BYTE_ORDER == __LITTLE_ENDIAN // convenience shortcut    unsigned long res = 0;  // long guatanteed to be 4 bytes    read ((char *)&res, 4);    return res;#else    char buf[4];    read (buf, 4);    size_t res = buf[0];    res |= buf[1] << 8;    res |= buf[2] << 16;    res |= buf[3] << 24;    return res;#endif  }  /** Get local endianized MS word (2 bytes) from the stream.    */  inline unsigned int get_word ()  {#if __BYTE_ORDER == __LITTLE_ENDIAN // convenience shortcut    unsigned int res = 0;   // int guaranteed to be 2 bytes    read ((char *)&res, 2);    return res;#else    char buf[2];    read (buf, 2);    unsigned int res = buf[0];    res |= buf[1] << 8;    return res;#endif  }  /** Get a s-r encoded value from the stream. Scale must alwqays be 2.    * Use 0 for initial pos. When finished reading an entry of sr-s    * call the get_sr_finish(pos).*/  inline unsigned long get_sr (int s, int r, int& pos)  {    int b = peek();    int p = 0;    while ( (1 << pos) & b ) {        p++;        pos++;        if ( pos == 8 ) {            get();            b = peek ();            pos = 0;        }    }    pos++;    // skip the 0 of p    if ( pos == 8 ) {        get ();        b = peek ();        pos = 0;    }    if ( p > 1 ) r += p - 1; // r now has number of bits for q    unsigned long res = 0;    for ( int i = 0; i < r; i++ ) {        res |= ((1 << pos) & b) ? (1 << i) : 0;        pos++;        if ( pos == 8 ) {            get ();            b = peek ();            pos = 0;        }    }    res |= 1 << r;    return res;  }  inline void get_sr_finish (int &pos)  {    if ( pos ) {        get();        pos = 0;    }  }private:  std::streambuf *buf;  bool release;};}#endif // __chm_h__

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品亚洲视频| 亚洲一卡二卡三卡四卡| 国产一区在线精品| 日韩一级免费观看| 久久成人免费网| 久久精品一区二区三区不卡牛牛| 国产电影一区二区三区| 中文字幕在线不卡一区二区三区| 成人av电影在线| 亚洲综合在线五月| 91精品国产福利| 精品午夜久久福利影院| 国产精品素人视频| 在线观看av一区| 日本亚洲电影天堂| 国产片一区二区| 一本大道久久a久久精二百| 亚洲成人精品一区二区| 欧美大片国产精品| 91论坛在线播放| 婷婷开心久久网| 久久久久久一二三区| 91免费看片在线观看| 三级久久三级久久| 久久久另类综合| 在线视频中文字幕一区二区| 久久精品久久综合| **欧美大码日韩| 日韩女同互慰一区二区| 91在线国内视频| 美女视频一区二区| 综合中文字幕亚洲| 日韩精品一区二| 色天天综合色天天久久| 精品一二三四区| 亚洲国产日韩一级| 国产精品日韩精品欧美在线| 在线播放亚洲一区| 北条麻妃一区二区三区| 日本成人超碰在线观看| 亚洲欧洲精品一区二区三区不卡| 欧美一区二区啪啪| 91豆麻精品91久久久久久| 激情文学综合插| 日韩不卡一区二区| 亚洲精品欧美综合四区| 久久久久成人黄色影片| 国产亚洲成av人在线观看导航| 91小视频在线| 国产成都精品91一区二区三| 日韩成人免费看| 一区二区三区高清| 国产精品福利电影一区二区三区四区| 日韩三级中文字幕| 欧美日韩你懂得| 欧洲日韩一区二区三区| 91一区二区三区在线观看| 国内成人免费视频| 麻豆精品新av中文字幕| 午夜伊人狠狠久久| 亚洲第一精品在线| 亚洲一区二区在线免费看| 中文字幕亚洲电影| 久久久久国产精品人| 26uuu亚洲综合色欧美| 日韩欧美国产电影| 5858s免费视频成人| 精品视频在线视频| 欧美熟乱第一页| 欧美天天综合网| 欧美三级电影在线看| 在线欧美小视频| 91豆麻精品91久久久久久| 91在线视频观看| 99精品视频中文字幕| 成人白浆超碰人人人人| 高清不卡在线观看| 成人动漫在线一区| 波多野结衣中文字幕一区二区三区| 久久精品国产99国产| 久久精品国产亚洲aⅴ | 日韩三级.com| 日韩精品中文字幕在线一区| 欧美不卡激情三级在线观看| 精品国产乱子伦一区| 亚洲精品在线电影| 国产精品理论片| 亚洲免费资源在线播放| 亚洲国产美女搞黄色| 婷婷久久综合九色综合绿巨人| 天天做天天摸天天爽国产一区 | 亚洲综合激情另类小说区| 亚洲综合偷拍欧美一区色| 亚洲电影你懂得| 午夜成人在线视频| 久久精品久久99精品久久| 国产一区二区三区观看| av成人动漫在线观看| 欧美在线视频全部完| 5858s免费视频成人| 久久综合九色综合欧美98| 中文字幕精品—区二区四季| 亚洲少妇中出一区| 婷婷开心激情综合| 国产精品99久久久久久宅男| 99久久精品国产一区| 亚洲精品一区二区三区四区高清 | 国产午夜亚洲精品午夜鲁丝片| 国产亚洲精品资源在线26u| 亚洲视频在线一区观看| 日韩国产欧美在线观看| 国产一区在线精品| 欧洲一区在线电影| 久久亚洲精品国产精品紫薇| 亚洲欧洲另类国产综合| 青青国产91久久久久久 | 色综合久久中文字幕| 欧美剧情片在线观看| 日本一二三不卡| 三级精品在线观看| 不卡的av网站| 91精品国产日韩91久久久久久| 国产日韩欧美精品在线| 亚洲 欧美综合在线网络| 国产91精品精华液一区二区三区| 在线视频你懂得一区二区三区| 精品国产免费视频| 亚洲一区二区三区四区中文字幕| 国产在线国偷精品产拍免费yy| 91国偷自产一区二区开放时间 | 国产精品三级电影| 日本系列欧美系列| 在线影视一区二区三区| 久久蜜桃一区二区| 天堂va蜜桃一区二区三区| 91在线视频18| 国产日韩欧美电影| 久久99蜜桃精品| 欧美色成人综合| 国产精品成人免费在线| 精品一区二区三区的国产在线播放| 在线视频欧美精品| 亚洲视频香蕉人妖| 丁香婷婷综合色啪| 26uuuu精品一区二区| 奇米精品一区二区三区在线观看| 色一情一伦一子一伦一区| 亚洲国产岛国毛片在线| 美女视频黄 久久| 欧美巨大另类极品videosbest| 亚洲视频一区二区在线| 成人h动漫精品一区二区| 精品久久久久久久久久久院品网| 婷婷综合另类小说色区| 欧美性受xxxx| 亚洲精品v日韩精品| 欧美精品电影在线播放| 一区二区三区精品| 91丨porny丨首页| ●精品国产综合乱码久久久久| 成人一道本在线| 中文字幕乱码一区二区免费| 国产在线精品一区二区不卡了 | 26uuu成人网一区二区三区| 免费在线看成人av| 欧美一级xxx| 免费一级片91| 欧美成人午夜电影| 麻豆精品在线看| 精品久久久影院| 精品一区二区精品| 国产午夜精品一区二区三区四区| 寂寞少妇一区二区三区| 久久毛片高清国产| 国产精品一区在线观看乱码| 久久久高清一区二区三区| 国产不卡高清在线观看视频| 久久精品亚洲乱码伦伦中文 | 99国产麻豆精品| 亚洲影院久久精品| 91精品欧美综合在线观看最新| 日韩成人伦理电影在线观看| 精品国产成人在线影院| 韩国欧美国产1区| 国产欧美一区二区三区在线老狼| 成人妖精视频yjsp地址| 亚洲麻豆国产自偷在线| 精品视频999| 激情综合色丁香一区二区| 国产色一区二区| 91麻豆精品一区二区三区| 亚洲国产乱码最新视频| 日韩你懂的在线观看| 国产99精品视频| 一级女性全黄久久生活片免费| 69p69国产精品| 国产精品一卡二卡| 亚洲狠狠丁香婷婷综合久久久| 欧美男男青年gay1069videost| 国产综合色精品一区二区三区|