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

LibRegex: Remove 'ReadDigitFollowPolicy' as it's no longer needed

Thanks to @GMTA: 1b071455b1 (r49343474)
This commit is contained in:
AnotherTest 2021-04-10 14:21:17 +04:30 committed by Andreas Kling
parent 642b428793
commit c128b3fd91
2 changed files with 10 additions and 21 deletions

View file

@ -179,12 +179,8 @@ private:
Allow,
Disallow,
};
enum class ReadDigitFollowPolicy {
Any,
DisallowNonDigit,
};
StringView read_digits_as_string(ReadDigitsInitialZeroState initial_zero = ReadDigitsInitialZeroState::Allow, ReadDigitFollowPolicy follow_policy = ReadDigitFollowPolicy::Any, bool hex = false, int max_count = -1);
Optional<unsigned> read_digits(ReadDigitsInitialZeroState initial_zero = ReadDigitsInitialZeroState::Allow, ReadDigitFollowPolicy follow_policy = ReadDigitFollowPolicy::Any, bool hex = false, int max_count = -1);
StringView read_digits_as_string(ReadDigitsInitialZeroState initial_zero = ReadDigitsInitialZeroState::Allow, bool hex = false, int max_count = -1);
Optional<unsigned> read_digits(ReadDigitsInitialZeroState initial_zero = ReadDigitsInitialZeroState::Allow, bool hex = false, int max_count = -1);
StringView read_capture_group_specifier(bool take_starting_angle_bracket = false);
bool parse_pattern(ByteCode&, size_t&, bool unicode, bool named);