-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Doxygen for utils::trim() functions and variants. Removes utils::fillDevInfoFromFirmwareImage() and utils::parseStringVersion() Adds utils::getHardwareAsString() to return the hardware type+version from dev_info_t. Adds utils::getFirmwareAsString() to return the firmware version and type from dev_info_t. Adds utils::getBuildAsString() to return build date, time, commit, etc from dev_info_t. Refactored utils::devInfoToString() to leverage new function and provide consistent formatting. Refactors utils::devInfoFromString() now using regex patterns and breaking the "dev info" string into components is much more robust, and flexible - can now parse arbitrary strings of various dev info components intelligently, including from filenames, etc. Parsing/Formatting devInfo now uses DV_BIT_* flags to indicate which components were parsed, or which components should be printed. Adds new utils::split_from_string() which handles parsing a delimited string of types, using templates and a lambda to interpret values of type (used to parse versions, IP address, etc). Adds unit-tests for test_utils.cpp for testing utils::* functions.
- Loading branch information
1 parent
b179afd
commit 894d638
Showing
8 changed files
with
473 additions
and
229 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.