Substring.ToUpperLinguistic Method

Overload List

#SignatureDescription
1function ToUpperLinguistic: Substr.Substring; overload;A copy in upper case by the casing rules of the default locale or of LocaleID.
2function ToUpperLinguistic(const LocaleID: TLocaleID): Substr.Substring; overload;
3class function ToUpperLinguistic(const S: string): Substr.Substring; overload; static;
4class 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;
See Also: Substring.ToUpperAscii, Substring.ToUpperAscii, Substring.ToUpperInvariant, Substring.ToUpperInvariant

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

#NameTypeDescription
1LocaleIDTLocaleID

Returns: Substring

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

#NameTypeDescription
1Sstring

Returns: Substring

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

#NameTypeDescription
1Sstring
2LocaleIDTLocaleID

Returns: Substring