florian
2932787dee
* use SizeInt for counters in math unit, all non-32 bit targets should benefit from this
...
git-svn-id: trunk@48815 -
2021-02-26 22:47:06 +00:00
michael
47be45830c
* Fix issue ID #38462
...
git-svn-id: trunk@48580 -
2021-02-10 11:00:22 +00:00
florian
706e72e1fd
* better error message for runtime errors 202 and 210, resolves #38254
...
git-svn-id: trunk@48438 -
2021-01-27 21:28:55 +00:00
svenbarth
b446023e5b
* use Str instead of IntToStr to avoid overload problems with unsigned types
...
git-svn-id: trunk@48400 -
2021-01-24 14:57:24 +00:00
svenbarth
c3fd06b6b5
* fix for Mantis #38390 : use Val instead of StrToInt to avoid overload problems
...
+ added test
git-svn-id: trunk@48399 -
2021-01-24 14:57:20 +00:00
svenbarth
38cde38177
* make TProxyStream.Check an abstract method; as it is right now one had to override it anyway because it always raised an exception
...
git-svn-id: trunk@48097 -
2021-01-06 20:25:12 +00:00
Károly Balogh
4b3fee38a5
dati.inc: tabs 2 spaces and whitespaces formatting fix. no functional changes
...
git-svn-id: trunk@47808 -
2020-12-18 11:55:21 +00:00
ondrej
706d89d6cc
* GlobalNameSpace must EndWrite before it is released to unlock the critical section
...
git-svn-id: trunk@47636 -
2020-11-29 18:49:36 +00:00
ondrej
de6f3ea9b5
* rename generic TStringBuilder to TGenericStringBuilder to make code tools happy
...
git-svn-id: trunk@47553 -
2020-11-24 09:43:46 +00:00
Tomas Hajny
7169b6d04c
* provided additional information in comments in the include file header
...
git-svn-id: trunk@47547 -
2020-11-24 00:45:00 +00:00
Tomas Hajny
95394d7f98
+ added TZ variable based offset calculation
...
git-svn-id: trunk@47535 -
2020-11-23 01:08:39 +00:00
ondrej
e34e4b452a
* FileSetDate linux compilation
...
git-svn-id: trunk@47399 -
2020-11-12 14:41:43 +00:00
ondrej
8ce015535a
* FileSetDate with TDateTime and UTC for file names
...
git-svn-id: trunk@47398 -
2020-11-12 14:36:12 +00:00
ondrej
3ea339400e
* FileGetDate, FileSetDate linux compilation
...
git-svn-id: trunk@47397 -
2020-11-12 13:55:01 +00:00
ondrej
d899c9fca4
* FileGetDate, FileSetDate with TDateTime and UTC
...
git-svn-id: trunk@47396 -
2020-11-12 13:36:39 +00:00
ondrej
33fe3f3ede
TSearchRec.GetTimeStamp: fix ifdefs
...
git-svn-id: trunk@47395 -
2020-11-12 12:17:46 +00:00
michael
4a38d1b34e
* Fix bug #38063 , corner case in Remove() range checking
...
git-svn-id: trunk@47392 -
2020-11-12 09:27:00 +00:00
ondrej
934f2dc55d
* introduce NowUTC() and GetUniversalTime()
...
git-svn-id: trunk@47306 -
2020-11-04 09:34:08 +00:00
ondrej
a02d676b06
GetLocalTimeOffset: add InputIsUTC parameter to DateTime-aware overloads
...
git-svn-id: trunk@47293 -
2020-11-03 18:15:16 +00:00
ondrej
e10ee5ccb4
GetLocalTimeOffset - fix overload call
...
git-svn-id: trunk@47289 -
2020-11-03 09:46:14 +00:00
ondrej
b51729dac5
File datetime UTC support
...
git-svn-id: trunk@47210 -
2020-10-26 20:39:21 +00:00
ondrej
0d08b98d47
GetLocalTimeOffset: DateTime-aware overloads (Windows supported, Unix is a ToDo). Issue #35710
...
git-svn-id: trunk@47206 -
2020-10-26 12:29:18 +00:00
ondrej
f529253c0b
Deprecate TUnicodeSearchRec.Time and TRawbyteSearchRec.Time
...
git-svn-id: trunk@47204 -
2020-10-26 09:31:54 +00:00
ondrej
34d3429e43
More precise FileAge
...
git-svn-id: trunk@47203 -
2020-10-26 09:15:26 +00:00
michael
5283049a62
* Patch from Werner Pamler to implement TStringSplitOptions.ExcludeLastEmpty
...
git-svn-id: trunk@47068 -
2020-10-09 11:21:30 +00:00
michael
0baf7db5e4
* Fix bug where position is not advanced when calling ReadAnsiString/ReadString
...
git-svn-id: trunk@47061 -
2020-10-07 10:15:13 +00:00
michael
722e8d94cd
* Error when seek fails
...
git-svn-id: trunk@47056 -
2020-10-06 08:09:50 +00:00
michael
d5cbe6809b
* Add GetFileContents and GetFileAsString
...
git-svn-id: trunk@47055 -
2020-10-06 07:59:09 +00:00
ondrej
192bbc07f5
* simplify TThread.RemoveQueuedEvent - decide what to delete and not what to leave (better corresponds with the docs)
...
git-svn-id: trunk@47011 -
2020-09-30 06:56:27 +00:00
svenbarth
a624348692
* when removing a method from the synchronization queue using TThread.RemoveQueuedEvent then both the Code and the Data need to match (Delphi does the same)
...
+ added test
git-svn-id: trunk@47007 -
2020-09-29 17:34:26 +00:00
florian
4c1978c131
* reported by Bart on the mailing list: insert empty line to make clear to which function the comment applies
...
git-svn-id: trunk@46972 -
2020-09-27 13:05:36 +00:00
michael
5198686c29
* Fix bug ID #37814 : correctly initialize max chars
...
git-svn-id: trunk@46951 -
2020-09-25 08:51:21 +00:00
Jonas Maebe
97bf6d6677
* fix formatfloat for 0 in exponential format (based on patch by
...
Jamie Philbrook, mantis #37374 )
git-svn-id: trunk@46778 -
2020-09-05 18:44:57 +00:00
michael
a49c469a5d
* Fix defines for fpdoc
...
git-svn-id: trunk@46763 -
2020-09-04 15:19:28 +00:00
ondrej
bbdf1b5d27
SysUtils: SInvalidDateTime <> SInvalidDateTimeFloat
...
git-svn-id: trunk@46747 -
2020-09-02 09:58:12 +00:00
florian
34cd1212ea
* cosmetics
...
git-svn-id: trunk@46744 -
2020-09-01 20:32:46 +00:00
michael
df9cea5cc4
* Additional fix for GetDelimitedText
...
git-svn-id: trunk@46715 -
2020-08-27 07:35:51 +00:00
svenbarth
11b601d44c
* TThread.Terminate does not have any platform specific behavior (it should only set FTerminated to true and call TerminatedSet), thus move it to the platform independant part
...
Notes:
- Netware had a ThreadSwitch in there, but that is not really required
- some platform were missing the setting of FTerminated to True, thus they'll now do that as well
git-svn-id: trunk@46543 -
2020-08-22 15:56:13 +00:00
michael
51b43aff3f
* Simplified SetDelimitedText
...
git-svn-id: trunk@46531 -
2020-08-21 07:52:42 +00:00
michael
81c7da83a9
* Fix bug ID #0037605 : Setting quotechar to NULL char disables quoting
...
git-svn-id: trunk@46530 -
2020-08-21 07:38:33 +00:00
yury
9a01bcf3dc
* Changed Integer to Longint in definitions of RTTI structures. It fixes typinfo for 16-bit CPUs.
...
git-svn-id: trunk@46503 -
2020-08-20 10:31:56 +00:00
ondrej
38c7659d07
TEncoding: fix base convert functions for empty inputs
...
git-svn-id: trunk@46430 -
2020-08-14 14:59:05 +00:00
ondrej
67acb289d7
TWriter: fix default value handling for Int64/QWord values. Issue #37525
...
git-svn-id: trunk@46337 -
2020-08-09 06:13:06 +00:00
florian
87702d7cda
* cosmetics
...
git-svn-id: trunk@46211 -
2020-08-03 19:58:47 +00:00
michael
b7bd9f3325
* Add TerminatedSet (delphi compatibility, bug ID #37388 )
...
git-svn-id: trunk@45805 -
2020-07-18 22:35:36 +00:00
marco
9cae1830e2
* Remove typedness of feinvalidhandle constant to straight constant with typecast in rvalue. mantis #37358
...
Reasons for original construct unclear and probably historic, added by oro in 2006 as feinvalidhandle : Thandle =-1 and then modified by Jonas for unsigned thandle types in 2007 to feinvalidhandle : Thandle =thandle(-1).
git-svn-id: trunk@45790 -
2020-07-15 10:31:25 +00:00
svenbarth
0f372308b5
* fix comment: define is called HAS_OSCONFIG, not HAVE_OSCONFIG
...
git-svn-id: trunk@45522 -
2020-05-28 14:47:35 +00:00
michael
6b79e2c2c3
* Moved constant to rtlconsts
...
git-svn-id: trunk@45521 -
2020-05-28 09:45:43 +00:00
michael
74e65f77bc
* Fix bug ID #37118
...
git-svn-id: trunk@45444 -
2020-05-20 07:32:09 +00:00
michael
ac208ab689
* clarify dubious case statements
...
git-svn-id: trunk@45425 -
2020-05-18 17:29:48 +00:00