MCPcopy Create free account

hub / github.com/2kai2kai2/ere / functions

Functions264 in github.com/2kai2kai2/ere

↓ 32 callersMethodstart
(&self)
ere-core/src/working_u8_nfa.rs:20
↓ 29 callersMethodend
(&self)
ere-core/src/working_u8_nfa.rs:24
↓ 28 callersMethodrepeat
(self, count: usize)
ere-core/src/simplified_tree.rs:48
↓ 16 callersFunctiontest_reconstruction
(text: &str)
ere-core/src/parse_tree.rs:858
↓ 10 callersMethodto_ranges
Produces the sorted, minimal set of ranges to represent the Atom. Example: ``` use ere_core::parse_tree::Atom; assert_eq!( "[a-z2-9A-X0-1YZ[:xdigit:]
ere-core/src/parse_tree.rs:500
↓ 9 callersMethodnum_capture_groups
Finds the number of capture groups in this NFA
ere-core/src/working_nfa.rs:854
↓ 6 callersFunctionescape_latex
(text: impl AsRef<str>)
ere-core/src/visualization/latex_graph.rs:3
↓ 4 callersMethodadd_offset
(&self, offset: usize)
ere-core/src/working_u8_nfa.rs:76
↓ 4 callersMethodparse
(input: syn::parse::ParseStream)
ere-core/src/parse_tree.rs:105
↓ 4 callersMethodtake
Goes until a non-nested `)` or the end of the string (does not consume).
ere-core/src/parse_tree.rs:69
↓ 4 callersMethodwith_epsilon
(mut self, to: usize)
ere-core/src/working_nfa.rs:141
↓ 3 callersMethodadd_offset
(&self, offset: usize)
ere-core/src/working_nfa.rs:57
↓ 3 callersMethodconcat
(self, other: SimplifiedTreeNode)
ere-core/src/simplified_tree.rs:41
↓ 3 callersMethoddisplay_in_line
(&self, from: usize)
ere-core/src/visualization/latex_graph.rs:29
↓ 3 callersFunctionis_escapable_character
(c: char)
ere-core/src/parse_tree.rs:848
↓ 3 callersMethodmax
(&self)
ere-core/src/parse_tree.rs:240
↓ 3 callersMethodmax_capture_group
return 0 if there are no capture groups
ere-core/src/working_u8_dfa.rs:57
↓ 3 callersMethodstar
(self, longest: bool)
ere-core/src/simplified_tree.rs:60
↓ 2 callersFunctioncalculate_epsilon_propogations
(nfa: &WorkingNFA, state: usize)
ere-core/src/engines/flat_lockstep_nfa.rs:654
↓ 2 callersFunctioncalculate_epsilon_propogations
(nfa: &U8NFA, state: usize)
ere-core/src/engines/flat_lockstep_nfa_u8.rs:667
↓ 2 callersFunctioncompute_excluded_states
We only need to retain states with outgoing symbol transitions As well as the initial and accept states
ere-core/src/engines/one_pass_u8.rs:9
↓ 2 callersMethoddedup_by_key_all
(&mut self, key: impl Fn(&T) -> K)
ere-core/src/working_u8_dfa.rs:781
↓ 2 callersFunctionget_fixed_offsets
If the offsets are fixed, returns them for each capture group. Value is [`usize::MAX`] if a capture group never matches (usually shouldn't happen)
ere-core/src/engines/fixed_offset.rs:21
↓ 2 callersMethodinplace_offset
(&mut self, offset: usize)
ere-core/src/working_u8_nfa.rs:73
↓ 2 callersMethodinplace_offset
(&mut self, offset: usize)
ere-core/src/working_nfa.rs:54
↓ 2 callersFunctionis_special_character
(c: char)
ere-core/src/parse_tree.rs:831
↓ 2 callersFunctionpick_base_engine
Tries to pick the best engine that doesn't rely on sub-engines. Returns a stream that evaluates to a pair `(test_fn, exec_fn)`
ere-core/src/lib.rs:58
↓ 2 callersFunctionpick_engine
Tries to pick the best engine that doesn't rely on sub-engines. Returns a stream that evaluates to a pair `(test_fn, exec_fn)`
ere-core/src/lib.rs:117
↓ 2 callersMethodremove_dead_states
Helper function for removing a set of states. These states should have no incoming transitions.
ere-core/src/working_u8_nfa.rs:533
↓ 2 callersMethodremove_dead_states
Helper function for removing a set of states. These states should have no incoming transitions.
ere-core/src/working_nfa.rs:567
↓ 2 callersFunctionserialize_fixed_offset_token_stream
Uses the `test` function from an inner engine for the exec and extracts capture groups with fixed offsets
ere-core/src/engines/fixed_offset.rs:76
↓ 2 callersFunctionserialize_flat_lockstep_nfa_token_stream
Converts a [`WorkingNFA`] into a format that, when returned by a proc macro, will create the corresponding engine. Will evaluate to a `const` pair `(
ere-core/src/engines/flat_lockstep_nfa.rs:663
↓ 2 callersFunctionserialize_flat_lockstep_nfa_u8_token_stream
Converts a [`U8NFA`] into a format that, when returned by a proc macro, will create the corresponding engine.
ere-core/src/engines/flat_lockstep_nfa_u8.rs:674
↓ 2 callersFunctionserialize_one_pass_token_stream
If the NFA is [one-pass](https://swtch.com/~rsc/regexp/regexp3.html#:~:text=Use%20a%20one%2Dpass%20NFA%20if%20possible), this function will serialize
ere-core/src/engines/one_pass_u8.rs:50
↓ 2 callersFunctionserialize_u8_dfa_token_stream
Converts a [`U8TDFA`] into a format that, when returned by a proc macro, will create the corresponding engine. Will use [`U8DFA`] as an intermediate
ere-core/src/engines/dfa_u8.rs:331
↓ 2 callersFunctionsplit_ranges_u8
Splits overlapping ranges so they are fully overlapping and/or non-overlapping. This essentially makes the ranges disjoint, while maintaining the asso
ere-core/src/working_u8_dfa.rs:737
↓ 2 callersMethodtopological_ordering
Tries to find a [topological ordering](https://en.wikipedia.org/wiki/Topological_sorting) from the start node to the accept node. If successful (the
ere-core/src/working_u8_nfa.rs:843
↓ 2 callersMethodupto
(self, count: usize, longest: bool)
ere-core/src/simplified_tree.rs:54
↓ 2 callersMethodwith_offset
(mut self, offset: usize)
ere-core/src/working_u8_nfa.rs:69
↓ 2 callersMethodwith_offset
(self, offset: usize)
ere-core/src/working_nfa.rs:48
↓ 1 callersFunction__compile_regex
Tries to pick the best engine.
ere-core/src/lib.rs:143
↓ 1 callersFunction__compile_regex_attr
(attr: TokenStream, input: TokenStream)
ere-core/src/lib.rs:256
↓ 1 callersFunction__compile_regex_engine_dfa_u8
Always uses the [`dfa_u8`] engine
ere-core/src/lib.rs:155
↓ 1 callersFunction__compile_regex_engine_fixed_offset
Always uses the [`fixed_offset`] Will return a compiler error if regex was not fixed offset.
ere-core/src/lib.rs:232
↓ 1 callersFunction__compile_regex_engine_flat_lockstep_nfa
Always uses the [`flat_lockstep_nfa`] engine
ere-core/src/lib.rs:182
↓ 1 callersFunction__compile_regex_engine_flat_lockstep_nfa_u8
Always uses the [`flat_lockstep_nfa_u8`] engine
ere-core/src/lib.rs:194
↓ 1 callersFunction__compile_regex_engine_one_pass_u8
Always uses the [`one_pass_u8`] Will return a compiler error if regex was not one-pass and could not be optimized to become one-pass.
ere-core/src/lib.rs:209
↓ 1 callersMethodcapture_group
Returns the capture group number this tag is associated with.
ere-core/src/epsilon_propogation.rs:15
↓ 1 callersMethodcapture_group_is_optional
Returns whether each there is any matching path where the capture group is unused
ere-core/src/working_nfa.rs:869
↓ 1 callersMethodcheck
(&self, c: u8)
ere-core/src/working_u8_nfa.rs:16
↓ 1 callersMethodcheck
(&self, c: char)
ere-core/src/parse_tree.rs:336
↓ 1 callersMethodcheck
(&self, c: char)
ere-core/src/engines/nfa_static.rs:26
↓ 1 callersMethodcheck_ascii
Checks matches to the char classes.
ere-core/src/parse_tree.rs:675
↓ 1 callersMethodclean_end_anchors
Removes end anchors that will never be satisfied (basically turning them into a `Never` to allow further optimization)
ere-core/src/working_nfa.rs:486
↓ 1 callersMethodclean_start_anchors
Removes start anchors that will never be satisfied (basically turning them into a `Never` to allow further optimization)
ere-core/src/working_nfa.rs:464
↓ 1 callersFunctioncodegen_functional
Will evaluate to a `const` pair `(test_fn, exec_fn)`. ## Params - `nfa` is the original nfa - `num_captures` is the calculated number of capture grou
ere-core/src/engines/one_pass_u8.rs:1045
↓ 1 callersFunctioncodegen_vmlike
Will evaluate to a `const` pair `(test_fn, exec_fn)`.
ere-core/src/engines/one_pass_u8.rs:592
↓ 1 callersFunctioncompute_excluded_states
Since we are shortcutting the epsilon transitions, we can skip printing states that have only epsilon transitions and are not the start/end states
ere-core/src/engines/flat_lockstep_nfa.rs:74
↓ 1 callersFunctioncompute_excluded_states
Since we are shortcutting the epsilon transitions, we can skip printing states that have only epsilon transitions and are not the start/end states
ere-core/src/engines/flat_lockstep_nfa_u8.rs:76
↓ 1 callersFunctioncompute_runs
## Parameters - `symbol_transitions`: for each state, a list of ranges to match with their corresponding thread updates (the changes to apply if it ma
ere-core/src/engines/one_pass_u8.rs:190
↓ 1 callersMethoddedupe_transitions
De-duplicates identical transitions (`a -e> b`, `a -e> b`) -> (`a -e> b`) Returns `true` if changes were made. The highest-priority transition will b
ere-core/src/working_u8_nfa.rs:574
↓ 1 callersMethoddedupe_transitions
De-duplicates identical transitions (`a -e> b`, `a -e> b`) -> (`a -e> b`) Returns `true` if changes were made. The highest-priority transition will b
ere-core/src/working_nfa.rs:608
↓ 1 callersMethoddisplay_at
(&self, idx: usize, x: f64, y: f64)
ere-core/src/visualization/latex_graph.rs:78
↓ 1 callersMethoddisplay_straight
(&self, from: usize)
ere-core/src/visualization/latex_graph.rs:41
↓ 1 callersMethodexpand
Given a state with `nfa_states` set but empty transitions and no accept, expands the state to include all possible transitions. ## Params - `nfa` is
ere-core/src/working_u8_dfa.rs:258
↓ 1 callersMethodlayout
(&self)
ere-core/src/visualization/layout.rs:91
↓ 1 callersMethodmerge_states
Merge two states, changing all transitions into `merge` to transitions to `keep`, and removing `merge` state (changing all higher indices as well) ##
ere-core/src/working_u8_dfa.rs:711
↓ 1 callersMethodmin
(&self)
ere-core/src/parse_tree.rs:229
↓ 1 callersMethodnodes_after_end
Finds all nodes that are only ever visited after a `$`.
ere-core/src/working_u8_nfa.rs:480
↓ 1 callersMethodnodes_after_end
Finds all nodes that are only ever visited after a `$`.
ere-core/src/working_nfa.rs:514
↓ 1 callersMethodnodes_before_start
Finds all nodes that are only ever visited before a `^`.
ere-core/src/working_u8_nfa.rs:502
↓ 1 callersMethodnodes_before_start
Finds all nodes that are only ever visited before a `^`.
ere-core/src/working_nfa.rs:536
↓ 1 callersMethodoptimize_pass
Optimizes the NFA graph. Returns `true` if changes were made (meaning another pass should be tried).
ere-core/src/working_u8_nfa.rs:621
↓ 1 callersMethodoptimize_pass
Various operations to optimize the NFA graph. Returns `true` if changes were made (meaning another pass should be tried).
ere-core/src/working_nfa.rs:655
↓ 1 callersMethodoptional
(self, longest: bool)
ere-core/src/simplified_tree.rs:28
↓ 1 callersMethodpick_layout
(&'a self)
ere-core/src/visualization/latex_graph.rs:145
↓ 1 callersMethodquantifiers_prefer_longest
(&self)
ere-core/src/config.rs:27
↓ 1 callersMethodremove_unreachable
Removes all nodes that cannot be reached or cannot reach the end. Ignores special epsilon types (so should be called after they have been resolved)
ere-core/src/working_u8_nfa.rs:798
↓ 1 callersMethodremove_unreachable
Removes all nodes that cannot be reached or cannot reach the end. Ignores special epsilon types (so should be called after they have been resolved)
ere-core/src/working_nfa.rs:833
↓ 1 callersFunctionsame
(a: &[&'a T], b: &[&'a T])
ere-core/src/working_u8_dfa.rs:740
↓ 1 callersMethodstates_reachable_end
Finds the states that can reach the end via any path
ere-core/src/working_u8_nfa.rs:768
↓ 1 callersMethodstates_reachable_end
Finds the states that can reach the end via any path
ere-core/src/working_nfa.rs:803
↓ 1 callersMethodstates_reachable_start
Finds the states that can be reached from the start via any path
ere-core/src/working_u8_nfa.rs:745
↓ 1 callersMethodstates_reachable_start
Finds the states that can be reached from the start via any path
ere-core/src/working_nfa.rs:780
↓ 1 callersMethodupdate_with_lower_priority
Updates the accept transitions with more transitions that take lower priority. This is basically equivalent to [`Self::from_epsilon_prop`] with the c
ere-core/src/working_u8_dfa.rs:135
↓ 1 callersMethodvalidate
(&self)
ere-core/src/working_u8_dfa.rs:629
↓ 1 callersMethodwith_epsilon_special
(mut self, to: usize, special: EpsilonType)
ere-core/src/working_u8_nfa.rs:109
↓ 1 callersMethodwith_epsilon_special
(mut self, to: usize, special: EpsilonType)
ere-core/src/working_nfa.rs:145
↓ 1 callersMethodwith_transition
(mut self, to: usize, symbol: U8Atom)
ere-core/src/working_u8_nfa.rs:101
Function__construct_regex
( fn_pair: ( fn(&str) -> bool, for<'a> fn(&'a str) -> Option<[Option<&'a str>; N]>, ),
ere-core/src/lib.rs:43
Method__load
Only intended for internal use by macros.
ere-core/src/working_nfa.rs:64
Method__load
Only intended for internal use by macros.
ere-core/src/engines/nfa_static.rs:91
Functionabbc_raw
()
ere-core/src/working_u8_nfa.rs:998
Functionabbc_raw
()
ere-core/src/working_nfa.rs:1008
Functionatom_eq
()
ere-core/src/parse_tree.rs:1078
Functionatom_to_ranges_matching_list
()
ere-core/src/parse_tree.rs:1036
Functionatom_to_ranges_nonmatching_list
()
ere-core/src/parse_tree.rs:1054
Functionatom_to_ranges_normal_char
()
ere-core/src/parse_tree.rs:1030
Functionbig_haystack_1
(c: &mut Criterion)
benches/ere_benchmark.rs:231
Methodbuild
Converts from a char-based NFA Does not include any optimizations
ere-core/src/working_u8_nfa.rs:382
next →1–100 of 264, ranked by callers