mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 18:49:16 +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-----------------------------------------------------------
|
{-StrWidth-----------------------------------------------------------
|
||||||
Returns the number of display columns needed to display the string S.
|
Returns the number of display columns needed to display the string S.
|
||||||
---------------------------------------------------------------------}
|
---------------------------------------------------------------------}
|
||||||
@ -940,6 +948,13 @@ end;
|
|||||||
{ BUFFER MOVE ROUTINES }
|
{ 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}
|
{$ifdef FV_UNICODE}
|
||||||
FUNCTION StrWidth(Const S: Sw_String): Sw_Integer;
|
FUNCTION StrWidth(Const S: Sw_String): Sw_Integer;
|
||||||
BEGIN
|
BEGIN
|
||||||
|
Loading…
Reference in New Issue
Block a user