Skip to content
Snippets Groups Projects
Commit a0cb1001 authored by AdminXVII's avatar AdminXVII
Browse files

Refactor Terminator to reduce complexity

Use iterators and a helper function to implement Terminator in a clearer way (high cyclomatic complexity in previous implementation). Use an enum to detect error types to deal with them in another scope without requiring an artificial block, as well as to avoid the overhead of dealing with bitflags when not needed.
Use native iterators whenever possible, and create a custom one to keep track of the last two characters found.
parent 8f3d9850
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment