fixes problem whith lexical_cast being locale dependent
This commit is contained in:
@@ -34,11 +34,16 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
#define TORRENT_ESCAPE_STRING_HPP_INCLUDED
|
||||
|
||||
#include <string>
|
||||
#include <limits>
|
||||
#include <boost/optional.hpp>
|
||||
#include <boost/array.hpp>
|
||||
#include "libtorrent/config.hpp"
|
||||
#include "libtorrent/size_type.hpp"
|
||||
|
||||
namespace libtorrent
|
||||
{
|
||||
boost::array<char, 3 + std::numeric_limits<size_type>::digits10> to_string(size_type n);
|
||||
|
||||
std::string TORRENT_EXPORT unescape_string(std::string const& s);
|
||||
std::string TORRENT_EXPORT escape_string(const char* str, int len);
|
||||
std::string TORRENT_EXPORT escape_path(const char* str, int len);
|
||||
|
@@ -46,6 +46,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
namespace libtorrent
|
||||
{
|
||||
typedef boost::int64_t size_type;
|
||||
typedef boost::uint64_t unsigned_size_type;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user