*** empty log message ***
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user