Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function EndsWithLinguistic(const Value: string; const IgnoreCase: Boolean): Boolean; overload; | Whether the text ends with Value by the rules of the default locale or of LocaleID; IgnoreCase True ignores case. |
| 2 | function EndsWithLinguistic(const Value: string; const IgnoreCase: Boolean; const LocaleID: TLocaleID): Boolean; overload; |
Overload 1: function EndsWithLinguistic(const Value: string; const IgnoreCase: Boolean): Boolean; overload;
Whether the text ends with Value by the rules of the default locale or of LocaleID; IgnoreCase True ignores case.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | string | |
| 2 | IgnoreCase | Boolean |
Returns: Boolean
Remarks:
Every text kind. A Value of only ignorable characters, such as a soft hyphen, is a match, as an empty one is. Note: This routine is 9.8 to 149 times slower than EndsWithAscii, and 23 to 350 times slower than EndsWith, due to handling of the locale specific char handling. Use EndsWithAscii or EndsWith, if this handling is not needed.
Examples
A soft hyphen in the text is ignored.
uses Substr;
procedure Example;
begin
Assert(Substring('noir caf'#$AD#$E9).EndsWithLinguistic('caf'#$E9, False));
Assert(Substring('noir CAF'#$C9).EndsWithLinguistic('caf'#$E9, True));
end;
Overload 2: function EndsWithLinguistic(const Value: string; const IgnoreCase: Boolean; const LocaleID: TLocaleID): Boolean; overload;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | string | |
| 2 | IgnoreCase | Boolean | |
| 3 | LocaleID | TLocaleID |
Returns: Boolean