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 section on Strings and Unicode #349
Conversation
I'm not proud of wording but we need clarifications on this subject.
Thanks a lot! |
Also could you open a ticket and another pull for macro fix? And another ticket for lack of unicode collation algorithm in D? |
It's going to be there soon: see its slightly outdated docs: http://blackwhale.github.io/phobos/uni.html Tickets are as usual a good idea: |
@@ -839,6 +839,28 @@ w = "\r"[0]; // w is assigned the carriage return wchar character | |||
d = 'd'; // d is assigned the character 'd' | |||
--------- | |||
|
|||
$(H5 $(LNAME2 strings_unicode, Strings and Unicode)) | |||
$(P Note that built-in comparison operators operate on |
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.
...operate on a
@andralex fixed these, ready for another round? |
(by transparently decoding, see $(PHOBOS algorithm, cmp, std.algorithm.cmp)), | ||
$(PHOBOS uni, icmp, case-insensitive comparison) and $(PHOBOS uni, normalize, normalization). | ||
) | ||
$(P The last but not least - a desired string sorting order differs |
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.
s/The last/Last/
I'll merge this and fix online. |
Add a section on Strings and Unicode
Thanks! |
This is a fixup for pull request dlang#349.
I'm not proud of wording but we need clarifications on how exactly builtins correlate to Unicode standard (if at all).
The "obvious meaning" present there previously is not good enough definition.
Along the way I fixed a bug in docs - H5 macro was used but not defined, effectively throwing away level-5 titles.
Why wouldn't DDoc complain about undefined macros instead of sliently eating them, that's a topic in its own right.
Preview of that page:
http://blackwhale.github.io/arrays.html#strings_unicode