I want to fetch the entire line string (UTF8) and want to do operation on the line string. I have tried following code. but if we are having multibyte characters am not able to do this.
J:=1;
CurrentRowStr :='';
while True do
begin
//detect end of line
Buffer.EditPosition.Move(Changes[I].FLine,J);
CurrentRowStr := CurrentRowStr + Buffer.EditPosition.Character ;
J := J+1;
end;
CurrentRowStr := Buffer.EditPosition.Read(J-1);
if anyone can help me to get particular line string using OpenToolsAPI, it would be great help.
You can use a
IOTAEditReader
to get entire lines. The following code is from my Conversion Helper Package. Most of this revolves around theGetCurrentLineParams
function: