Skip to content

Commit

Permalink
Bugfix in std.conv.parseEscape
Browse files Browse the repository at this point in the history
parseEscape was not parsing the escapes:
\
0
'
"
?
  • Loading branch information
monarchdodra committed Feb 28, 2013
1 parent bc40310 commit 4197f79
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions std/conv.d
Original file line number Diff line number Diff line change
Expand Up @@ -3048,6 +3048,11 @@ private dchar parseEscape(Source)(ref Source s)

switch (s.front)
{
case '"': result = '\"'; break;
case '\'': result = '\''; break;
case '0': result = '\0'; break;
case '?': result = '\?'; break;
case '\\': result = '\\'; break;
case 'a': result = '\a'; break;
case 'b': result = '\b'; break;
case 'f': result = '\f'; break;
Expand Down

0 comments on commit 4197f79

Please sign in to comment.