Skip to content

Conversation

@jonestristand
Copy link
Contributor

What does this change do?
This PR adds an implementation of toml::path which represents a path to an arbitrary toml node. It provides utilities for path manipulation by path segment (e.g. parents, truncation), as well as comparisons between paths. toml::path objects may be used as an argument for at_path.

Is it related to an exisiting bug report or feature request?
Fixes #153.

Pre-merge checklist

  • I've read CONTRIBUTING.md
  • I've rebased my changes against the current HEAD of origin/master (if necessary)
  • I've added new test cases to verify my change
  • I've regenerated toml.hpp (how-to)
  • I've updated any affected documentation (comments updated, have not regenerated with poxy)
  • I've rebuilt and run the tests with at least one of:
    • Clang 6 or higher
    • GCC 7 or higher
    • MSVC 19.20 (Visual Studio 2019) or higher
  • I've added my name to the list of contributors in README.md

Copy link
Owner

@marzer marzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work man! I am looking forward to releasing this feature. A few nits, but I've tried not to be too picky.

@jonestristand
Copy link
Contributor Author

Updates!

Copy link
Owner

@marzer marzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Home stretch, methinks. Mostly just pedantic library/structural nits :)

@marzer marzer mentioned this pull request May 26, 2022
@jonestristand
Copy link
Contributor Author

Fixes pushed!

@marzer
Copy link
Owner

marzer commented May 27, 2022

Yup, looks good to me @jonestristand! There's a few bits-and-pieces I'll want to do post-merge so I won't merge it in until I have time to do that (this weekend mayyyybe, otherwise some weekend soon), so if there's more you think you want to add (any other utility functions etc.) feel free to push to this branch before then :)

@marzer
Copy link
Owner

marzer commented Jun 3, 2022

Going to look after this tomorrow or Sunday this weekend FYI @jonestristand

@jonestristand
Copy link
Contributor Author

Awesome, pumped to have it merged in! I'm just adding a subpath method today so luckily that'll sneak in under the wire ;-)

@marzer marzer merged commit 65d4b84 into marzer:paths Jun 4, 2022
@marzer
Copy link
Owner

marzer commented Jun 4, 2022

Thanks @jonestristand! I'll keep it in the paths branch for a bit while I do some additional things, and will try to summarize changes I make in commit descriptions. Since you were interested in learning more and re-familiarizing yourself with C++, please let me know if you would like more detailed information about anything you see - I'll be happy to go into more detail on gitter :)

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