[m-rev.] for post-commit review: announce unicode escape sequences
Ian MacLarty
maclarty at csse.unimelb.edu.au
Mon Jun 6 10:21:06 AEST 2011
On Mon, Jun 06, 2011 at 12:14:55AM +1000, Julien Fischer wrote:
>
> For post-commit review by anyone.
>
> Branches: main
>
> NEWS:
> Announce the \u and \U escape sequences for Unicode characters
> in string literals.
>
> Julien.
>
> Index: NEWS
> ===================================================================
> RCS file: /home/mercury/mercury1/repository/mercury/NEWS,v
> retrieving revision 1.582
> diff -u -r1.582 NEWS
> --- NEWS 2 Jun 2011 07:20:53 -0000 1.582
> +++ NEWS 5 Jun 2011 14:08:59 -0000
> @@ -8,6 +8,12 @@
>
> * The `char' type now represents a Unicode code point.
>
> +* Unicode characters can now be encoded in string literals using an
> + escape sequence. The escape sequence \uXXXX (or \UXXXXXXXX), where XXXX
> + (or XXXXXXXX) is a Unicode character code in hexadecimal, is replaced with
> + the corresponding Unicode character. The UTF-8 encoding is used to represent
> + the Unicode character.
> +
That last sentence only applies to the C backends. Is it necessary
anyway? Obviously the unicode character is going to be represented in
whatever encoding is used for strings on the current backend.
Ian.
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to: mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions: mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------
More information about the reviews
mailing list