mattias
1ab29086f8
rtl: fixed indentation
2023-06-06 14:30:07 +02:00
Sven/Sarah Barth
d24eeffa2b
* fix #40293 : have the SysUtils unit use the TArray<> declaration in the ObjPas unit instead of declaring it again
2023-06-03 18:10:45 +02:00
marcoonthegit
8d0b822a27
* check for frac(dt) being slightly lower than a whole number. Patch by Werner P
...
Resolves #40140
2023-04-23 12:32:53 +02:00
marcoonthegit
8e7572faba
* small cleanup, remove redundant result assignment and unused variable (from Lagprogramming on forum)
2023-04-11 14:13:39 +02:00
Michael Van Canneyt
6ff542a13e
* SafeFormat and helper function to convert array of const to string in a safe manner
2023-03-31 22:13:05 +02:00
florian
66891b1d59
* patch by Rika: Implement TCurrencyHelper.Ceil/Floor, resolves #40134
2023-01-31 22:58:51 +01:00
Michaël Van Canneyt
fead1ce818
* Fix compilation
2023-01-31 19:39:30 +01:00
Michaël Van Canneyt
c5af4c420e
* Hopefully fixed GetFileStamps/FileGetDateTimeInfo
2023-01-31 19:05:48 +01:00
florian
a9f9996dc8
+ support leap seconds in TryEncodeTime, resolves #40121
2023-01-30 22:40:15 +01:00
Bi0T1N
eb62a71a5f
Add Delphi-compatible TCurrencyHelper
2023-01-30 13:10:47 +00:00
Pierre Muller
b95bfd07d9
Fix sysutils unit compilation failure for wasm32-wasi wince and possibly more targets
2023-01-27 14:42:05 +00:00
Michaël Van Canneyt
0bad315daf
* Fix TDateTimeInfoRec
2023-01-23 18:09:43 +01:00
Michaël Van Canneyt
735fd20a6a
* (Hopefully) fix compilation for non-win,non-unix platforms
2023-01-23 10:05:18 +01:00
Michael Van Canneyt
d1b2fe1659
* Date/Time info for files (Delphi compatibility)
2023-01-21 13:45:04 +01:00
Michael Van Canneyt
32884082e3
* Checks for directory and special directories
2023-01-19 12:21:56 +01:00
Michaël Van Canneyt
13548088b7
* Implement case-insensitive version of Equals & Contains. Fix issue #40029
2022-12-10 15:18:26 +01:00
Michaël Van Canneyt
d5777174d8
* Optimization of TStringHelper.Split by Rika. Fixes issue #39948
2022-10-13 12:45:30 +02:00
florian
989895c82f
* patch by Bart B: FormatFloat correctly outputs NaN now, resolves #32868
...
+ test
2022-10-11 22:11:33 +02:00
florian
717d38f060
* prettier casing of Str* functions, resolves #39879
2022-08-25 20:40:23 +02:00
marcoonthegit
9ad1995c6d
* Patch by Rika to have a char specific TStringHelper.replace. Probably faster with low number of char matches. closes #39707
...
* also raise rangeerror for startindex<0 in previous committed join() patch.
2022-08-20 16:16:58 +02:00
marcoonthegit
d25daba08a
* Patch from Alexey T. closes #39705
...
* don't use copy in helper.indexof(). Watch those 0 based indexes.
2022-08-18 13:59:00 +02:00
marcoonthegit
533cd82922
* applied patch from Alexey for closes #39704
...
* reviewed checks at start of function to match Delphi in rangecheck errors and other exits
* test for the above.
2022-08-17 18:38:02 +02:00
florian
30f5558bf2
* patch by Rika: optimize TStringHelper.StartsWith / EndsWith, resolves #39706
2022-07-14 22:38:07 +02:00
florian
0122044226
* part of last commit
2022-07-06 20:39:38 +02:00
florian
4fecfe3df3
* fix SysUtils.HashName as proposed by Awkward in #39827 , resolves #39827
...
* adapted to syscodepages.inc for the fixed HashName
2022-07-06 20:38:45 +02:00
marcoonthegit
2df9dd9c14
* another fix for bug #39758 , this time the end of the string
2022-06-05 17:46:58 +02:00
marcoonthegit
5b90eaf2dd
* move char index checks up. fixes bug #39758
2022-06-04 22:40:56 +02:00
Michaël Van Canneyt
cab37732c4
* Avoid memory allocation in IsNullOrWhitespace. Fix issue #39702
2022-05-05 12:04:52 +02:00
marcoonthegit
c203097ec2
* add overload to getenvironmentvariable so that it is also found when windows is before sysutils in the uses list. bug #39448
2022-04-25 14:07:57 +02:00
Sven/Sarah Barth
862cffa087
* 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
2022-04-19 14:24:01 +02:00
Sven/Sarah Barth
d32134dd1a
* fix #39664 : ensure that the 8- and 16-bit signed overloads of IntToHex return the correct number of digits
...
+ added test
2022-04-19 14:24:00 +02:00
Michaël Van Canneyt
30b0d98636
* Change return type of some functions, so -1 can actually be returned, patch by Zeljko Avramovic (issue 39268).
2022-01-22 11:17:44 +01:00
florian
0764158fd1
* reverted TryStrToInt to the old implementation since after the val fixed the changes are not
...
needed anymore as pointed out by Bart B
2022-01-09 18:35:31 +01:00
florian
983fbff871
* proper range checking for TryStrToDWord, should resolve all issues in #39406
2022-01-02 21:46:14 +01:00
florian
435f3a9fe2
* allow a range of Low(Longint) to High(DWord) in TryStrToInt, see also issue #39406
...
* moved test
2022-01-02 21:33:01 +01:00
florian
2a93e65511
* seperator => separator
2022-01-02 13:12:33 +01:00
Sven Barth
2636966e2a
* adjust ToInteger of the Boolean helpers so that it returns the value of either True or False, but not any other value (e.g. in the *Bool types). This is not only Delphi compatible, but also fixes the compilation problem of the one or other 32-bit platform (like PowerPC) after e65b822a.
2021-12-05 00:03:05 +01:00
Sven/Sarah Barth
e65b822a0c
+ add type helpers for the remaining Boolean types (QWordBool and Boolean{8,16,32,64})
2021-12-03 14:52:19 +01:00
Michaël Van Canneyt
b1412ec5c0
* Make hexdigits a global constant
2021-11-30 09:06:41 +01:00
florian
18e0979379
+ Exception.GetBaseException
2021-11-23 23:01:06 +01:00
florian
64c21bb88b
* fix bootstrapping wtih 3.2.2 and -Cpcoreavx2
2021-11-14 23:13:51 +01:00
florian
40df955423
* StrTo* functions are now using the TryStrTo* functions
2021-11-01 14:55:41 +01:00
Nikolay Nikolov
8e730d20db
+ implemented FindFirst, FindNext and FindClose in SysUtils for the WASI platform
2021-10-19 15:39:59 +03:00
Michaël Van Canneyt
1e74c418ae
* Fix integer overflow not being detected. Issue #39406
2021-10-17 12:44:44 +02:00
Nikolay Nikolov
8f95c14827
+ implemented SysUtils.FileGetDate for WASI
2021-10-11 15:08:48 +03:00
Ondrej Pokorny
bce2f26234
* TEncoding.GetEncoding - create unicode encodings, not only MBCS
2021-09-01 09:31:50 +02:00
Ondrej Pokorny
a55794d80d
DateTimeToString: do not write #0 separators
2021-08-11 12:22:29 +00:00
nickysn
b878d461c8
* fixed compilation for i8086 and 8-bit targets after r49622. The conditional
...
ifdef checks for the ordinal helpers rewritten to be less dependendant on
defines, such as CPU16/CPU32/CPU64 and instead use sizeof(integer),
sizeof(nativeint) and sizeof(nativeuint)
git-svn-id: trunk@49634 -
2021-07-23 23:23:47 +00:00
michael
e6a593c5fa
* Patch from Zeljko Avramovic to extend ordinal/float helpers
...
git-svn-id: trunk@49622 -
2021-07-21 11:36:05 +00:00
michael
5cde6facdb
* Patch from Werner Pamler to fix count of digits in periods
...
git-svn-id: trunk@49299 -
2021-05-01 06:32:48 +00:00