Bug 10204 – std.string does not take title case into account

Status
NEW
Severity
normal
Priority
P3
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-05-29T09:53:36Z
Last change time
2024-12-01T16:17:46Z
Assigned to
No Owner
Creator
monarchdodra
Moved to GitHub: phobos#9979 →

Comments

Comment #0 by monarchdodra — 2013-05-29T09:53:36Z
Unicode 6.2.0 introduces the notion of "Title case", making the trio of: "Lower case" => "Title case" => "Upper case" Example: 01c6 01c5 01c4 dž Dž DŽ This means that functions such as "capitalize" are wrong because they make the assumption that "Capitalize" == "Uppercase" Also, the tests such as: if(std.uni.isLower(c)) c = std.uni.toUpper(c); are wrong, as non lower case characters may have upper case representations...
Comment #1 by monarchdodra — 2013-05-29T12:19:47Z
Partially fixed here: https://github.com/D-Programming-Language/phobos/pull/1322 Fixes only to[Upper|Lower](InPlace). however, "capitalize" is still broken.
Comment #2 by bugzilla — 2019-12-20T14:20:34Z
I don't completely understand the problem. Could you provide an example which produces a wrong output together with a note, what it should produce?
Comment #3 by robert.schadek — 2024-12-01T16:17:46Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/9979 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB