Substring.ToLowerInvariant Method

Overload List

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

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

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

Returns: Substring

Remarks:

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

Examples

Accented letters.

uses Substr;

procedure Example;
begin
    Assert(Substring('AB'#$C9).ToLowerInvariant = 'ab'#$E9);
    Assert(Substring.ToLowerInvariant('AB'#$C9) = 'ab'#$E9);
end;
See Also: Substring.ToLowerAscii, Substring.ToLowerAscii, Substring.ToLowerLinguistic, Substring.ToLowerLinguistic, Substring.ToLowerLinguistic, Substring.ToLowerLinguistic

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

#NameTypeDescription
1Sstring

Returns: Substring