[Issue 13829] std.uni.byCodePoint for strings has length
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Dec 10 07:38:05 PST 2014
https://issues.dlang.org/show_bug.cgi?id=13829
hsteoh at quickfur.ath.cx changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hsteoh at quickfur.ath.cx
--- Comment #2 from hsteoh at quickfur.ath.cx ---
The documentation of byCodePoint states that it's the identity function when
given a range of code points, and currently, strings are ranges of code points
(due to autodecoding), so it simply returns the string as-is.
Should this be changed so that it returns a wrapper around the string that
suppresses .length instead?
--
More information about the Digitalmars-d-bugs
mailing list