mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-12 20:11:51 +00:00
LibRegex: Use an interned string table for capture group names
This avoids messing around with unsafe string pointers and removes the only non-FlyString-able user of DeprecatedFlyString.
This commit is contained in:
parent
6bb0d585e3
commit
4136d8d13e
Notes:
github-actions[bot]
2025-04-02 09:44:16 +00:00
Author: https://github.com/alimpfard
Commit: 4136d8d13e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4181
6 changed files with 103 additions and 24 deletions
|
@ -161,6 +161,7 @@ static bool restore_string_position(MatchInput const& input, MatchState& state)
|
|||
OwnPtr<OpCode> ByteCode::s_opcodes[(size_t)OpCodeId::Last + 1];
|
||||
bool ByteCode::s_opcodes_initialized { false };
|
||||
size_t ByteCode::s_next_checkpoint_serial_id { 0 };
|
||||
u32 StringTable::next_serial { 0 };
|
||||
|
||||
void ByteCode::ensure_opcodes_initialized()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue