On Fri, Jan 23, 2009 at 7:26 PM, vmars wrote:
> 'JcfStringUtils.pas' very strange looking code.
> Please, what format is the file in?
Uh? I am using Lazarus 0.9.26 under Linux. The file was opened like
any other source file...
Regards,
- Graeme -
___
s/vmars956/
Wanted: Dwarf Hibiscus (Orange/Rasberry)
- Original Message -
From: "Graeme Geldenhuys"
To: "FPC-Pascal users discussions"
Sent: Friday, January 23, 2009 2:02 AM
Subject: Re: [fpc-pascal] cross platform version of IsCharAlpha()
On Mon, Jan 12, 2009 at 3:39 P
On Mon, Jan 12, 2009 at 3:39 PM, Paul Ishenin wrote:
>
> Here in
> http://svn.freepascal.org/svn/lazarus/trunk/components/jcf2/Utils/JcfStringUtils.pas
> I used the same code :)
Thanks Paul, I feel better already! I'm not alone. :-)
Regards,
- Graeme -
Graeme Geldenhuys wrote:
function IsCharAlpha(AChar: Char): Boolean;
begin
// This is very primitive and doesn't take special chars or unicode into
// consideration.
if AChar in ['a'..'z', 'A'..'Z'] then
Result := True
else
Result := False;
end;
Anybody got a better Object Pasca
Graeme Geldenhuys schrieb:
> Hi,
>
> IsCharAlpha() is a Win32 API call. I'm trying to convert code that
> uses that call, to be Windows and Linux compatible. Does FPC have a
> cross-platform version of that API call? I did a text search through
> the RTL of v2.2.3 and it only seems to have the W
Because it depends on the code page of the system you are using at the
moment you parse the char.
On Mon, Jan 12, 2009 at 11:19 AM, Graeme Geldenhuys
wrote:
> On Mon, Jan 12, 2009 at 11:13 AM, ik wrote:
>> The problem with such function is that it requires a lot of data to be
>> used on a non
On Mon, Jan 12, 2009 at 11:13 AM, ik wrote:
> The problem with such function is that it requires a lot of data to be
> used on a non ANSI table. and you can not use in a unicode
> implementation the Char type, because a char can be more then one
> byte.
I know that all to well. :-) I made a ug
The problem with such function is that it requires a lot of data to be
used on a non ANSI table. and you can not use in a unicode
implementation the Char type, because a char can be more then one
byte.
Ido
On Mon, Jan 12, 2009 at 11:09 AM, Graeme Geldenhuys
wrote:
> Hi,
>
> IsCharAlpha() is a Wi
Hi,
IsCharAlpha() is a Win32 API call. I'm trying to convert code that
uses that call, to be Windows and Linux compatible. Does FPC have a
cross-platform version of that API call? I did a text search through
the RTL of v2.2.3 and it only seems to have the Windows API version.
I can add a Linux