-
Notifications
You must be signed in to change notification settings - Fork 5.4k
[DOC] Tweaks for String#each_grapheme_cluster #13981
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
[DOC] Tweaks for String#each_grapheme_cluster #13981
Conversation
rb_str_each_grapheme_cluster
doc
|
||
Output: | ||
a = [] | ||
# => [] |
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.
Should this line be removed? It's showing the output of an empty array.
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.
Removed.
s = "\u0061\u0308-\u0062\u0308-\u0063\u0308" | ||
# => "ä-b̈-c̈" |
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.
Why are we using unicode here instead of just directly using the string "ä-b̈-c̈"
.
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.
Search me. These were in the previous example. Should we remove this last section (as redundant)?
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.
Sure, I'm fine with either way.
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.
Removed.
rb_str_each_grapheme_cluster
doc
No description provided.