Created
December 18, 2017 16:31
-
-
Save controlflow/9ca936d93dfe0c5b98ec530b40b924e6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
switch (presentation[index]) | |
{ | |
case '\\': | |
case '\n': | |
return false; | |
case '\"': | |
if (inCharacterLiteral) | |
{ | |
valueBuilder.Append(presentation[index]); | |
return true; | |
} | |
return false; | |
default: | |
valueBuilder.Append(presentation[index]); | |
return true; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
switch (presentation[index]) | |
{ | |
case '\\': | |
case '\n': | |
case '\"' when !inCharacterLiteral: | |
return false; | |
default: | |
valueBuilder.Append(presentation[index]); | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment