TCharacter.ToUpper
Convert a character or string to uppercase
Declaration
Source position: character.pas line 142
public
class function ToUpper(AChar: UnicodeChar) : UnicodeChar; Overload
; Static;
class function ToUpper(const AString: UnicodeString) : UnicodeString
; Overload; Static;
class function ToUpper(const AString: UnicodeString;
const AOptions: TCharacterOptions) : UnicodeString
; Overload; Static;
Description
ToUpper converts the Unicode character AChar or string AString to uppercase. Options determines the behaviour of the conversion: if AOptions contains coIgnoreInvalidSequence then no exception will be raised when the string or character contains an invalid Unicode sequence. The default behaviour is to raise an EArgumentException exception when this happens.
Errors
If an invalid character is encountered, an EArgumentException exception is raised, unless coIgnoreInvalidSequence is specified in the options.
See also
Name | Description |
---|---|
TCharacter.IsLower | Check if a Unicode character is a lowercase letter |
TCharacter.IsUpper | Check whether a Unicode character is an uppercase letter |
TCharacter.ToUpper | Convert a character or string to uppercase |