integrated improvements from 1.3.4 (NumberFormatter::append(), DateTimeFormatter::append()

This commit is contained in:
Guenter Obiltschnig
2009-02-21 10:59:58 +00:00
parent 60e1433f51
commit fa1658b23a
23 changed files with 1173 additions and 598 deletions

View File

@@ -1,7 +1,7 @@
//
// HTTPCookie.cpp
//
// $Id: //poco/Main/Net/src/HTTPCookie.cpp#8 $
// $Id: //poco/Main/Net/src/HTTPCookie.cpp#9 $
//
// Library: Net
// Package: HTTP
@@ -260,7 +260,7 @@ std::string HTTPCookie::toString() const
Timestamp ts;
ts += _maxAge*Timestamp::resolution();
result.append("; expires=");
result.append(DateTimeFormatter::format(ts, DateTimeFormat::HTTP_FORMAT));
DateTimeFormatter::append(result, ts, DateTimeFormat::HTTP_FORMAT);
}
if (_secure)
{
@@ -298,7 +298,7 @@ std::string HTTPCookie::toString() const
if (_maxAge >= 0)
{
result.append("; Max-Age=\"");
result.append(NumberFormatter::format(_maxAge));
NumberFormatter::append(result, _maxAge);
result.append("\"");
}
if (_secure)