1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-19 21:55:07 +00:00
serenity/Userland/Libraries/LibWeb/Infra/Strings.h
Linus Groh 7760c00714 LibWeb: Move strip_and_collapse_whitespace() to Infra/
...and make it spec compliant by considering all ASCII whitespace,
greatly simplifying it in the process :^)
2022-10-02 21:32:49 +02:00

15 lines
233 B
C++

/*
* Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Forward.h>
namespace Web::Infra {
String strip_and_collapse_whitespace(StringView string);
}