-
Notifications
You must be signed in to change notification settings - Fork 262
Add starts_with and ends_with to hstring #952
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
Conversation
kennykerr
left a comment
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.
Looking good, just a few comments. Please add a basic test for these methods.
|
Reminder, we need some basic tests to complete this PR. You can just add a simple test to the |
|
|
||
| TEST_CASE("hstring") | ||
| { | ||
| winrt::hstring text = L"C++/WinRT rocks!"; |
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.
❤️
kennykerr
left a comment
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.
Thanks!
kennykerr
left a comment
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.
Please fix tests.
|
All good - the CI build unfortunately won't build remote branches but I've merged and run the internal build and all is green! |
Implements #907. Adds start_with and ends_with members similar to std::basic_string in C++ 20.