Char miscellaneous operations |
![]() |
|
|
|
|
|
Return TRUE if the object contains an uppercase (or lowercase) character. The methods always return FALSE for characters that are not a letter at all (control and special symbols, digits, and other non-letter characters in Unicode).
|
Important: When using Borland C++ Builder, the Char class is named StrChar to avoid a collision with a standard Borland VCL datatype |
|
|
|
|
|
These two methods convert the letter contained in the character object to its uppercase or lowercase equivalent, respectively. If the object already contains an uppercase / lowercase, or does not contain a letter at all, its content is unchanged.
The two methods return a reference to self.
|
|
|
|
|
IsAlpha() returns TRUE if the object contains a letter (in Unicode, many more characters than only those in the latin alphabet are considered letters).
IsDigit() returns TRUE only for the digits between 0 and 9.
IsAlphaNumeric() is equivalent to the expression obj.IsAlpha() || obj.IsDigit()
See also: Char class