Recent

Author Topic: BGRAControls utf8lowecase not found  (Read 3758 times)

josh

  • Hero Member
  • *****
  • Posts: 754
BGRAControls utf8lowecase not found
« on: August 25, 2016, 11:40:44 am »
Hi
Trying Laz from trunk, and am getting the following error when trying to compile bgracontrols
bceffect.pas(97,9) Error: Identifier not found "UTF8LowerCase"
Code: [Select]
function StrToTFadingMode(const s: ansistring): TFadingMode;
var
  fm: TFadingMode;
  ls: ansistring;
begin
  ls := UTF8LowerCase(s);     <------ Here
  for fm := low(TFadingMode) to high(TFadingMode) do
    if ls = UTF8LowerCase(FadingModeStr[fm]) then
    begin
      Result := fm;
      break;
    end;
  Result := fm;
end;             

I suspect some change in lazarus svn.

Any ideas?

Josh
Development Installation Lazarus 1.3, FPC 2.7.1,Windows 7/8 32/64, OSX, *nix

Test Environment Lazarus & FPC Trunk on Windows and OSX (Cocoa Mainly on OSX). Testing also Crosscompile windows to OSX.. 
Any posts made from 2015 will be based on Lazarus Trunk.

paweld

  • Full Member
  • ***
  • Posts: 186
Re: BGRAControls utf8lowecase not found
« Reply #1 on: August 25, 2016, 01:05:43 pm »
Add LazUTF8 unit to uses section
Best regards
paweld

lainz

  • Hero Member
  • *****
  • Posts: 3284
    • Lainz
Re: BGRAControls utf8lowecase not found
« Reply #2 on: August 25, 2016, 03:10:13 pm »
Thanks For reporting. I will fix that asap.

Edit: done, please test Git repository.
« Last Edit: August 25, 2016, 03:43:56 pm by lainz »

josh

  • Hero Member
  • *****
  • Posts: 754
Re: BGRAControls utf8lowecase not found
« Reply #3 on: August 25, 2016, 10:53:40 pm »
Hi Lainz,

Thanks; that gets further now same error at

bcfilters.pas(225,9) Error: Identifier not found "UTF8LowerCase"

Code: [Select]
function StrToTBCSimpleFilter(const s: ansistring): TBCSimpleFilter;
var
  sf: TBCSimpleFilter;
  ls: ansistring;
begin
  Result := sf;
  ls := UTF8LowerCase(s);
  for sf := low(TBCSimpleFilter) to high(TBCSimpleFilter) do
    if ls = UTF8LowerCase(BCSimpleFilterStr[sf]) then
    begin
      Result := sf;
      break;
    end;
end;   

Adding LazUTF8 to bcfilters now compiles ok.
so it reads
Code: [Select]
interface
uses
  Classes, SysUtils, LCLProc, Math, BGRABitmap, BGRABitmapTypes, LazUTF8;
« Last Edit: August 25, 2016, 10:57:39 pm by josh »
Development Installation Lazarus 1.3, FPC 2.7.1,Windows 7/8 32/64, OSX, *nix

Test Environment Lazarus & FPC Trunk on Windows and OSX (Cocoa Mainly on OSX). Testing also Crosscompile windows to OSX.. 
Any posts made from 2015 will be based on Lazarus Trunk.

lainz

  • Hero Member
  • *****
  • Posts: 3284
    • Lainz
Re: BGRAControls utf8lowecase not found
« Reply #4 on: August 25, 2016, 10:59:07 pm »
Thanks, done. Hope is the last  ;)