Open CharlesC87 opened 1 year ago
New commit with formatting fix and changes to parser basically the idea is to avoid regex when possible : in particular when doing the match for attributes (a=) most of teh regex have a prefix of the form ("^name:"). Now we do a string search of "name:" and if not, we avoid a regex match. If the name is found, we try to match regex on the rest
I replace regex by charcter matching or string_view manipulation. As we are not c++17 yet in the repo, I added a light version string_view to allow to work with it.
Next commit will be on the parser part with change for regex to speed-up find of correct regex