#include <ctime>#include <iostream>#include <fstream>#include <iomanip>#include <iterator>#include <algorithm>#include <set>#include <boost/lexical_cast.hpp>#include <boost/date_time/gregorian/gregorian_types.hpp>#include <boost/filesystem/path.hpp>#include <boost/next_prior.hpp>#include <boost/bind.hpp>#include "libtorrent/torrent_info.hpp"#include "libtorrent/bencode.hpp"#include "libtorrent/hasher.hpp"#include "libtorrent/entry.hpp"Go to the source code of this file.
Namespaces | |
| namespace | libtorrent |
Functions | |
| void | convert_to_utf8 (std::string &str, unsigned char chr) |
| void | verify_encoding (file_entry &target) |
| void | extract_single_file (const entry &dict, file_entry &target, std::string const &root_dir) |
| void | extract_files (const entry::list_type &list, std::vector< file_entry > &target, std::string const &root_dir) |
| void | remove_dir (path &p) |
| void @292::convert_to_utf8 | ( | std::string & | str, | |
| unsigned char | chr | |||
| ) | [static] |
| void @292::extract_files | ( | const entry::list_type & | list, | |
| std::vector< file_entry > & | target, | |||
| std::string const & | root_dir | |||
| ) | [static] |
Definition at line 164 of file torrent_info.cpp.
References extract_single_file().
Referenced by libtorrent::torrent_info::parse_info_section().
| void @292::extract_single_file | ( | const entry & | dict, | |
| file_entry & | target, | |||
| std::string const & | root_dir | |||
| ) | [static] |
Definition at line 132 of file torrent_info.cpp.
References libtorrent::entry::find_key(), libtorrent::entry::integer(), libtorrent::entry::list(), libtorrent::file_entry::path, libtorrent::file_entry::size, and verify_encoding().
Referenced by extract_files().
| void @292::remove_dir | ( | path & | p | ) | [static] |
| void @292::verify_encoding | ( | file_entry & | target | ) | [static] |
Definition at line 46 of file torrent_info.cpp.
References convert_to_utf8(), libtorrent::dht::distance(), asio::placeholders::iterator, libtorrent::file_entry::orig_path, and libtorrent::file_entry::path.
Referenced by extract_single_file().
1.5.6