mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:27:35 +00:00
LibWeb: Move strip_and_collapse_whitespace() to Infra/
...and make it spec compliant by considering all ASCII whitespace, greatly simplifying it in the process :^)
This commit is contained in:
parent
b86c264975
commit
7760c00714
4 changed files with 50 additions and 28 deletions
15
Userland/Libraries/LibWeb/Infra/Strings.h
Normal file
15
Userland/Libraries/LibWeb/Infra/Strings.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* 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);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue