Martin
0fff8e203f
LazUtils: rename trNoError (TConvertResult) to trSuccess
2025-02-28 15:37:06 +01:00
Juha
994f82510f
LazUtils: Fix newly introduced bugs in UTF8StringReplace.
2025-02-24 17:41:45 +02:00
Juha
da35b602da
LazUtils: Use SizeInt variables in UTF8StringReplace.
2025-02-23 01:00:50 +02:00
Juha
207cf6fe13
LazUtils: Optimize function UTF8StringReplace. Speeds up some cases a lot!
2025-02-22 22:50:15 +02:00
Juha
4ac85baf37
LazUtils: Fix UTF8StringReplace when Pattern and LowerCase(Pattern) have different lengths. Issue #41291 .
2025-02-22 15:02:17 +02:00
wp_xyz
1014cd330f
LazUtils: Fix calculation error in function PolyBezierArcPoints (unit GraphMath). Issue #41400 . Fix typos in comments.
2025-02-03 12:08:57 +01:00
wp_xyz
1dcfd1a774
LazUtils: Fix calculation error in function LineEndPoint (unit GraphMath). Issue #41400 .
2025-02-03 10:30:08 +01:00
Juha
28ba5306c3
LCL: Add a new function SelectInFolder in LclIntf. Use it in source editor's StatusBar.
2025-02-01 18:28:44 +02:00
n7800
170c75784c
LazUtils/TryCreateRelativePath: Improved checking for double period (indicating parent folder) in paths
2025-01-31 18:37:07 +00:00
Juha
476da882fa
Delete some deprecated functions. Inspired by issue #41363 .
2025-01-31 13:50:35 +02:00
rich2014
05cc198468
IDE/LazFileUtils: fix in GetDarwinNormalizedFilename() #41332
2025-01-13 23:50:43 +08:00
Juha
c78a1ffc83
LazUtils: Improve functions UTF8SwapCase and UTF8ProperCase.
2024-12-29 16:37:23 +02:00
Juha
277cc26bdc
LazUtils: Optimize function UTF8StringReplace a little.
2024-12-29 12:09:01 +02:00
Juha
c80fcf7e17
LazUtils tests: Add a test for UTF8StringReplace. Shorten function names.
2024-12-29 10:54:02 +02:00
Juha
4c1a98b6fa
LazUtils: New implementation of UTF8StringReplace. Issue #41291 .
2024-12-28 22:15:41 +02:00
Juha
ef08272eb6
LazUtils, LConvEncoding: Fix CP932 (Shift_JIS). Issue #41277 , patch by rasberryrabbit.
2024-12-25 02:25:58 +02:00
Martin
f856a8cc8c
LazUtils: Added GetLazNormalizedFilename
2024-12-12 13:18:35 +01:00
mattias
6fa805fb47
updated makefiles
2024-10-22 00:31:29 +02:00
mattias
b977977c8d
set main version to 4.99
2024-10-05 22:03:23 +02:00
Martin
4e7251cd25
LazLogger: missing "const" for array param
2024-10-03 00:23:16 +02:00
Maxim Ganetsky
084ed1543f
Lazutils: use fpc_finalize instead of obsolete fpc_decref in TTypedMap, patch by Rika, issue #41156
2024-09-26 23:10:03 +03:00
Bart
e76c844eee
LazStringUtils: deprecate LazIsValidIdent and use SysUtils.IsValidIdent in it's implementation.
2024-09-04 13:02:16 +02:00
wp_xyz
7740a84766
LazUtils/GraphMath: Optimization of Distance function (issue #41104 ). Add a FloatPoint-FloatPoint overload.
2024-08-31 18:24:57 +02:00
rich2014
27063a7dca
Cocoa: improve in UTF8CodepointCount()
2024-08-30 21:32:05 +08:00
rich2014
c8a1f93a6e
LazUtf8: UTF8CodepointCount() added, which support combining code point
2024-08-29 21:27:20 +08:00
wp_xyz
6ca87f810b
LazUtils/Graphmath: Fix incorrect Distance() function for vertical lines. Issue #41098
2024-08-27 22:35:36 +02:00
Martin
14514dc97f
LazUtils: use TSysCharSet / See MR !310
2024-08-21 22:35:54 +02:00
n7800
cc3fc445a5
LazUtils: Allow to specify replacement character in UTF8FixBroken
2024-08-12 14:16:50 +00:00
Juha
75a0f34d48
LazUtils: Don't initialize tables in UTF8LowerCaseViaTables. It is done in UnicodeLowercase. Issue #41072 , by Alexey Torgashin.
2024-08-12 11:28:29 +03:00
Juha
e7763dbb0c
LazUtils: Deprecate Utf16StringReplace(). FPC now has good replacements. Issue #41068 , by Alexey Torgashin.
2024-08-12 10:04:24 +03:00
Juha
15b22dd410
LazUtils: Replace a faster IndexWord() in UTF16PosP. Issue #41069 , by Alexey Torgashin.
2024-08-12 10:01:33 +03:00
Juha
27ae911ab9
Lazutils: In UnicodeLowercase initialize tables only when needed. Issue #41060 , by a-v-o-dev.
2024-08-11 11:01:37 +03:00
Bart
27535e6d4a
LazUtils: simplify TryGetSymlinkTarget for fpc >= 3.3.1 (used in ReadAllLinks on Windows).
2024-08-08 21:52:03 +02:00
Maxim Ganetsky
6e4a0dd2ae
LazUtils: only transform relevant alphabet characters in LazUTF16.UnicodeLowercase function, issue #41056
2024-08-07 00:39:08 +03:00
Bart
1ba49f1940
LazUtils: use TryGetSymlinkTarget consistently in ReadAllLinks on Windows.
2024-08-03 22:36:17 +02:00
Bart
5864b5984c
LazUtils: implement ReadAllLinks for Windows. Part of issue #40689
2024-08-03 19:30:52 +02:00
mattias
f286fac16b
updated makefiles
2024-07-15 10:50:53 +02:00
Juha
c43cda1cc5
LazUtils: Fix a typo in UTF8LowerCaseFast. Merge request !303 .
2024-07-11 00:20:24 +03:00
Juha
134275eeec
LazUtils: Move funcs QuickUtf8UpperCase and QuickUtf8LowerCase from FpDbgUtil to LazUTF8 and name them differently. Part of issue #40893 .
2024-06-29 11:55:58 +03:00
Zoë Peterson
14fdb7e6f9
Removed DimPercent/DimColor calculation. The existing grayscale calculation doesn't change the icon if it's already grayscale, and that was a remnant from an earlier patch that simulated the alpha that ddesDarken does.
2024-06-12 22:54:32 +00:00
Zoë Peterson
b8bb9527ef
Switched documentation from an inline comment in graphtype.pp to the fpdoc graphtype.xml
2024-06-12 22:54:32 +00:00
Zoë Peterson
1ec73247e5
Added a new global variable, DisabledDrawEffectStyle, that controls how TRawImage.PerformEffect(gdeDisabled) works to improve the appearance on colored backgrounds and in dark mode apps.
...
There are three possible values:
- ddesGrayscale
This is the default and matches the existing behavior of just converting the pixels to gray.
- ddesDarken
Convert the image to fully black pixels with alpha transparency. This roughly matches ddesGrayscale on traditional gray backgrounds but lets colored backgrounds through.
- ddesLighten
Convert the image to fully white pixels with alpha transparency. This is the dark mode equivalent of ddesDarken.
Existing alpha transparency is factored into the conversion. The constants used for the visibility calculation roughly match what other macOS apps use.
2024-06-12 22:54:32 +00:00
Martin
7bccd11e8d
LazLogger: fixed overflow in DbgHex
2024-05-22 15:44:05 +02:00
wp_xyz
4186cfe014
LazUtils: Deprecate IsNumber(), rename to IsNumeric() for better clarity. Check for empty input string, issue #40935 , patch by Ph B.
2024-05-01 12:10:49 +02:00
Juha
fde93a7b25
LazBuild: Improve colored output. Issue #40878 , patch by n7800.
2024-04-20 08:21:31 +03:00
mattias
66d72908dc
lazutils: comment
2024-04-13 11:03:43 +02:00
Juha
be06ee3c92
LazBuild: Better colored output. Move unit LazTTY to LazUtils. Issue #40878 , patch by Anton Kavalenka.
2024-04-11 10:34:46 +03:00
Juha
ca71aeb4e4
Move CreateFirstIdentifier, CreateNextIdentifier and MergeSort from LCLProc to LazUtilities.
2024-04-08 16:32:07 +03:00
Martin
7fc68aa656
LazUtils: XmlConfig, fix saving default (delete) for enum values
2024-03-12 13:40:13 +01:00
Juha
4967237fb1
LazUtils: Add simple functions SaveStringToFile and LoadStringFromFile. Rename SaveStringToFile in DialogProcs.
2024-03-11 01:24:15 +02:00