mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +00:00
AK: Add FlyString::to_lowercase() and LogStream operator<<(FlyString)
This commit is contained in:
parent
7f8dc347b5
commit
c4a6d6ae9f
6 changed files with 39 additions and 16 deletions
|
@ -24,6 +24,7 @@
|
|||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <AK/FlyString.h>
|
||||
#include <AK/LogStream.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/StringView.h>
|
||||
|
@ -41,6 +42,11 @@ const LogStream& operator<<(const LogStream& stream, const String& value)
|
|||
return stream;
|
||||
}
|
||||
|
||||
const LogStream& operator<<(const LogStream& stream, const FlyString& value)
|
||||
{
|
||||
return stream << value.view();
|
||||
}
|
||||
|
||||
const LogStream& operator<<(const LogStream& stream, const StringView& value)
|
||||
{
|
||||
stream.write(value.characters_without_null_termination(), value.length());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue