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

regex_constants::match_partial docs indecipherable #23

Open
cppljevans opened this issue Apr 7, 2022 · 0 comments
Open

regex_constants::match_partial docs indecipherable #23

cppljevans opened this issue Apr 7, 2022 · 0 comments

Comments

@cppljevans
Copy link

the docs
say:

match_partial

    Specifies that if no match can be found, then it is acceptable to return a match [from, last) where from != last, if there exists some sequence of characters [from,to) of which [from,last) is a prefix, and which would result in a full match. 

with no explanation of what from, last and to are. One would guess that [from,last] is the string to be searched; however,
if that's so, then there cannot be a [from,to] where [from,last] is a prefix, because that would require last < to, which can't
be since the search string cannot extend past last.

Please clarify.

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

No branches or pull requests

1 participant