More String escape sequence improvements (F#) #13257
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
"Literals" page
In my previous update I seem to have added an extra
0to the0010FFFFat the end of the first paragraph in the Remarks section."Strings" page
Added 5 missing sequences:
\a,\f,v,\x, and\DDD. The following example code ran in LINQPad 5 (Language = "F# Program"):They can also be found in the source code on GitHub:
Broke
\uand\Usequences into separate entries.Provided range and an example for each Unicode character sequence.
Added "Important" note regarding
\DDDbeing decimal, not octal, notation.Added note regarding
\DDDand\xxeffectively being ISO-8859-1 (which is the first 256 Unicode code points), including a link to the WikiPedia article for ISO-8859-1.NOTE: I changed the
Xs intoHs for the\uand\Usequences due to adding the\xsequence and not wanting to have\xXXas I feel that is less readable, and I wanted to be consistent between all of them regarding what represented a hex digit (and "H" meaning hex also helps distinguish it from theDs used for the newly added\DDDsequence). If anyone feels strongly that it should remain asX, then it can be changed back.Please see Unicode Escape Sequences Across Various Languages and Platforms (including Supplementary Characters) for more details.