Juha
76f7524436
LazUtils: In UCS2BEToUTF8 and UCS2LEToUTF8 skip little/big endian BOM. Merge request !88 by Zaher Dirkey.
2022-04-16 12:41:31 +03:00
mattias
0f871f2237
lazutils: clean up
2022-04-11 09:43:22 +02:00
Martin
e2f9ae2c04
LazXmlConfig: Write/Read Set/Enum according to PTypeInfo
2022-03-24 00:39:04 +01:00
wp_xyz
201075cbd8
LCL: Make procedure RotateRect() (local to customlabel.inc) publicly available in GraphMath.
2022-03-13 15:41:48 +01:00
Juha
014d3b3a9f
LazUtils: Add ISO-8859-9 encoding to LConvEncoding. Issue #39659 , patch by Alexey Torgashin.
2022-03-03 16:14:29 +02:00
Juha
c805ff750d
Move FreeType license file from LazUtils to FreeType directory. Issue #39657 .
2022-02-25 12:24:58 +02:00
mattias
17614c2ea5
lazutils: updated fpmake
2022-02-24 12:57:34 +01:00
mattias
26c9421318
updated Makefiles
2022-02-24 12:55:45 +01:00
Mattias Gaertner
900cfcb27e
Merge branch 'lazutils_dep_fcl-image_remove' into 'main'
...
Removing the dependency of the LazUtils package on the fcl-image package
See merge request freepascal.org/lazarus/lazarus!63
2022-02-24 11:53:51 +00:00
Juha
28dc8193a3
LazUtils: Add a helper function RenderHTML2Text for class THTML2TextRenderer.
2022-02-06 12:38:47 +02:00
Sergey Larin
8a185d4e79
Removing the dependency of the LazUtils package on the fcl-image package
2022-01-26 16:33:00 +03:00
Juha
b7d8333fd9
LazUtils: Prevent a zombie process with openDocument and openURL. Issue #35527 .
2022-01-23 02:46:53 +02:00
Bart
4b313d25b3
LazUtf8: optimize Utf8StringReplace. Issue ##39576. Do NOT merge to 2.2 fixes!
2022-01-22 18:32:41 +01:00
Bart
24bb2eb1a4
LazUtf8: small optimization of Utf8EscapeControlChars.
2022-01-22 14:55:25 +01:00
Bart
0ff1e5d2a7
LazUtf8: pass language string parameters as const. Patch by Alexey Torgashin. Issue ##39577
2022-01-22 14:25:35 +01:00
Bart
242f0ac056
LazUtf8: faster implementation Utf8EscapeControlChars based upon idea by Alexey Torgashin. Issue #39573 .
2022-01-19 15:38:43 +01:00
mattias
f97a493801
updated makefiles
2022-01-16 21:42:24 +01:00
Martin
fb84c05582
LazCollections: compiler warnings
2022-01-09 01:17:24 +01:00
Bart
9b61164125
LazUtils: Masks: move the logic of #a9457c2f2bd1412ef2c8ed9dc7e468eff6453bf4 to CompileAnyCharOrNone.
2022-01-02 13:20:37 +01:00
Bart
a9457c2f2b
LazUtils: Masks: if mocSet, mocRange of mocAnyCharOrNone is enabled an unescaped '[' must always start such a construct and cannot be a literal.
2022-01-01 13:20:42 +01:00
Martin
7a876814d5
LazLogger: fix getting command line param. To not return include "=" from --debug-enable=foo. Issue #39520
2021-12-29 17:08:38 +01:00
Bart
18b5c2d3e2
LazUtf8: use PopCnt in Utf8LengthFast if instructionset supports it (currently X86 with -CpCOREI or higher).
2021-12-28 16:15:01 +01:00
Bart
71d44be64a
LazUtf8: use unsigned variables in Utf8LengthFast.
2021-12-28 14:29:01 +01:00
Bart
cb9d685f79
LConvEncoding: reverts #05765da982ab46e2486c6932648c71fd692a54d5 and #01e627e35da5030ccea4406cffbdf5b67b85b0b9 and resolves issue #39348 in a different way (by always setting the target's codepage when converting to UTF8).
2021-12-16 22:11:56 +01:00
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