Check if character is letter in Delphi (Unicode)

Are there pre-defined charsets in Delphi, to check if a character is a letter?

In Cocoa I use something like

if ([[NSCharacterSet whitespaceCharacterSet] characterIsMember:character])

I know I can do in Delphi

if c in ['A'..'Z'] then

but will this cover foreign accentuated characters like Á, À, Ú, É, ....?

What would be the most efficient way to check this in Delphi. I need to check if a string is fully composed with letters.

Answers


Try using the Character.TCharacter.IsLetter or Character.IsLetter functions


Need Your Help

software distribution and patch management

.net deployment patch software-distribution

How do software houses like Microsoft or anti-virus companies patch/update their software?

OpenGL getting perspective pixel data

opengl pixels perspective

I am working with a 3D rendering of a large field containing various objects. My program views this field in perspective from a high point.