Commit Graph

56069 Commits

Author SHA1 Message Date
Michaël Van Canneyt
587c1df60e * Define INVALID_HANDLE_VALUE for Delphi compatibility
(cherry picked from commit ff8511f2f1)
2023-12-17 18:25:47 +01:00
Michaël Van Canneyt
fc6b11720a * Implement ListIndexError
(cherry picked from commit 8fb39925eb)
2023-12-17 18:25:41 +01:00
Michaël Van Canneyt
28d9c6ce56 * Add crossproduct and normalize to TPointF
(cherry picked from commit 7bcc949308)
2023-12-17 18:17:21 +01:00
Michaël Van Canneyt
737aad778f * Missing functions
(cherry picked from commit 24d8478650)
2023-12-17 18:17:10 +01:00
Michaël Van Canneyt
72a709bccc * Forgot CenterAt
(cherry picked from commit bc00d5ae06)
2023-12-17 18:17:05 +01:00
Michaël Van Canneyt
95a3332816 * Add some missing identifiers to TRectF. Fixes issue #40068
(cherry picked from commit e28add8b31)
2023-12-17 18:16:58 +01:00
Michaël Van Canneyt
69de05fab2 * Fix epsilon, add TRectF.FitInto
(cherry picked from commit b48c67f49f)
2023-12-17 18:16:23 +01:00
Michaël Van Canneyt
99f246f982 * Epsilon for Delphi compatibility
(cherry picked from commit a6d3587432)
2023-12-17 18:16:17 +01:00
Rika Ichinose
72eee6001f Remake AdjustLineBreaks.
This version is correct and supposedly better in other ways (except for a bit of clarity maybe).

(cherry picked from commit 1c4151d82e)

edited to work around changes related to the massive unmergable dotted rtl commits.
2023-12-17 18:05:00 +01:00
Sven/Sarah Barth
009b421498 * have the unsigned 32-bit overload of IntToHex use the signed 32-bit one to avoid usage of 64-bit arithmetic (and parameter passing) when it can be avoided
(cherry picked from commit 862cffa087)
2023-12-17 17:58:09 +01:00
florian
18b6588bda * reverted TryStrToInt to the old implementation since after the val fixed the changes are not
needed anymore as pointed out by Bart B

(cherry picked from commit 0764158fd1)
2023-12-17 17:57:59 +01:00
florian
d1166342ca * proper range checking for TryStrToDWord, should resolve all issues in #39406
(cherry picked from commit 983fbff871)
2023-12-17 17:57:49 +01:00
florian
bbffe9e26a * allow a range of Low(Longint) to High(DWord) in TryStrToInt, see also issue #39406
* moved test

(cherry picked from commit 435f3a9fe2)
2023-12-17 17:57:41 +01:00
Michaël Van Canneyt
3828c73678 * Make hexdigits a global constant
(cherry picked from commit b1412ec5c0)
2023-12-17 17:57:37 +01:00
florian
d64f88293f * StrTo* functions are now using the TryStrTo* functions
(cherry picked from commit 40df955423)
2023-12-17 17:56:32 +01:00
Michaël Van Canneyt
5cdb0b1a9e * Fix integer overflow not being detected. Issue #39406
(cherry picked from commit 1e74c418ae)
2023-12-17 17:56:24 +01:00
Michaël Van Canneyt
10c3ff6801 * Add CreateFmt constructor for EInOutArgumentException
(cherry picked from commit 2d3cd5bff2)
2023-12-17 17:08:25 +01:00
Michaël Van Canneyt
d00b2e5c6b * Add some missing exception classes
(cherry picked from commit 6eac18e8c1)
2023-12-17 17:08:13 +01:00
Michaël Van Canneyt
5d687aa7e1 * Patch from Bart B to let TPath.HasValueFileNameChars return index of offending char. Fixes issue #40540
(cherry picked from commit 39d2035db2)
2023-12-17 17:01:57 +01:00
Michaël Van Canneyt
34c9d60a9b * TPath.Combine rework by Bart B. Fixes issue #40513
(cherry picked from commit 63237dd375)
2023-12-17 17:01:45 +01:00
Michaël Van Canneyt
8f10962cf6 * Patch from Bart B to fix TPath.GetRandomFileName. Fixes issue #40528
(cherry picked from commit 3c4a2c7380)
2023-12-17 17:01:33 +01:00
Michaël Van Canneyt
3f41b641b9 * Patch from Bart B to implement TPath.DesktopPath and TPath.AppPath
(cherry picked from commit 92e86cb11d)
2023-12-17 17:01:26 +01:00
Michaël Van Canneyt
222f347238 * ExtractShortPathName
(cherry picked from commit 399f693ebb)
2023-12-17 16:53:02 +01:00
Michaël Van Canneyt
37ddbe642e * Add System.AnsiStrings for Delphi compatibility
(cherry picked from commit f10bdf4012)
2023-12-17 16:52:50 +01:00
Michaël Van Canneyt
d586f0f69f * Correct StuffString for character size in unicodestring
(cherry picked from commit 76909f0894)
2023-12-16 23:33:42 +01:00
Michaël Van Canneyt
0f5129db70 * Faster DupeString by Rika. Fixes issue #39949
(cherry picked from commit 0b3c608d79)
2023-12-16 23:22:55 +01:00
Michaël Van Canneyt
8c5420ad56 * Add TPointF.Zero
(cherry picked from commit b3d3b65bdf)
2023-12-16 23:22:13 +01:00
Michaël Van Canneyt
774ffb4219 * Fix typos, missing sparc
(cherry picked from commit d587f48892)
2023-12-16 23:10:48 +01:00
Michaël Van Canneyt
d41ae0a18d * add TClassicByteDynArray for delphi compatibility
(cherry picked from commit 9904727f75)
2023-12-16 23:10:37 +01:00
Michaël Van Canneyt
23825645fc * Add TClassicStringDynArray for Delphi compatibility
(cherry picked from commit 14fe7203fe)
2023-12-16 23:10:30 +01:00
Michaël Van Canneyt
a6d24ca96b * TOSVersion for Delphi compatibility
(cherry picked from commit 21e99a0a1e)
2023-12-16 23:09:52 +01:00
Michael Van Canneyt
80ace756b5 * SafeFormat and helper function to convert array of const to string in a safe manner
(cherry picked from commit 6ff542a13e)
2023-12-16 23:09:34 +01:00
florian
ba29fe11f6 + Exception.GetBaseException
(cherry picked from commit 18e0979379)
2023-12-16 23:08:46 +01:00
marcoonthegit
3fd86d6d25 * another forgotten git add..... 2023-12-16 21:30:17 +01:00
Michaël Van Canneyt
81b2bc87f4 * Fix compile error for i386-linux
(cherry picked from commit 770c21c0dd)
2023-12-16 19:46:18 +01:00
Michaël Van Canneyt
a7e6fa6bcf * Better string array definitions
(cherry picked from commit b7f9947d26)
2023-12-16 19:46:13 +01:00
marcoonthegit
4e7ddde706 * fix for #40069 add swapdimensions
(cherry picked from commit bfb904640a)
2023-12-16 19:45:56 +01:00
florian
2823485e93 + patch by Rika to implement missing TPointF methods, resolves #40057
+ test by Rika

(cherry picked from commit 69eebe4c0c)
2023-12-16 19:45:49 +01:00
florian
99d402aea8 + operator TPointF./, resolves #40046
(cherry picked from commit 1761d3c09d)
2023-12-16 19:45:27 +01:00
florian
04c6cb5047 * patch by Make TPointF * TPointF a component-wise multiplication, resolves #40042
(cherry picked from commit f1e391fb41)
2023-12-16 19:45:20 +01:00
Ondrej Pokorny
298b488da2 add missing TSizeF, TRectF properties and features
(cherry picked from commit 5109f0ba44)
2023-12-16 19:45:13 +01:00
Michaël Van Canneyt
ab31f82ec2 * Raise exception for fileseek positions that do not fit in longing. Issue #39407
(cherry picked from commit e97e27b8d5)
2023-12-16 19:45:05 +01:00
Nikolay Nikolov
819658f61e + also fill DayOfWeek in the Unix implementation of SysUtils.GetLocalTime
(cherry picked from commit f21273612a)
2023-12-16 19:44:56 +01:00
Michaël Van Canneyt
f762d4e0c2 * fix compilation
(cherry picked from commit c587f5a681)
2023-12-16 19:44:44 +01:00
Michaël Van Canneyt
07e09c6797 * fix compilation
(cherry picked from commit f069f27267)
2023-12-16 19:43:59 +01:00
Ondrej Pokorny
656b00e3c6 win: fix default ShortDateFormat and LongDateFormat
(cherry picked from commit 0ae0e741cf)
2023-12-16 19:39:55 +01:00
Ondrej Pokorny
2be9476fbb win: fix default ShortDateFormat and LongDateFormat
(cherry picked from commit 2c81b44b1c)
2023-12-16 19:39:49 +01:00
Tomas Hajny
9f405f0a69 + TZ variable based offset calculation included for DOS targets
git-svn-id: trunk@47546 -
(cherry picked from commit 91da9eae17)
2023-12-16 19:39:41 +01:00
Tomas Hajny
2cf6115789 + added TZ variable based offset calculation
git-svn-id: trunk@47535 -
(cherry picked from commit 95394d7f98)
2023-12-16 19:39:35 +01:00
marcoonthegit
842074c680 * fix win32 compilation by copying from trunk. 2023-12-16 18:33:19 +01:00