[fpc-devel] _wcsicmp solved

2014-12-04 Thread Adriaan van Os
Is there an RTL or package equivalent for _wcsicmp et all or should the libc declaration be added to the application ? Or is there another recommendation to compare wide (so-called Unicode) strings case-insensitive ? Sorry, I found WideCo

Re: [fpc-devel] _wcsicmp

2014-12-04 Thread Chris Dryburgh
On 04/12/14 07:16 AM, Jonas Maebe wrote: The closest equivalent is probably sysutils.UnicodeCompareText(). It uses CompareStringW on Windows though, and on Unix it converts both strings to uppercase, locale-sensitive-wise, and compares those. As a general rule it is better to convert to lowe

Re: [fpc-devel] AnsiUpperCase problems

2014-12-04 Thread Mattias Gaertner
On Thu, 04 Dec 2014 15:29:06 +0100 Hans-Peter Diettrich wrote: >[...] > Please note that (currently) Lazarus sets or leaves DefaultSystemCodePage as > according to the actual OS, i.e. 1252 for my installation, regardless of > $codepage. Lazarus does not change the DefaultSystemCodePage. Unle

[fpc-devel] AnsiUpperCase problems

2014-12-04 Thread Hans-Peter Diettrich
The following console program demonstrates various problems with the new (encoded) AnsiStrings (FPC trunk): program litTest2; {.$codepage UTF8} //off for now uses Classes,SysUtils; var A: AnsiString; begin a := 'äöü'; //a := a+' '; //uncomment later WriteLn(a,'äöü'); WriteLn(AnsiUpperCas

Re: [fpc-devel] _wcsicmp

2014-12-04 Thread Jonas Maebe
On 04 Dec 2014, at 13:02, Adriaan van Os wrote: Is there an RTL or package equivalent for _wcsicmp et all or should the libc declaration be added to the application ? Or is there another recommendation to compare wide (so-called Unicode

[fpc-devel] _wcsicmp

2014-12-04 Thread Adriaan van Os
Is there an RTL or package equivalent for _wcsicmp et all or should the libc declaration be added to the application ? Or is there another recommendation to compare wide (so-called Unicode) strings case-insensitive ? Regards, Adriaan van