-
-
Notifications
You must be signed in to change notification settings - Fork 21.2k
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
Add a note for String::reverse
to warn about its implementation
#91321
Conversation
8785817
to
5911b13
Compare
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.
LGTM!
Just FYI it seems to be an extremely common limitation of Strings in many programming languages - I'd even go as far as to say it's an Unicode limitation instead of a language's |
I'd say there are ways to do it but it's not normally done for performance, it's not so much a limitation as an expensive operation, I'd expect there to be a unicode method for accomplishing this |
I think libicu makes this possible, but it likely requires having ICU data available, which isn't shipped by default when exporting a project as it's several dozen megabytes. |
5911b13
to
d0af890
Compare
Thanks! |
Just a note for
String
/StringName
docs to warn user to not use emojis/compound symbols with that method. This is an addition for #78529 implementation.