Is º an unicode alphabetic character?

AsmMan via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Sep 11 20:04:59 PDT 2014


what's an unicode alphabetic character? I misunderstood 
isAlpha(), I used to think it's to validate letters like a, b, è, 
é .. z etc but isAlpha('º') from std.uni module return true. How 
can I validate only the letters of an unicode alphabet in D or 
should I write one?

I know I can do:

bool is_id(dchar c)
{
	return c >= 'a' && c <= 'z' || c >= 'A' && c <= 'z' || c >= 0xc0;
}

but I'm looking for a native, if any


More information about the Digitalmars-d-learn mailing list