Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential small improvement for std.conv.parse arguments #9927

Open
dlangBugzillaToGithub opened this issue Jun 21, 2012 · 0 comments
Open

Comments

@dlangBugzillaToGithub
Copy link

bearophile_hugs reported this on 2012-06-21T12:24:03Z

Transfered from https://issues.dlang.org/show_bug.cgi?id=8279

CC List

Description

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.
@LightBender LightBender removed the P4 label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants