Substring.ToLowerLinguistic Method

Overload List

#SignatureDescription
1function ToLowerLinguistic: Substr.Substring; overload;A copy in lower case by the casing rules of the default locale or of LocaleID.
2function ToLowerLinguistic(const LocaleID: TLocaleID): Substr.Substring; overload;
3class function ToLowerLinguistic(const S: string): Substr.Substring; overload; static;
4class function ToLowerLinguistic(const S: string; const LocaleID: TLocaleID): Substr.Substring; overload; static;

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

A copy in lower case by the casing rules of the default locale or of LocaleID.

Returns: Substring

Remarks:

The class forms take every text kind. A failed mapping raises EOSError. Note: This routine is 5 to 28 times slower than ToLowerAscii due to handling of the locale specific char handling. Use ToLowerAscii, if this handling is not needed.

Examples

The Turkish dotless small i.

uses Substr, System.SysUtils;

procedure Example;
begin
    Assert(Substring('I').ToLowerLinguistic(TLocaleID($041F)) = #$0131);
    Assert(Substring.ToLowerLinguistic('ABC') = 'abc');
end;
See Also: Substring.ToLowerAscii, Substring.ToLowerAscii, Substring.ToLowerInvariant, Substring.ToLowerInvariant

Overload 2: function ToLowerLinguistic(const LocaleID: TLocaleID): Substr.Substring; overload;

#NameTypeDescription
1LocaleIDTLocaleID

Returns: Substring

Overload 3: class function ToLowerLinguistic(const S: string): Substr.Substring; overload; static;

#NameTypeDescription
1Sstring

Returns: Substring

Overload 4: class function ToLowerLinguistic(const S: string; const LocaleID: TLocaleID): Substr.Substring; overload; static;

#NameTypeDescription
1Sstring
2LocaleIDTLocaleID

Returns: Substring