[Lazarus] LazUtils/LazUtf16 - why "widestring"

2018-01-08 Thread AlexeyT via Lazarus

function UTF16CharacterLength(p: PWideChar): integer;
function UTF16Length(const s: widestring): PtrInt; overload;
function UTF16Length(p: PWideChar; WordCount: PtrInt): PtrInt; overload;
function UTF16Copy(const s: UnicodeString; StartCharIndex, CharCount: 
PtrInt): Unicodestring;

function UTF16CharStart(P: PWideChar; Len, CharIndex: PtrInt): PWideChar;
function UTF16Pos(const SearchForText, SearchInText: UnicodeString; 
StartPos: PtrInt = 1): PtrInt;
function UTF16CharacterToUnicode(p: PWideChar; out CharLen: integer): 
Cardinal;

function UnicodeToUTF16(u: cardinal): widestring;
function IsUTF16CharValid(AChar, ANextChar: WideChar): Boolean;
function IsUTF16StringValid(AWideStr: widestring): Boolean;
function Utf16StringReplace(const S, OldPattern, NewPattern: WideString; 
Flags: TReplaceFlags): WideString;


Pls, use UnicodeString type here

--
Regards,
Alexey

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Package filenames with _package

2018-01-08 Thread wkitty42--- via Lazarus

On 01/08/2018 04:38 PM, Graeme Geldenhuys via Lazarus wrote:
Even better, Linux and FreeBSD don't even need file extensions. File Extensions 
are simply for [some] human benefit (unlike Windows that requires them). Linux 
and FreeBSD OS's query the first 4-8 bytes of a file to accurately determine the 
file type and use the appropriate application to open them.



yup! i have a ton-load of scripts in perl, python, python3, bash, and just plain 
commands as if i were to type them manually... none of them have extensions on 
them... i don't even know what they are written in unless i go into them with an 
editor to modify them for some reason ;)



--
 NOTE: No off-list assistance is given without prior approval.
   *Please keep mailing list traffic on the list unless*
   *a signed and pre-paid contract is in effect with us.*
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Package filenames with _package

2018-01-08 Thread Graeme Geldenhuys via Lazarus

On 2018-01-08 21:30, Kostas Michalopoulos via Lazarus wrote:

some cases it takes space (like in file managers). Up to 4 letters is fine
for me, 5 is stretching it and anything above that is only something i'd
use for file types that i wont see often in a list and even then only if i
can't avoid it (but really even just 4 characters gives you a lot of
variation).


Then it seems Windows Explorer is right up your alley. :) They hide the 
file extension by default. Users (like me) have to explicitly go into 
the settings and enable "show file extensions" option.


Even better, Linux and FreeBSD don't even need file extensions. File 
Extensions are simply for [some] human benefit (unlike Windows that 
requires them). Linux and FreeBSD OS's query the first 4-8 bytes of a 
file to accurately determine the file type and use the appropriate 
application to open them.


Regards,
  Graeme

--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Package filenames with _package

2018-01-08 Thread Kostas Michalopoulos via Lazarus
On Sun, Jan 7, 2018 at 1:06 PM, Graeme Geldenhuys via Lazarus <
lazarus@lists.lazarus-ide.org> wrote:
> so why is everybody still limiting file extensions to 3 letters?? Some of
my fpGUI included applications use file extensions like *.project etc.
Hell, even Microsoft is catching up with that idea (although minor) and now
use 4 letter extensions like *.docx etc.

One reason is simply habit, but also because these extensions are visible
to the user more often than not and having long extensions in filename
lists (like, e.g, when using version control) become redundant noise and in
some cases it takes space (like in file managers). Up to 4 letters is fine
for me, 5 is stretching it and anything above that is only something i'd
use for file types that i wont see often in a list and even then only if i
can't avoid it (but really even just 4 characters gives you a lot of
variation).
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Extended filter for Code Completion

2018-01-08 Thread Vojtěch Čihák via Lazarus

It can be resized by mouse, by the small handle in bottom-rigth corner.
 
V.
__

Od: AlexeyT via Lazarus 
Komu: Juha Manninen via Lazarus 
Datum: 08.01.2018 19:30
Předmět: Re: [Lazarus] Extended filter for Code Completion

patch makes red hilite of current ID in the listbox. Can you tell how to 
make listbox 2x-3x wider? it's narrow.

> Please test everybody. Does it have negative side-effects of some kind?

--
Regards,
Alexey

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Extended filter for Code Completion

2018-01-08 Thread AlexeyT via Lazarus
patch makes red hilite of current ID in the listbox. Can you tell how to 
make listbox 2x-3x wider? it's narrow.

Please test everybody. Does it have negative side-effects of some kind?


--
Regards,
Alexey

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Extended filter for Code Completion

2018-01-08 Thread Juha Manninen via Lazarus
I applied the patch from here:
 https://bugs.freepascal.org/view.php?id=32974
It looks good to me.
Please test everybody. Does it have negative side-effects of some kind?

Juha
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus