Skip to content

Commit

Permalink
Update new_capture_group_start_states to new_capture_group_states to …
Browse files Browse the repository at this point in the history
…reflect functionality change.
  • Loading branch information
SharafMohamed committed Nov 20, 2024
1 parent 08060ed commit 0c2c1d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/log_surgeon/finite_automata/RegexAST.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ auto RegexASTCapture<NFAStateType>::add_to_nfa(
// root --(pos_tagged_start_transition)--> capture_group_start_state -->
// [inner capture group NFA] --(neg_tagged_transition)--> neg_state -->
// state_with_positive_tagged_end_transition --(pos_tagged_end_transition)--> end_state
auto [start_state, end_state] = nfa->new_capture_group_start_states(m_tag.get(), dest_state);
auto [start_state, end_state] = nfa->new_capture_group_states(m_tag.get(), dest_state);

auto* initial_root = nfa->get_root();
nfa->set_root(start_state);
Expand Down
4 changes: 2 additions & 2 deletions src/log_surgeon/finite_automata/RegexNFA.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class RegexNFA {
* @param dest_state
* @return std::pair<NFAStateType*, NFAStateType*>
*/
[[nodiscard]] auto new_capture_group_start_states(
[[nodiscard]] auto new_capture_group_states(
Tag const* tag,
NFAStateType const* dest_state
) -> std::pair<NFAStateType*, NFAStateType*>;
Expand Down Expand Up @@ -132,7 +132,7 @@ auto RegexNFA<NFAStateType>::new_state_with_negative_tagged_transition(
}

template <typename NFAStateType>
auto RegexNFA<NFAStateType>::new_capture_group_start_states(
auto RegexNFA<NFAStateType>::new_capture_group_states(
Tag const* tag,
NFAStateType const* dest_state
) -> std::pair<NFAStateType*, NFAStateType*> {
Expand Down

0 comments on commit 0c2c1d1

Please sign in to comment.