*** empty log message ***

This commit is contained in:
Arvid Norberg
2005-08-12 12:40:58 +00:00
parent 8a90767be8
commit f7c90b8511
23 changed files with 1254 additions and 269 deletions

View File

@@ -89,6 +89,28 @@ namespace
namespace libtorrent
{
namespace detail
{
char const* integer_to_str(char* buf, int size, entry::integer_type val)
{
int sign = 0;
if (val < 0)
{
sign = 1;
val = -val;
}
buf[--size] = '\0';
if (val == 0) buf[--size] = '0';
for (; size > sign && val != 0;)
{
buf[--size] = '0' + char(val % 10);
val /= 10;
}
if (sign) buf[--size] = '-';
return buf + size;
}
}
entry& entry::operator[](char const* key)
{
dictionary_type::iterator i = std::find_if(