Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function ToLowerLinguistic: Substr.Substring; overload; | A copy in lower case by the casing rules of the default locale or of LocaleID. |
| 2 | function ToLowerLinguistic(const LocaleID: TLocaleID): Substr.Substring; overload; | |
| 3 | class function ToLowerLinguistic(const S: string): Substr.Substring; overload; static; | |
| 4 | class 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;
Overload 2: function ToLowerLinguistic(const LocaleID: TLocaleID): Substr.Substring; overload;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | LocaleID | TLocaleID |
Returns: Substring
Overload 3: class function ToLowerLinguistic(const S: string): Substr.Substring; overload; static;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | S | string |
Returns: Substring
Overload 4: class function ToLowerLinguistic(const S: string; const LocaleID: TLocaleID): Substr.Substring; overload; static;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | S | string | |
| 2 | LocaleID | TLocaleID |
Returns: Substring