Recent

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

Josh

  • Hero Member
  • *****
  • Posts: 1271
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
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

paweld

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

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
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: 1271
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 »
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

lainz

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

 

TinyPortal © 2005-2018