[PATCH] U+XXXX Unicode literals

2001-02-11 Thread Simon Cozens
People in the Unicode world sometimes use U+(four hex digits) to refer to a Unicode codepoint. Here's a patch that lets them do that in Perl. --- toke.c~ Mon Feb 12 03:22:05 2001 +++ toke.c Mon Feb 12 03:56:19 2001 @@ -3747,6 +3747,34 @@ no_op("Backslash",s); OPERATOR

[patch] context for 'U' magic functions

2001-02-11 Thread Doug MacEachern
'U' magic functions are not passed a context, patch below fixes.. Index: mg.c === RCS file: /usr/local/cvs_repository/perl-current-mirror/mg.c,v retrieving revision 1.1.1.7 diff -u -r1.1.1.7 mg.c --- mg.c2001/01/31 19:12:52

Re: [PATCH] U+XXXX Unicode literals

2001-02-11 Thread Jarkko Hietaniemi
On Mon, Feb 12, 2001 at 04:05:54AM +, Simon Cozens wrote: > People in the Unicode world sometimes use U+(four hex digits) to refer > to a Unicode codepoint. Here's a patch that lets them do that in Perl. I know U+ is used but I dunno whether we want yet another magical token type, persona