1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 09:17:35 +00:00

LibRegex: Remove backup file, remove BOM in RegexParser.cpp, run clang-format

This commit is contained in:
Emanuel Sprung 2020-06-09 17:16:04 +02:00 committed by Andreas Kling
parent 3b7884ee8a
commit 6add8b9c05
9 changed files with 8 additions and 1069 deletions

View file

@ -193,7 +193,7 @@ public:
const char* characters_without_null_termination() const
{
if(is_u8_view())
if (is_u8_view())
return u8view().characters_without_null_termination();
return to_string().characters(); // FIXME: it contains the null termination, does that actually matter?
@ -201,14 +201,14 @@ public:
bool starts_with(const StringView& str) const
{
if(is_u32_view())
if (is_u32_view())
return false;
return u8view().starts_with(str);
}
bool starts_with(const Utf32View& str) const
{
if(is_u8_view())
if (is_u8_view())
return false;
StringBuilder builder;