2019-07-04 07:05:58 +02:00
|
|
|
#include <AK/AKString.h>
|
|
|
|
#include <AK/LogStream.h>
|
|
|
|
#include <AK/StringView.h>
|
|
|
|
|
|
|
|
namespace AK {
|
|
|
|
|
2019-07-08 09:22:22 +02:00
|
|
|
const LogStream& operator<<(const LogStream& stream, const String& value)
|
2019-07-04 07:05:58 +02:00
|
|
|
{
|
|
|
|
stream.write(value.characters(), value.length());
|
|
|
|
return stream;
|
|
|
|
}
|
|
|
|
|
2019-07-08 09:22:22 +02:00
|
|
|
const LogStream& operator<<(const LogStream& stream, const StringView& value)
|
2019-07-04 07:05:58 +02:00
|
|
|
{
|
|
|
|
stream.write(value.characters(), value.length());
|
|
|
|
return stream;
|
|
|
|
}
|
|
|
|
|
|
|
|
const LogStream& operator<<(const LogStream& stream, int value)
|
|
|
|
{
|
|
|
|
return stream << String::number(value);
|
|
|
|
}
|
|
|
|
|
|
|
|
const LogStream& operator<<(const LogStream& stream, unsigned value)
|
|
|
|
{
|
|
|
|
return stream << String::number(value);
|
|
|
|
}
|
|
|
|
|
|
|
|
const LogStream& operator<<(const LogStream& stream, const void* value)
|
|
|
|
{
|
|
|
|
return stream << String::format("%p", value);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|