mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 09:28:48 +02:00
+ introduced UDrivers.EgcWidth
git-svn-id: branches/unicodekvm@48812 -
This commit is contained in:
parent
ddd87e09ff
commit
00beafae5b
@ -335,6 +335,14 @@ procedure GiveUpTimeSlice;
|
||||
{+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++}
|
||||
|
||||
|
||||
{$ifdef FV_UNICODE}
|
||||
{-EgcWidth-----------------------------------------------------------
|
||||
Returns the number of display columns needed to display the extended
|
||||
grapheme cluster EGC.
|
||||
---------------------------------------------------------------------}
|
||||
FUNCTION EgcWidth(Const EGC: Sw_String): Sw_Integer;
|
||||
{$endif FV_UNICODE}
|
||||
|
||||
{-StrWidth-----------------------------------------------------------
|
||||
Returns the number of display columns needed to display the string S.
|
||||
---------------------------------------------------------------------}
|
||||
@ -940,6 +948,13 @@ end;
|
||||
{ BUFFER MOVE ROUTINES }
|
||||
{+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++}
|
||||
|
||||
{$ifdef FV_UNICODE}
|
||||
FUNCTION EgcWidth(Const EGC: Sw_String): Sw_Integer;
|
||||
BEGIN
|
||||
Result := Video.ExtendedGraphemeClusterDisplayWidth(EGC);
|
||||
END;
|
||||
{$endif FV_UNICODE}
|
||||
|
||||
{$ifdef FV_UNICODE}
|
||||
FUNCTION StrWidth(Const S: Sw_String): Sw_Integer;
|
||||
BEGIN
|
||||
|
Loading…
Reference in New Issue
Block a user