-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[stdlib] Add lstrip()
and rstrip()
to StringRef
#2700
base: nightly
Are you sure you want to change the base?
Conversation
Signed-off-by: Lukas Lipp <llipp@cg.tuwien.ac.at>
cbc2452
to
8ae2e88
Compare
Looks good, do you mind resolving the merge conflicts please and then ping me and I can import this PR? Thanks! |
Signed-off-by: Lukas Lipp <15105596+fknfilewalker@users.noreply.github.com>
Signed-off-by: Lukas Lipp <15105596+fknfilewalker@users.noreply.github.com>
Signed-off-by: Lukas Lipp <15105596+fknfilewalker@users.noreply.github.com>
Signed-off-by: Lukas Lipp <15105596+fknfilewalker@users.noreply.github.com>
Signed-off-by: Lukas Lipp <15105596+fknfilewalker@users.noreply.github.com>
Thanks for the ping, I'll TAL when I'm by a laptop soon, likely later today. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Want to add some explicit tests for StringRef with these functions?
I could copy the tests from string over, or do you have something better in mind? |
I don't have anything better in mind, but I think that's what we've been doing with other recent PRs (although not consistently from a quick glance). It adds minimally more test coverage. What do you think? In general, with all of this work in pushing |
lstrip
andrstrip
forStringRef
, and delegatesString.rstrip
and friends to thisStringRef
implementation.