www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12184] New: Provide formating options for std.uni.InversionList

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12184

           Summary: Provide formating options for std.uni.InversionList
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: monarchdodra gmail.com



Printing an InversionList looks like this:
writefln("%s", CodepointSet('a', 'z'));
=>
[97..122)

I'd like to request that InversionList support *some* formating options, in
particular, 'x' and 'X', and optionally, width. hex would be prefixed with 0x.
This would allow printing as:
writefln("%04x", CodepointSet('a', 'z'));
=>
[0x0061..0x007b)

This would be helpful, as codepoints are often used hex style, and not decimal
style.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 16 2014
parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12184


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich gmail.com



12:54:20 PST ---
This is probably easily implementable thanks to techniques like this:
http://wiki.dlang.org/Defining_custom_print_format_specifiers

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 16 2014