-
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 startswith()
and endswith()
to StringRef
#2710
[stdlib] Add startswith()
and endswith()
to StringRef
#2710
Conversation
Especially for this PR it would be nice to have a way of creating a var str_ref = String()._strref_dangerous(start, len) In case of See PR #2719 |
Signed-off-by: Lukas Lipp <15105596+fknfilewalker@users.noreply.github.com>
Signed-off-by: Lukas Lipp <llipp@cg.tuwien.ac.at>
!sync |
✅🟣 This contribution has been merged 🟣✅ Your pull request has been merged to the internal upstream Mojo sources. It will be reflected here in the Mojo repository on the nightly branch during the next Mojo nightly release, typically within the next 24-48 hours. We use Copybara to merge external contributions, click here to learn more. |
…` (#40383) [External] [stdlib] Add `startswith()` and `endswith()` to `StringRef` Also delegates `String` functions to `StringRef` ORIGINAL_AUTHOR=Lukas Lipp <15105596+fknfilewalker@users.noreply.github.com> PUBLIC_PR_LINK=#2710 Co-authored-by: Lukas Lipp <15105596+fknfilewalker@users.noreply.github.com> Closes #2710 MODULAR_ORIG_COMMIT_REV_ID: cb7fd59c23fb5c655a1c0a1d6b5f7601306f6953
Landed in bc4c5f7! Thank you for your contribution 🎉 |
…` (#40383) [External] [stdlib] Add `startswith()` and `endswith()` to `StringRef` Also delegates `String` functions to `StringRef` ORIGINAL_AUTHOR=Lukas Lipp <15105596+fknfilewalker@users.noreply.github.com> PUBLIC_PR_LINK=modularml#2710 Co-authored-by: Lukas Lipp <15105596+fknfilewalker@users.noreply.github.com> Closes modularml#2710 MODULAR_ORIG_COMMIT_REV_ID: cb7fd59c23fb5c655a1c0a1d6b5f7601306f6953
Also delegates String functions to StringRef