-
Notifications
You must be signed in to change notification settings - Fork 7
Const Correctness and Bug Fixes #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
… with modern C++ types, such as `string_view`.
Added support for concepts, if enabled and supported by the compiler.
…k_line`. Removed expensive regex in exchange for simpler and faster char checks.
I'd like to note here, that Mac OS isn't a platform anyone is using C++ 11 or higher on.
|
The file extension is not a definitive answer to anything. Shoving a JPEG image with a modified extension would falsely identify that file as a valid DBC.
I've also added better DBC detection; instead of relying on the file extension, which is in no way definitive, the checker now attempts to parse the header. If that fails, then we know the file is invalid. |
Fixes #32 |
…is too small" Fixes LinuxDevon#29
…ow the value was originally built and swapping the bytes
@SimonCahill Thank you for the PR and improvements! Sorry for the extreme delay. I missed the notification and haven't checked GH in awhile 🙃 Just have a few comments and questions, then I am good to merge
That was on my list of things to improve and thank you for taking care of that! Also thank you for the regex speed improvements as well on the blank lines |
Also I just noticed none of the CI kicked off so there might be a bit more to handle. Looking into why that is right now. EDIT: I just pushed some trigger changes. It should trigger the CI after the changes you push. You might have to rebase on top of main though |
Hi @LinuxDevon! No worries :) My customer ended up changing the requirements entirely so I no longer need the parser, but it was still fun to work on 😁👍 I'll get to answering any comments and questions, after I've had a chance to review exactly what I'd done. |
Co-authored-by: Devon Adair <devonadair96@gmail.com>
…rser_cpp into fix/const-correctness
Added
isWhitespaceOrEmpty
template function.Changed
String::trim
function with generic trim template functions which work with modern C++ types, such asstring_view
.Removed
String::trim
function, in favor of generic trim template functions.Fixed
get_line
function.dbc.hpp
anddbc.cpp
.get_next_non_blank_line
andskip_to_next_blank_line
by replacing an expensive regex with simpler and faster char checks.