[Issue 15285] Range-ified functions for std.string
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Fri Mar  4 04:36:34 PST 2016
    
    
  
https://issues.dlang.org/show_bug.cgi?id=15285
Jonathan M Davis <issues.dlang at jmdavisProg.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |issues.dlang at jmdavisProg.co
                   |                            |m
--- Comment #3 from Jonathan M Davis <issues.dlang at jmdavisProg.com> ---
Ideally, all of the string functions would at least accept ranges of
characters, even if that's limited to random-access ranges. Otherwise, code
that uses something like byCodeUnit is going to be in trouble, and arguably,
byCodeUnit should generally be favored over using strings as ranges given the
autodecoding issues.
Whether the string functions accept non-character ranges is another matter
entirely, and if we add functions like that, they really shouldn't be in
std.string.
--
    
    
More information about the Digitalmars-d-bugs
mailing list