Add IsLeadChar for Delphi compatibility
Original Reporter info from Mantis: rd0x
-
Reporter name:
Original Reporter info from Mantis: rd0x
- Reporter name:
Description:
Function IsLeadChar from Delphi is missing in FPC.
function IsLeadChar(C: AnsiChar): Boolean;
function IsLeadChar(C: Byte): Boolean;
function IsLeadChar(C: WideChar): Boolean;
"Checks whether a character is a valid lead character (first in a multi-byte character sequence).
Call IsLeadChar to check whether a character represents a valid lead character in the current system locale. A lead character is the first in a multi-byte character sequence. For ANSI characters, IsLeadChar uses the LeadBytes variable. Wide characters have a fixed locale-independent number of allowed lead characters."
http://docwiki.embarcadero.com/Libraries/Tokyo/en/System.SysUtils.IsLeadChar
Additional information:
I think one implementation can be seen here:
https://github.com/pasdoc/pasdoc/blob/master/source/component/PasDoc_Utils.pas#L668
Mantis conversion info:
- Mantis ID: 34754
- Version: 3.2.0
- Fixed in version: 3.3.1
- Fixed in revision: 41337 (#2b876c60)
- Monitored by: » rd0x (rd0x)
- Target version: 3.2.0