Separate out the inner loop and some advanced options, decide whether to pass around the iterator or create iterator like helpers for the string, create function for iterating to the end of a lexeme as the code is repeated. I felt unsure about it whilst using iterator and wasn't sure how to pass the iterator to it hence the decision stated before.
Separate out the inner loop and some advanced options, decide whether to pass around the iterator or create iterator like helpers for the string, create function for iterating to the end of a lexeme as the code is repeated. I felt unsure about it whilst using iterator and wasn't sure how to pass the iterator to it hence the decision stated before.