On 03/08/2013 11:27 AM, Karl Williamson wrote: > On 03/08/2013 11:01 AM, James E Keenan via RT wrote: >> On Fri Mar 08 09:58:59 2013, Hugmeir wrote: >> >>> >>> Shouldn't isWORDCHAR(c)'s definition be (isALNUM(c) || *(c) == '_')? >>> >> >> I suspect the answer to that starts with: "Do it in a branch and push >> to a smoke me." >> >> --- >> via perlbug: queue: perl5 status: open >> https://rt.perl.org:443/rt3/Ticket/Display.html?id=116961 >> > > > The answer to this is no, and reinforces why I made the change in the > first place. isALNUM is identical to isWORDCHAR, but is misleadingly > named, and that name has led you guys astray. > > There is an isALNUMC, as well. I believe the extra C means that it is > the C language's version of an alphanumeric. So this is correct: > > isWORDCHAR === isALNUM === (isALNUMC(c) || *(c) == '_') > I forgot to mention that I've added a new synonym in 5.17 for isALNUMC; and it is isALPHANUMERIC. I think that is much clearer; I couldn't think of a shorter name, since isALNUM was already taken.Thread Previous | Thread Next