Skip to content

Conversation

@jaigak
Copy link
Contributor

@jaigak jaigak commented Jun 1, 2021

Implements #907. Adds start_with and ends_with members similar to std::basic_string in C++ 20.

Copy link
Collaborator

@kennykerr kennykerr left a 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.

@kennykerr
Copy link
Collaborator

Reminder, we need some basic tests to complete this PR. You can just add a simple test to the test_cpp20 project that covers these new functions.

@jaigak jaigak requested a review from kennykerr June 20, 2021 04:19

TEST_CASE("hstring")
{
winrt::hstring text = L"C++/WinRT rocks!";
Copy link
Collaborator

Choose a reason for hiding this comment

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

❤️

Copy link
Collaborator

@kennykerr kennykerr left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link
Collaborator

@kennykerr kennykerr left a comment

Choose a reason for hiding this comment

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

Please fix tests.

@jaigak jaigak requested a review from kennykerr June 22, 2021 14:27
@kennykerr kennykerr merged commit fb3e989 into microsoft:master Jun 22, 2021
@kennykerr
Copy link
Collaborator

All good - the CI build unfortunately won't build remote branches but I've merged and run the internal build and all is green!

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