Maxim Ganetsky
e71c784ab0
Translations: Brazilian Portuguese translation update by Marcelo B Paula, issue #39516
2021-12-15 02:21:23 +03:00
Martin
189c64388e
LazLogger: avoid "inline" warning for fpc versions not supporting it. Issue #39508
2021-12-12 00:02:41 +01:00
Bart
153a562187
LazUtf8: fix rangecheck error due to not detecting invalid 4-byte Utf8-codepoint in ConvertUTF8ToUTF16. Issue #39501 .
2021-12-11 19:17:44 +01:00
Bart
01e627e35d
LazUtils: LConvEncoding: change signature of TConvertEncodingFunction analogue to all XXXToUtf8() functions. Part of issue #39348 ;
2021-12-11 17:31:30 +01:00
Bart
5aa4ccaa47
LazUtils: LConvEncoding: remove all code that is disabled if FPC_HAS_CPSTRING is NOT defined,
...
since we do not support compiler versions < 3.0, so FPC_HAS_CPSTRING is always defined now.
2021-12-09 22:00:25 +01:00
Bart
05765da982
LazUtils: LConvEncoding: Fix not setting target codepage in various xxxToUtf8() functions. Issue #39348 .
...
Note: ConvertAnsiToUtf8 not fixed yet.
2021-12-09 21:42:07 +01:00
Maxim Ganetsky
738e48c6b7
Translations: French translation update by Gilles Vasseur, issue #39487
2021-11-26 03:47:29 +03:00
Bart
ef131e6c46
LazUtils: Masks: modifiy comment about wqAnyExtension
2021-11-20 13:25:33 +01:00
Bart
ac380781cd
LazUtils: Masks: re-arrange some definitions. No functional changes.
2021-11-20 13:21:15 +01:00
Bart
7fb173f384
LazUtils: Test: TestMasks: Add test for issue #39462 .
2021-11-20 13:00:24 +01:00
Bart
7c0fdd1281
LazUtils: Masks: on Windows 'foo.*' should also match 'foo' (depends on quirks used). Patch by Jose Mejuto. Issue #39462 .
2021-11-20 12:57:08 +01:00
Sven Barth
53fe133e43
* for FPC 3.2.3 and newer alias GraphType.TGraphicsColor to System.UITypes.TColor, Graphics.PColor to System.UITypes.PColor and LCLType.COLORREF to System.UITypes.TColorRef to avoid type conflicts when both System.UITypes and the LCL units are used
...
Merge request freepascal.org/lazarus/lazarus!46 with minor change (enabled aliasing for FPC 3.2.3 too).
2021-11-16 00:27:36 +03:00
Bart
1643927f8f
LazUtils: Test: TestMasks: adjust Windows tests after the the removal of wqFileNameEnd from DefaultWindowsQuirks.
2021-11-10 22:15:14 +01:00
Bart
eb63676746
LazUtils: Masks: remove wqFileNameEnd from DefaultWindowsQuirks, as it's behaviour is a bit unexpected for the common user.
2021-11-10 21:52:47 +01:00
Bart
3af786d415
LazUtils: Masks: TMaskUtf8.intMatches: comment out debug writeln.
...
All debug writeln's are disabled by default now.
2021-11-10 21:43:05 +01:00
Bart
c5a2248d1e
LazUtils: Masks: Compile: ifdef (or comment out) debug writeln's.
...
Note: code still contains writeln's, so it will crash if no console is available.
2021-11-10 21:37:58 +01:00
Bart
7a4464df4e
LazUtils: Masks: CompileRange: comment out debug a piece of code that is (if I am correct) dead (see the comments).
...
Note: code still contains writeln's, so it will crash if no console is available.
2021-11-10 21:35:08 +01:00
Bart
355912f3cd
LazUtils: Masks: CompileRange: comment out debug statements. Remove commented (and factored) out code.
...
Note: code still contains writeln's, so it will crash if no console is available.
2021-11-10 21:18:15 +01:00
Bart
cb530a9063
LazUtils: CompileAnyCharOrNone: ifdef all debug output. Remove unneeded comments.
...
Note: code still contains writeln's, so it will crash if no console is available.
2021-11-10 21:15:36 +01:00
Bart
905d99b813
LazUtils: use CompileAnyCharOrNone in TWindowsMaskUTF8.CompileOtherSpecialChars.
...
Fix not including wqFileNameEnd in fWindowsQuirksInUse.
Note: code contains writeln's, so it will crash if no console is available.
2021-11-10 18:55:47 +01:00
Bart
ad69e5b56b
LazUtils: prepare CompileAnyCharOrNone so that if can be re-used in TWindowsMaskUTF8.CompileOtherSpecialChars.
...
Fix compilation in TWindowsMaskUTF8.CompileOtherSpecialChars
Fix off by 1 error on errormessage in CompileAnyCharOrNone.
Note: code contains writeln's, so it will crash if no console is available.
2021-11-10 18:39:00 +01:00
Bart
36cc485850
LazUtils: add (hopefully redundant) check in TWindowsMaskUTF8.CompileOtherSpecialChars.
...
Note: code contains writeln's, so it will crash if no console is available.
2021-11-10 18:14:47 +01:00
Bart
939c2d26d6
LazUtils: only conditionally compile some checks in CompileAnyCharOrNone.
...
Note: code contains writeln's, so it will crash if no console is available.
2021-11-10 18:05:07 +01:00
Bart
4602ea4e19
LazUtils: rename a method, no functional changes.
...
Note: code contains writeln's, so it will crash if no console is available.
2021-11-10 18:00:09 +01:00
Bart
a45b237a29
LazUtils: Add a note in CompileRange for possible future optimization.
...
Note: code contains writeln's, so it will crash if no console is available.
2021-11-10 17:58:49 +01:00
Bart
15fe156691
LazUtils: Masks: fix and use CompileAnyCharOrNone in CompileRange.
...
Note: code contains writeln's, so it will crash if no console is available.
2021-11-09 23:24:51 +01:00
Bart
6cd54a131e
LazUtils: Masks: start factoring out CompileAnyCharOrNone (later to be extended and uses by TWindowsMask.CompileOtherSpecialChars).
...
Code is unused for now.
Note: code contains writeln's, so it will crash if no console is available.
2021-11-09 19:39:31 +01:00
Bart
b68d0b882a
LazUtils: Masks: only conditionally compile TMaskUtf8.DumpMaskColpiled.
...
Note: code contains writeln's, so it will crash if no console is available.
2021-11-09 19:16:34 +01:00
Bart
3679a90e37
LazUtils: Masks: rename ReverseRange to AddRangeReverse.
...
Note: code contains writeln's, so it will crash if no console is available.
2021-11-09 19:06:49 +01:00
Bart
ef974cb238
LazUtils: Masks: suppress a hint.
...
Note: code contains writeln's, so it will crash if no console is available.
2021-11-09 19:02:50 +01:00
Bart
aae437d605
LazUtils: Masks: disallow #0 in the user supplied mask for TWindowsMask.
...
Note: code contains writeln's, so it will crash if no console is available.
2021-11-09 18:55:15 +01:00
Bart
cd4ce74027
LazUtils: Masks: cleanup.
...
Note: code contains writeln's, so it will crash if no console is available.
2021-11-08 22:54:00 +01:00
Bart
0f77d36d93
LazUtils: Test: TestMasks: fix tests after #3c6c852b (mocAnyCharOrNone not enabled by default anymore).
2021-11-08 22:49:54 +01:00
Bart
3c6c852bc1
LazUtils: Masks: revert most of #78148e42 since wqFileNameEnd no longer requires mocAnyCharOrNone.
...
Note: code contains debug writeln's, so it will crash if no console is available.
2021-11-08 22:43:20 +01:00
Bart
09dcf62106
LazUtils: Masks: use TWindowsMaskUtf8.CompileSpecialChars to handle the wqFileNameEnd quirk.
...
This now no longer depends on mocAnyCharOrNone, so do not enforce that any longer if wqFileNameEnd is enabled.
Note: code contains debug writeln's, so it will crash if no console is available.
2021-11-08 22:31:32 +01:00
Bart
a0d01a5922
LazUtils: Masks: make CompileSpecialChars and CompileEscapeCharPlusLiteral methods of TMaskUtf8 instead of nested procs.
...
Note: code contains debug writeln's, so it will crash if no console is available.
2021-11-08 22:07:30 +01:00
Bart
e76d29f85b
LazUtils: Masks: simplify TWindowsMaskUtf8.CompileOtherSpecialChars.
...
Note: code contains debug writeln's, so it will crash if no console is available.
2021-11-08 19:06:36 +01:00
Bart
0be73871b5
LazUtils: Masks: implement a crude TWindowsMaskUtf8.CompileOtherSpecialChars to handle #0 's.
...
Probably this could be sped up by counting the #0 's and adding them all at once?
Note: code contains debug writeln's, so it will crash if no console is available.
2021-11-07 23:17:47 +01:00
Bart
50811399e4
LazUtils: Masks: lay out the infrastructure to handle other special characters in the mask.
...
Will be used for the handling of wqFileNameEnd in TWindowsMaskUTF8.
2021-11-07 18:11:48 +01:00
Bart
2f07ee8783
LazUtils: Masks: factor out the handling of escaped literals and of special chars in TMaskUtf8.Compile.
...
The logic of the main while loop becomes more clear (it spanned too much screens).
Also add a comment about possible dead code in HandleSpecialChar.
2021-11-06 15:39:51 +01:00
Bart
7471fd4635
LazUtils: FileUtil: fix memory leak (created a masklist twice).
2021-11-06 15:00:14 +01:00
Bart
91bde5f636
LazUtils: Masks: fix potential range error in TMaskUtf8.Compile.
2021-11-06 13:39:46 +01:00
Bart
5dff088116
LazUtils: Masks: replace some lines of code with a single AddLiteral.
2021-11-06 13:32:38 +01:00
Bart
f4996fb470
LazUtils: Masks: fix spelling errors in a comment.
2021-11-05 18:32:15 +01:00
Maxim Ganetsky
bdf1cfcd96
Lazutils, tests: correctly set unit output directory and executable filename for TestLazStorageMem project, also made it DPI aware
2021-11-04 01:02:02 +03:00
Maxim Ganetsky
095ca93f94
Lazutils, tests: correctly set unit output directory and executable filename for TestMasks project, also made it DPI aware
2021-11-04 00:53:21 +03:00
Bart
2ce594217a
LazUtils: Masks: fix TWindowsMaskUtf8.Matches not calling Compile.
...
Now all tests in the testsuite are OK again.
2021-11-03 20:04:51 +01:00
Bart
d29512ae6b
LazUtils: TestMasks: adjust test after changes in #78148e42.
2021-11-03 19:30:39 +01:00
Bart
3d0b1cc901
LazUtils: Masks: TMask.Compile: do not call CompileRange when mocAnyCharOrNone is enabled, but mocRange and mocSet are disabled,
...
in taht case '[a' is a valid mask (of 2 literals).
2021-11-03 19:14:22 +01:00
Bart
a9c7e4196b
LazUtils: Masks: fix a deprecated message.
2021-11-03 19:07:31 +01:00