Skip to content
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

String Hierarchy Utility Functions #168

Merged
merged 5 commits into from
Oct 4, 2023
Merged

Conversation

AsherGlick
Copy link
Owner

@AsherGlick AsherGlick commented Sep 30, 2023

This adds some string hierarchy utility functions that allow for some minor optimizations when calling string hierarchy functions with a single path, by not requiring that a vector be created to house the path.

It also introduces sub_hierarchy functionality so that hierarchy don't need to be queried from the root, allowing for recursive traversal the category tree without requiring a full hierarchy path be constructed or maintained.

Lastly it fixes up some incorrect linter checks that were mostly passing because the linter was looking at the existing code to try and determine what the rule should be. But now it is explicitly that pointer *s should be attached to the type, and reference &s should be attached to the variable.

The linter change turned out to be widespread. It will be moved to its own pr.

xml_converter/src/string_hierarchy.cpp Outdated Show resolved Hide resolved
xml_converter/src/string_hierarchy.cpp Outdated Show resolved Hide resolved
xml_converter/src/string_hierarchy.hpp Outdated Show resolved Hide resolved
xml_converter/src/string_hierarchy.hpp Outdated Show resolved Hide resolved
@AsherGlick AsherGlick requested a review from klingbolt October 4, 2023 15:37
@AsherGlick AsherGlick merged commit 99440c1 into xml_converter Oct 4, 2023
2 checks passed
@AsherGlick AsherGlick deleted the string_hirearchy_utils branch October 4, 2023 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants