-
-
Notifications
You must be signed in to change notification settings - Fork 744
Improve value unformatting #208
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
Conversation
} | ||
} | ||
|
||
deprecated alias ConvException ConvError; /// ditto | ||
|
||
private void convError(S, T, string f = __FILE__, uint ln = __LINE__)(S source) | ||
private void convError(S, T, string fn = __FILE__, uint ln = __LINE__)(S source) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ln
should be size_t
, since __LINE__
is size_t
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. I'll fix it.
Apply reviewed fixes, and rebase. |
I'm merging this; Kenji-san, feel free to act on my comments in a future diff. |
Related pull request is #126.
Features:
Support static array and associative array parsing.
And escaped container elements are parsed correctly.
e.g.
assert(parse!(string[])(´["str1", "str2"]´) == ["str1", "str2"]);
Support bool value and associative array unformatting.
And support range FormatSpec (e.g,
"%(...%)"
) .