mirror of
https://github.com/pocoproject/poco.git
synced 2025-05-29 15:34:07 +02:00
spaces to tabs
This commit is contained in:
parent
7eb7176397
commit
1863c26cfc
@ -139,32 +139,32 @@ Poco::UInt64 StreamCopier::copyToString64(std::istream& istr, std::string& str,
|
|||||||
|
|
||||||
std::streamsize StreamCopier::copyStreamUnbuffered(std::istream& istr, std::ostream& ostr)
|
std::streamsize StreamCopier::copyStreamUnbuffered(std::istream& istr, std::ostream& ostr)
|
||||||
{
|
{
|
||||||
char c;
|
char c;
|
||||||
std::streamsize len = 0;
|
std::streamsize len = 0;
|
||||||
istr.get(c);
|
istr.get(c);
|
||||||
while (istr && ostr)
|
while (istr && ostr)
|
||||||
{
|
{
|
||||||
++len;
|
++len;
|
||||||
ostr.put(c);
|
ostr.put(c);
|
||||||
istr.get(c);
|
istr.get(c);
|
||||||
}
|
}
|
||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#if defined(POCO_HAVE_INT64)
|
#if defined(POCO_HAVE_INT64)
|
||||||
Poco::UInt64 StreamCopier::copyStreamUnbuffered64(std::istream& istr, std::ostream& ostr)
|
Poco::UInt64 StreamCopier::copyStreamUnbuffered64(std::istream& istr, std::ostream& ostr)
|
||||||
{
|
{
|
||||||
char c;
|
char c;
|
||||||
Poco::UInt64 len = 0;
|
Poco::UInt64 len = 0;
|
||||||
istr.get(c);
|
istr.get(c);
|
||||||
while (istr && ostr)
|
while (istr && ostr)
|
||||||
{
|
{
|
||||||
++len;
|
++len;
|
||||||
ostr.put(c);
|
ostr.put(c);
|
||||||
istr.get(c);
|
istr.get(c);
|
||||||
}
|
}
|
||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user