R-alpha: Latin-1 characters (3)

Peter Dalgaard BSA p.dalgaard@biostat.ku.dk
26 Nov 1997 22:46:45 +0100


Ross Ihaka <ihaka@stat.auckland.ac.nz> writes:

>=20
> =09>> ------------------------
> =09>> R & R, any comments?
> =09>> ------------------------
>=20
> At present the parser makes the decision on what characters can go int=
o
> symbol names based on isalpha(c).  If someone will send me a function =
-
> say isidchar(c) which returns 1 for characters which can be in
> identifiers and 0 otherwise, I will replace the current test with that=
.
>=20
> =09Ross

Ahaaa... So the "oscillatory behaviour" is just me shifting between
machines with proper locale configuration and machines without it! I
think that isalpha() is actually the way to go. People just have to
get their locales right. Here's what's in isalpha(c)=3D=3D1 for the da_D=
K
locale:

ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz=AD
=C0=C1=C2=C3=C4=C5=C6=C7=C8=C9=CA=CB=CC=CD=CE=CF=D0=D1=D2=D3=D4=D5=D6=D8=
=D9=DA=DB=DC=DD=DE=DF=E0=E1=E2=E3=E4=E5=E6=E7=E8=E9=EA=EB=EC=ED=EE=EF=F0=
=F1=F2=F3=F4=F5=F6=F8=F9=FA=FB=FC=FD=FE=FF

The hyphen following 'z' is actually 0xad (soft hyphen).

--=20
   O__  ---- Peter Dalgaard             Blegdamsvej 3 =20
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N  =20
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._