+ introduced UDrivers.EgcWidth

git-svn-id: branches/unicodekvm@48812 -
This commit is contained in:
nickysn 2021-02-26 15:19:13 +00:00
parent ddd87e09ff
commit 00beafae5b

View File

@ -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