[Lazarus] WrapText length limit?

Antônio antoniog12345 at gmail.com
Thu Oct 7 08:44:58 CEST 2010


function CharLength(const S: string; Index: Integer): Integer;
begin
  Result := 1;
  assert((Index > 0) and (Index <= Length(S)));
  if SysLocale.FarEast and (S[Index] in LeadBytes) then
    Result := StrCharLength(PChar(S) + Index - 1);
end;




More information about the Lazarus mailing list