[fpc-pascal] BoolToStr() with correct locale output
Vincent Snijders
vsnijders at vodafonevast.nl
Fri Jun 26 15:36:50 CEST 2009
Graeme Geldenhuys schreef:
> Michael Van Canneyt wrote:
>> StrToBool should use all elements ?
>
> In FPC 2.2.5 it does not.
>
> ============ implementation =====================
> begin
> if UseBoolStrs Then
> begin
> CheckStrs;
> if B then
> Result:=TrueBoolStrs[0]
> else
> Result:=FalseBoolStrs[0];
> end
> else
> If B then
> Result:='-1'
> else
> Result:='0';
> end;
> ======================================
Please add the declaration, to make sure it is StrToBool
Vincent
More information about the fpc-pascal
mailing list