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
if (postslash == digit_starts || postslash == route->route)
That's cleaner; that's a start.
Neither strcmp nor strncmp work. Why exactly, again?
Not looking at the code & results (how did I try what again?); just doing this as a thought experiment:
strcmp needs a null zero at the end of the search string; finds _ instead.
strncmp could find NY5 in NY50; need to check char after match.
More efficient to...
Checking for an underscore is unnecessary.
Repeating the digit_starts & route comparisons is redundant.
Instead, compare once and check for _ or \0.
Adding 1 new line can get rid of 8(or 9 if counting new bleeding-edge if (!colocated || !coloc_same_designation())) -- the first check expands to:
Tagged pending but not closed.
Did I just forget about this, and it got addressed in TravelMapping#497?
A reminder that that's what I wanna check out when I have the attention span.
Activity
yakra commentedon Nov 14, 2021
This happened:
DataProcessing/siteupdate/cplusplus/classes/Waypoint/Waypoint.cpp
Lines 445 to 446 in 26855e2
That's cleaner; that's a start.
Not looking at the code & results (how did I try what again?); just doing this as a thought experiment:
_instead.NY5inNY50; need to check char after match.More efficient to...
Checking for an underscore is unnecessary.
Repeating the
digit_starts&routecomparisons is redundant.Instead, compare once and check for
_or\0.Adding 1 new line can get rid of 8 (or 9 if counting new bleeding-edge
if (!colocated || !coloc_same_designation())) -- the first check expands to:...A bit ugly though.
Even better?
Keep it relatively clean & readable:
A compact little function facilitates this:
Advantages:
numon each iteration. Checking whether we're at the delimiter is one quick branch before returning.Waypoint::label_selfrefitself, avoid:strchrstrncmpcalls:yakra commentedon Feb 24, 2022
Tagged
pendingbut not closed.Did I just forget about this, and it got addressed in TravelMapping#497?
A reminder that that's what I wanna check out when I have the attention span.
yakra commentedon Mar 20, 2022
This all got done. Seemed to forget about it in TravelMapping#497, only linking the Pending issues in TravelMapping/DataProcessing.