[Issue 5247] std.utf.stride() should not return 0xFF
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Nov 21 05:12:11 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5247
nfxjfg at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nfxjfg at gmail.com
--- Comment #2 from nfxjfg at gmail.com 2010-11-21 05:10:52 PST ---
(In reply to comment #1)
> Are you sure that you understand how stride works? stride returns the length of
> an UTF sequence, not an index. Why would you try to use the return value of
> stride as an index?
You use the length to index into the string or to slice it. Obviously stride()
should return a valid value, and not some undocumented magic (well it's a bug
most likely, and not a feature gone wrong). I don't get what's your problem.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list