summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibRegex/RegexMatcher.cpp
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2021-07-23 20:25:14 +0430
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2021-07-23 21:19:21 +0430
commit36bfc912fc8f811d04dd1a133982e06351047128 (patch)
tree2202fc2ea7bacf88495b8140e854870ed987aeee /Userland/Libraries/LibRegex/RegexMatcher.cpp
parentc8b2199251ff710f8c0b4387bc7eb53803a8a26e (diff)
downloadserenity-36bfc912fc8f811d04dd1a133982e06351047128.zip
LibRegex: Switch to east-const style
Diffstat (limited to 'Userland/Libraries/LibRegex/RegexMatcher.cpp')
-rw-r--r--Userland/Libraries/LibRegex/RegexMatcher.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibRegex/RegexMatcher.cpp b/Userland/Libraries/LibRegex/RegexMatcher.cpp
index fff1487c73..60783b25f6 100644
--- a/Userland/Libraries/LibRegex/RegexMatcher.cpp
+++ b/Userland/Libraries/LibRegex/RegexMatcher.cpp
@@ -54,7 +54,7 @@ String Regex<Parser>::error_string(Optional<String> message) const
}
template<typename Parser>
-RegexResult Matcher<Parser>::match(const RegexStringView& view, Optional<typename ParserTraits<Parser>::OptionsType> regex_options) const
+RegexResult Matcher<Parser>::match(RegexStringView const& view, Optional<typename ParserTraits<Parser>::OptionsType> regex_options) const
{
AllOptions options = m_regex_options | regex_options.value_or({}).value();
@@ -67,7 +67,7 @@ RegexResult Matcher<Parser>::match(const RegexStringView& view, Optional<typenam
}
template<typename Parser>
-RegexResult Matcher<Parser>::match(const Vector<RegexStringView> views, Optional<typename ParserTraits<Parser>::OptionsType> regex_options) const
+RegexResult Matcher<Parser>::match(Vector<RegexStringView> const views, Optional<typename ParserTraits<Parser>::OptionsType> regex_options) const
{
// If the pattern *itself* isn't stateful, reset any changes to start_offset.
if (!((AllFlags)m_regex_options.value() & AllFlags::Internal_Stateful))
@@ -288,7 +288,7 @@ RegexResult Matcher<Parser>::match(const Vector<RegexStringView> views, Optional
}
template<class Parser>
-Optional<bool> Matcher<Parser>::execute(const MatchInput& input, MatchState& state, MatchOutput& output, size_t recursion_level) const
+Optional<bool> Matcher<Parser>::execute(MatchInput const& input, MatchState& state, MatchOutput& output, size_t recursion_level) const
{
if (recursion_level > c_max_recursion)
return false;
@@ -358,7 +358,7 @@ Optional<bool> Matcher<Parser>::execute(const MatchInput& input, MatchState& sta
}
template<class Parser>
-ALWAYS_INLINE Optional<bool> Matcher<Parser>::execute_low_prio_forks(const MatchInput& input, MatchState& original_state, MatchOutput& output, Vector<MatchState> states, size_t recursion_level) const
+ALWAYS_INLINE Optional<bool> Matcher<Parser>::execute_low_prio_forks(MatchInput const& input, MatchState& original_state, MatchOutput& output, Vector<MatchState> states, size_t recursion_level) const
{
for (auto& state : states) {