You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There can be false negatives if a route has an abbrev included after a slash in the label.
Not 100% sure how to approach this yet.
This begs for a more conventional strncmp-based approach that keeps track of the size of digits.
The calls to strdcmp would probably go bye-bye. (Upside of that is, I'm free to generalize it for use in other contexts without having to lose sleep over a loss of efficiency in this particular application.)
For all its complexity, the code here is pretty compact, especially the first bit where it searches for a number match after a slash. This could all go to Centralia, but more likely I'll have to include 2 or 3 more (there are already 7) helper functions.
Consider inlining helper functions. New and existing.
Parenthetical exit numbers.
Both at the beginning of a label and after a slash. Ow, my head.
It's possible that during development I checked for any occurrences of a ( at the applicable position in a label, didn't find any, and said screw it. Or maybe I'm thinking of vertex name simplification? I dunno man.
I-80(42A) New switch case for the 2nd bit.
42A(80) New bit similar to the 1st one for / (beware potential FPs).
42A(M5) New bit similar to the 1st one for / (LOL).
Activity