Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function ToUpperLinguistic: Substr.Substring; overload; | A copy in upper case by the casing rules of the default locale or of LocaleID. |
| 2 | function ToUpperLinguistic(const LocaleID: TLocaleID): Substr.Substring; overload; | |
| 3 | class function ToUpperLinguistic(const S: string): Substr.Substring; overload; static; | |
| 4 | class function ToUpperLinguistic(const S: string; const LocaleID: TLocaleID): Substr.Substring; overload; static; |
Overload 1: function ToUpperLinguistic: Substr.Substring; overload;
A copy in upper 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 26 times slower than ToUpperAscii due to handling of the locale specific char handling. Use ToUpperAscii, if this handling is not needed.
Examples
The Turkish dotted capital I.
uses Substr, System.SysUtils;
procedure Example;
begin
Assert(Substring('i').ToUpperLinguistic(TLocaleID($041F)) = #$0130);
Assert(Substring.ToUpperLinguistic('abc') = 'ABC');
end;
Overload 2: function ToUpperLinguistic(const LocaleID: TLocaleID): Substr.Substring; overload;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | LocaleID | TLocaleID |
Returns: Substring
Overload 3: class function ToUpperLinguistic(const S: string): Substr.Substring; overload; static;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | S | string |
Returns: Substring
Overload 4: class function ToUpperLinguistic(const S: string; const LocaleID: TLocaleID): Substr.Substring; overload; static;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | S | string | |
| 2 | LocaleID | TLocaleID |
Returns: Substring