Substring.ToUpperInvariant Method

Overload List

#SignatureDescription
1function ToUpperInvariant: Substr.Substring; overload;A copy in upper case by the operating system's uppercase table, the same under every locale.
2class function ToUpperInvariant(const S: string): Substr.Substring; overload; static;

Overload 1: function ToUpperInvariant: Substr.Substring; overload;

A copy in upper case by the operating system's uppercase table, the same under every locale.

Returns: Substring

Remarks:

The class form takes every text kind. Note: This routine is 5 to 25 times slower than ToUpperAscii due to the operating system's case table. Use ToUpperAscii, if A to Z is enough.

Examples

Accented letters.

uses Substr;

procedure Example;
begin
    Assert(Substring('ab'#$E9).ToUpperInvariant = 'AB'#$C9);
    Assert(Substring.ToUpperInvariant('ab'#$E9) = 'AB'#$C9);
end;
See Also: Substring.ToUpperAscii, Substring.ToUpperAscii, Substring.ToUpperLinguistic, Substring.ToUpperLinguistic, Substring.ToUpperLinguistic, Substring.ToUpperLinguistic

Overload 2: class function ToUpperInvariant(const S: string): Substr.Substring; overload; static;

#NameTypeDescription
1Sstring

Returns: Substring