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

Resolve #304: adding start node parameter #305

Closed
wants to merge 1 commit into from

Conversation

micrenda
Copy link

Not sure if it is ok to be merges as it, may be it need a bit of rework.

@micrenda micrenda mentioned this pull request Aug 29, 2024
}

bool parse(std::u8string_view sv, std::any &dt,
const char *path = nullptr) const {
const char *path = nullptr, std::string_view start = "") const {
return parse_n(reinterpret_cast<const char *>(sv.data()), sv.size(), dt,
path);
Copy link
Owner

Choose a reason for hiding this comment

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

path should be path, start

auto result = rule.parse_and_get_value(s, n, dt, val, path, log_);
return post_process(s, n, result);
}
return false;
}

bool parse(std::string_view sv, const char *path = nullptr) const {
bool parse(std::string_view sv, const char *path = nullptr, std::string_view start = "") const {
return parse_n(sv.data(), sv.size(), path);
Copy link
Owner

Choose a reason for hiding this comment

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

path should be path, start

@yhirose
Copy link
Owner

yhirose commented Sep 2, 2024

Superseded by #306.

@yhirose yhirose closed this Sep 2, 2024
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