www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8279] New: Potential small improvement for std.conv.parse arguments

http://d.puremagic.com/issues/show_bug.cgi?id=8279

           Summary: Potential small improvement for std.conv.parse
                    arguments
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc


--- Comment #0 from bearophile_hugs eml.cc 2012-06-21 12:24:03 PDT ---
From the online docs of std.conv.parse:


Target parse(Target, Source)(ref Source s, dchar lbracket = '[', dchar rbracket
= ']', dchar comma = ',');
Target parse(Target, Source)(ref Source s, dchar lbracket = '[', dchar rbracket
= ']', dchar comma = ',');
    Parses an array from a string given the left bracket (default '['), right
bracket (default ']'), and element seprator (by default ',').

Target parse(Target, Source)(ref Source s, dchar lbracket = '[', dchar rbracket
= ']', dchar keyval = ':', dchar comma = ',');
    Parses an associative array from a string given the left bracket (default
'['), right bracket (default ']'), key-value separator (default ':'), and
element seprator (by default ',').


If the lbracket and rbracket arguments become strings, no brackets can be
expressed with empty strings.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 21 2012