Slight code style tweak
This commit is contained in:
parent
21047db4a0
commit
0c1d4808fa
|
@ -235,10 +235,8 @@ public:
|
||||||
constexpr bool search = (mode & RegexMode::Search);
|
constexpr bool search = (mode & RegexMode::Search);
|
||||||
|
|
||||||
ConstArrayView<CompiledRegex::Instruction> instructions{m_program.instructions};
|
ConstArrayView<CompiledRegex::Instruction> instructions{m_program.instructions};
|
||||||
if (forward)
|
instructions = forward ? instructions.subrange(0, m_program.first_backward_inst)
|
||||||
instructions = instructions.subrange(0, m_program.first_backward_inst);
|
: instructions.subrange(m_program.first_backward_inst);
|
||||||
else
|
|
||||||
instructions = instructions.subrange(m_program.first_backward_inst);
|
|
||||||
|
|
||||||
const ExecConfig config{
|
const ExecConfig config{
|
||||||
Sentinel{forward ? begin : end},
|
Sentinel{forward ? begin : end},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user