synedit: added function IsIndentChar needed for unicode support

git-svn-id: trunk@12610 -
This commit is contained in:
mattias 2007-10-27 18:13:20 +00:00
parent ceca023673
commit 4db2eccd14

View File

@ -755,6 +755,9 @@ type
function GetWordAtRowCol(XY: TPoint): string;
procedure GotoBookMark(BookMark: Integer);
function IdentChars: TSynIdentChars;
{$IFDEF SYN_LAZARUS}
function IsIdentChar(const c: TUTF8Char): boolean;
{$ENDIF}
procedure InvalidateGutter;
procedure InvalidateLine(Line: integer);
function IsBookmark(BookMark: integer): boolean;
@ -7130,6 +7133,13 @@ begin
{$ENDIF}
end;
{$IFDEF SYN_LAZARUS}
function TCustomSynEdit.IsIdentChar(const c: TUTF8Char): boolean;
begin
Result:=(length(c)=1) and (c[1] in IdentChars);
end;
{$ENDIF}
procedure TCustomSynEdit.SetBookMark(BookMark: Integer; X: Integer; Y: Integer);
var
i: Integer;