www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17005] New: redesign std.encoding

https://issues.dlang.org/show_bug.cgi?id=17005

          Issue ID: 17005
           Summary: redesign std.encoding
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: greeenify gmail.com

std.encoding needs a complete overhaul. Other encoding packages as std.ascii,
std.base64, std.utf8 could be included and a common API should unite them.

This new package could include a comprehensive set of encoder, covering (in
addition to base64 and utf8) all the baseXX encoders, since they are easy
addition (base16, base32, z85) and also domain specific encoders such as
percent encoding (which then could be used in any replacement of the
old-fashioned and incomplete std.uri module) or variable length quantity. 

For base32, there's already this package in the wild:

https://github.com/e10s/d-base32

--
Dec 22 2016