Re: [Rd] Unicode whitespace

2008-01-07 Thread Prof Brian Ripley
On Sat, 5 Jan 2008, hadley wickham wrote: > On Jan 5, 2008 1:40 AM, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: >> I presume you want this only in a UTF-8 locale? > > Yes, although my assumption is that this will become an increasing > common locale as time goes by. Probably, except on Windows.

Re: [Rd] Unicode whitespace

2008-01-05 Thread hadley wickham
On Jan 5, 2008 1:40 AM, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > I presume you want this only in a UTF-8 locale? Yes, although my assumption is that this will become an increasing common locale as time goes by. > Currently this is done by > > static int SkipSpace(void) > { > int c; >

Re: [Rd] Unicode whitespace

2008-01-04 Thread Prof Brian Ripley
I presume you want this only in a UTF-8 locale? Currently this is done by static int SkipSpace(void) { int c; while ((c = xxgetc()) == ' ' || c == '\t' || c == '\f') /* nothing */; return c; } in gram.c. We could make use of isspace and its wide-char equivalent iswspace.