marco
b6048862b8
* fix for mantis 16052 RFC4122 compliance of own random GUID creation.
...
git-svn-id: trunk@15023 -
2010-03-20 13:03:45 +00:00
marco
be98b13554
* fix for 11263, changed fileread and fd_zero to out using $modeswitch.
...
git-svn-id: trunk@14965 -
2010-03-01 22:35:14 +00:00
joost
151fab0548
* Moved TEventType from eventlog.pp tot sysutils
...
* Added empty TCustomApplication.Log method
git-svn-id: trunk@14960 -
2010-03-01 13:15:36 +00:00
marco
706f0b7975
* New more delphi compat intstrtotime by Bart Broersma #15505 + test
...
git-svn-id: trunk@14854 -
2010-02-03 15:10:14 +00:00
Jonas Maebe
89e4e0fd25
* only wake up readers if all recursive write locks have been freed
...
git-svn-id: trunk@14831 -
2010-01-29 21:56:46 +00:00
Jonas Maebe
13e8b3f23e
* don't give a "NoThreadError" for any default rtl/basicevent* routines,
...
so the TMultiReadExclusiveWriteSynchronizer routines can be safely
executed even with the default thread manager -> removed ismultithread
checks, so that it keeps working even if ismultithread is set to true
between acquiring and freeing a lock (mantis #15619 )
git-svn-id: trunk@14830 -
2010-01-29 21:01:11 +00:00
Jonas Maebe
e4858445c7
* make sure fwritelocked remains set correctly when using recursive write locks
...
git-svn-id: trunk@14828 -
2010-01-29 18:10:10 +00:00
Jonas Maebe
2c477269d0
* added a readbarrier after acquiring a read or write lock on
...
TMultiReadExclusiveWriteSynchronizer, to ensure that out-of-order
execution cannot already perform some reads inside the critical section
before the lock has been acquired
- removed now unnecessary read barrier before releasing a read lock
git-svn-id: trunk@14820 -
2010-01-27 22:23:41 +00:00
florian
50d1008577
* superfluos empty lines removed
...
git-svn-id: trunk@14596 -
2010-01-10 13:24:41 +00:00
Jonas Maebe
49f01e7b64
* replaced writelock of TMultiReadExclusiveWriteSynchronizer with a
...
critical section, so that it can be entered recursively just like
the one from TSimpleRWSync + test
- reverted r14593, since the reason for using TRWSync instead of
TMultiReadExclusiveWriteSynchronizer was because the former
supported recursive write locks
git-svn-id: trunk@14594 -
2010-01-10 12:14:21 +00:00
Jonas Maebe
356845ba1e
* set function results for unimplemented generic thread manager routines
...
(to remove warnings)
* don't give a thread error for basicevent and threadevent routines if
isMultiThreaded is false, except for the waiting routines (the new
TMultiReadExclusiveWriteSynchronizer creates/sets such events in the
constructor, which caused thread manager errors in case cthreads was
not used under unix)
* don't perform any actual locking in TMultiReadExclusiveWriteSynchronizer
routines if isMultiThreaded is false (in order to avoid the errors
described above)
+ added generic RTLeventResetEvent stub
git-svn-id: trunk@14592 -
2010-01-10 11:04:05 +00:00
paul
9bad162368
rtl: fix crash in TMultiReadExclusiveWriteSynchronizer.Beginwrite
...
git-svn-id: trunk@14591 -
2010-01-10 09:35:37 +00:00
paul
538cf8667b
rtl: fix compilation under windows
...
git-svn-id: trunk@14590 -
2010-01-10 06:28:50 +00:00
Jonas Maebe
8da0a031bf
* fixed memory leak in new TMultiReadExclusiveWriteSynchronizer
...
(fwaitingwriterlock was not freed)
* fixed typo in comment
* free all memory in trwsync.pp test
git-svn-id: trunk@14588 -
2010-01-09 23:14:53 +00:00
Jonas Maebe
106baa8b2f
* optimized version of TMultiReadExclusiveWriteSynchronizer that allows
...
concurrent readers (mantis #14451 )
git-svn-id: trunk@14587 -
2010-01-09 23:00:45 +00:00
marco
8e9a7e14ad
* Revised yesterday solution to a more general one. Executeprocess gets
...
another parameter, a set type with flags, default = []
git-svn-id: trunk@14572 -
2010-01-07 20:49:28 +00:00
paul
5cc182ac07
rtl: fix FormatFloat to skip first spaces
...
git-svn-id: trunk@14490 -
2009-12-28 15:53:35 +00:00
florian
230142f08b
* change length parameter of CompareMem/CompareMemRange into PtrUInt, resolves #15190
...
* use CompareByte inside these routines instead of simple handmade code
git-svn-id: trunk@14435 -
2009-12-13 11:42:05 +00:00
michael
01ed4a6745
* Implemented OnBeep to install custom beep handler
...
git-svn-id: trunk@14254 -
2009-11-22 17:33:56 +00:00
marco
5163b44ac6
* Patch for "formatsettings" overloads of currency functions, mantis 15067
...
git-svn-id: trunk@14162 -
2009-11-13 09:10:24 +00:00
marco
b3ea1668db
* improvements to sysuitls date/time formatting routines: (Mantis 14905,Sergei)
...
- Adds threadsafe (Delphi-compatible) versions of DateToStr,
TimeToStr, DateTimeToStr, FormatDateTime.
- Core functionality moved to DateTimeToString, which directly
uses 'out' parameter in order to avoid unnecessary result copying.
- Modified the code so no temporary AnsiStrings are used (speed).
- Fixes a bug which would cause infinite recursion if
(Short|Long)DateFormat variable would contain 'd' character or,
likewise, (Short|Long)TimeFormat would contain 't'.
- Fixes numerous small Delphi compatibility issues, like: empty format
string has the same effect as 'C'; overlong tokens treated as the
longest possible ones (e.g. 'ddddddddd' is the same as 'dddddd');
'AM/PM' is output preserving its case, etc.
- minor reformating
git-svn-id: trunk@14116 -
2009-11-08 15:07:00 +00:00
marco
887d8a9d92
* replace encodedate/time by try variants mantis 14969
...
git-svn-id: trunk@14110 -
2009-11-08 11:43:01 +00:00
ivost
10e78efaac
* removed commented code in TryStringToGUID
...
git-svn-id: trunk@14060 -
2009-11-04 23:04:30 +00:00
ivost
537825dee9
* fixed TryStringToGUID: this function throwed an exceptions
...
git-svn-id: trunk@14059 -
2009-11-04 23:02:32 +00:00
marco
8bc0583045
* trystrto* variants with formatsettings.
...
git-svn-id: trunk@14018 -
2009-11-03 21:20:10 +00:00
ivost
bab5c5d8a3
* parameter "Separator" of function TryStrToDate was not passed to IntStrToDate
...
git-svn-id: trunk@13959 -
2009-10-26 17:34:07 +00:00
michael
ed950da9cc
* Forgot raise statement in strtodate (thanks to Denis Golovan)
...
git-svn-id: trunk@13928 -
2009-10-23 10:24:24 +00:00
michael
4c2fe8bc31
* Correctly split date/time parts when dateseparator is a space
...
git-svn-id: trunk@13888 -
2009-10-17 11:18:16 +00:00
michael
cb29ddbd04
* TryStrToTime/TryStrToDate no longer need to catch exceptions
...
git-svn-id: trunk@13865 -
2009-10-16 09:31:09 +00:00
michael
dadd6631ad
* Patch from Alex Rayne (bug ID 14622) to provide some overloaded versions of the strtodate/strtotime functions
...
git-svn-id: trunk@13864 -
2009-10-16 08:16:55 +00:00
florian
44f588b7ad
* fixed nested comment warning
...
git-svn-id: trunk@13450 -
2009-07-26 12:55:01 +00:00
florian
5d8835861c
+ unicode functions for sysutils, makes tunistr6.pp compiling
...
git-svn-id: trunk@13402 -
2009-07-17 14:05:19 +00:00
florian
ee49e8acb6
* SScanf uses StrToFloat to convert the string to a float so it has to use DecimalSeparator to parse the string
...
* test adapted to use DecimalSeparator to create the test string
git-svn-id: trunk@13399 -
2009-07-16 21:12:45 +00:00
florian
87df99a53d
* reverted partially r11598 because it breaks delphi compatibility and e.g. tw3721.pp
...
git-svn-id: trunk@13398 -
2009-07-16 21:01:27 +00:00
Jonas Maebe
55578e8226
* fixed FloatToDecimal() for inf/nan (mantis #14143 , thanks to
...
Sergei Gorelkin for the test program)
git-svn-id: trunk@13394 -
2009-07-16 13:11:36 +00:00
florian
6dfd5cb5b8
* fix ExtractFileDrive for \\server\share\path\file: it should return \\server\share
...
* made test easier to debug
git-svn-id: trunk@13392 -
2009-07-15 20:40:34 +00:00
ivost
91ae3e8788
* added TryStringToGuid function (former StringToGuid is using this now)
...
git-svn-id: trunk@13237 -
2009-06-05 20:35:12 +00:00
ivost
db429f2d48
* added GUID_NULL constant
...
git-svn-id: trunk@13236 -
2009-06-05 20:23:38 +00:00
ivost
b5be9e008e
* added GuidCase function to intf/guid helper functions
...
git-svn-id: trunk@13234 -
2009-06-05 14:36:43 +00:00
Jonas Maebe
f6d452c2c0
* remove the RTL's installed signal handlers at the end of the system
...
unit's initialization code in case we're in a library
+ implemented InquireSignal(), AbandonSignalHandler(), HookSignal() and
UnhookSignal() in the sysutils unit
* for Kylix compatibility, these routines support operating on
SIGINT and SIGQUIT as well, although they are not hooked by default
by FPC. The run time errors/exception codes for these signals are
resp. 217 and 233 (same as in Kylix; I changed ENoWideStringSupport
to 234).
* changed the BSD syscall version of fpsigaction to use pointer
rather than "var" arguments (compatible with other targets, and
required to be able to pass nil arguments inside the system unit)
-> together fixes mantis #12704
git-svn-id: trunk@13077 -
2009-05-02 09:40:44 +00:00
Jonas Maebe
8cae53bb18
* fixed errors with parsing negative, >$99 and invalid BCD numbers in
...
BCDToInt() (patch from Milla, mantis #13512 )
git-svn-id: trunk@13052 -
2009-04-27 16:46:42 +00:00
Jonas Maebe
e8edc31a89
* don't insert thousandseparator if it is #0 (mantis #13552 , patch by
...
Jesus Reyes)
git-svn-id: trunk@13028 -
2009-04-23 19:16:49 +00:00
joost
51b49d324e
* Implemented function ExeSearch
...
git-svn-id: trunk@12947 -
2009-03-22 10:02:24 +00:00
joost
2c7d05d210
* Added ImplicitCurrentDir : Boolean = True parameter to FileSearch
...
git-svn-id: trunk@12946 -
2009-03-22 09:35:48 +00:00
Jonas Maebe
8d2f3946e0
* fixed TextToFloat() in case ThousandSeparator = DecimalSeparator, based
...
on patch by Bart Broersma (mantis #13307 )
git-svn-id: trunk@12885 -
2009-03-14 15:20:46 +00:00
Jonas Maebe
f13006c7f2
* changed the output parameters of a bunch of *tofloat() and
...
trystrtocurr() from var to out (mantis #13289 )
git-svn-id: trunk@12862 -
2009-03-07 15:17:58 +00:00
ivost
0438667eed
* fixed bug #5800
...
* const s: string = icorbainterface; is possible now
* as operator is working now with corba interfaces
* supports helper function is working now with corba interfaces
git-svn-id: trunk@12729 -
2009-02-09 00:35:09 +00:00
Jonas Maebe
dc2d1c6926
* fixed (harmless) range check errors
...
* fixed indentation
git-svn-id: trunk@12709 -
2009-02-07 22:25:07 +00:00
joost
4fc5d5dbef
* Show provided invalid date in StroToDate error messages
...
* Show a proper error-message if an empty string is supplied to StrToDate
git-svn-id: trunk@12452 -
2008-12-28 22:37:59 +00:00
yury
5ffec2d876
* Fixed notes: Virtual method X has a lower visibility (protected) than parent class (public).
...
git-svn-id: trunk@12353 -
2008-12-12 15:07:05 +00:00
michael
a469e84820
* And yet another extra test plus fix
...
git-svn-id: trunk@12335 -
2008-12-11 09:04:48 +00:00
michael
6d93a762fd
* And once more fixed formatfloat. All results consistent with Delphi now
...
git-svn-id: trunk@12323 -
2008-12-10 20:39:16 +00:00
michael
87a6193f4f
* Hopefully fixed formatfloat negative value bugs once and for all
...
git-svn-id: trunk@12303 -
2008-12-05 10:54:22 +00:00
michael
f64ec1faa6
* removed debug statement
...
git-svn-id: trunk@12088 -
2008-11-14 13:06:45 +00:00
michael
0d53564797
* Fixed bug #12385
...
git-svn-id: trunk@12087 -
2008-11-14 13:04:51 +00:00
Jonas Maebe
dbbd75ca47
* fixed setting EInoutError.ErrorCode (mantis #12575 , thanks to
...
Bart Broersma for the analysis)
git-svn-id: trunk@12037 -
2008-11-09 09:46:47 +00:00
michael
65637e301f
* Fixed strtotime. Last character was never taken into account
...
git-svn-id: trunk@12005 -
2008-11-01 11:05:21 +00:00
florian
20fd2d692f
o patch by Markus Beth
...
* improves ReadInteger speed
* unified ChPos variable casing
git-svn-id: trunk@11746 -
2008-09-11 13:41:54 +00:00
florian
b178b08ba7
Merged revisions 11665-11738 via svnmerge from
...
http://svn.freepascal.org/svn/fpc/branches/unicodestring
........
r11665 | florian | 2008-08-30 13:30:17 +0200 (Sat, 30 Aug 2008) | 1 line
* continued to work on unicodestring type support
........
r11666 | florian | 2008-08-30 19:02:26 +0200 (Sat, 30 Aug 2008) | 2 lines
* expectloc for wide/ansi/unicode strings is LOC_CONSTANT or LOC_REGISTER now
........
r11667 | florian | 2008-08-30 20:42:37 +0200 (Sat, 30 Aug 2008) | 1 line
* more unicodestring stuff fixed, test results on win32 are already good
........
r11670 | florian | 2008-08-30 23:21:48 +0200 (Sat, 30 Aug 2008) | 2 lines
* first fixes for unix bootstrapping
........
r11683 | ivost | 2008-09-01 12:46:39 +0200 (Mon, 01 Sep 2008) | 2 lines
* fixed 64bit bug in iconvenc.pas
........
r11689 | florian | 2008-09-01 23:12:34 +0200 (Mon, 01 Sep 2008) | 1 line
* fixed several errors when building on unix
........
r11694 | florian | 2008-09-03 20:32:43 +0200 (Wed, 03 Sep 2008) | 1 line
* fixed unix compilation
........
r11695 | florian | 2008-09-03 21:01:04 +0200 (Wed, 03 Sep 2008) | 1 line
* bootstrapping fix
........
r11696 | florian | 2008-09-03 21:07:18 +0200 (Wed, 03 Sep 2008) | 1 line
* more bootstrapping fixed
........
r11698 | florian | 2008-09-03 22:47:54 +0200 (Wed, 03 Sep 2008) | 1 line
+ two missing compiler procs exported
........
r11701 | florian | 2008-09-04 16:42:34 +0200 (Thu, 04 Sep 2008) | 2 lines
+ lazarus project for the linux rtl
........
r11702 | florian | 2008-09-04 16:43:27 +0200 (Thu, 04 Sep 2008) | 2 lines
+ set unicode string procedures
........
r11707 | florian | 2008-09-04 23:23:02 +0200 (Thu, 04 Sep 2008) | 2 lines
* fixed several type casting stuff
........
r11712 | florian | 2008-09-05 22:46:03 +0200 (Fri, 05 Sep 2008) | 1 line
* fixed unicodestring compilation on windows after recent unix changes
........
r11713 | florian | 2008-09-05 23:35:12 +0200 (Fri, 05 Sep 2008) | 1 line
+ UnicodeString support for Variants
........
r11715 | florian | 2008-09-06 20:59:54 +0200 (Sat, 06 Sep 2008) | 1 line
* patch by Martin Schreiber for UnicodeString streaming
........
r11716 | florian | 2008-09-06 22:22:55 +0200 (Sat, 06 Sep 2008) | 2 lines
* fixed test
........
r11717 | florian | 2008-09-07 10:25:51 +0200 (Sun, 07 Sep 2008) | 1 line
* fixed typo when converting tunicodestring to punicodechar
........
r11718 | florian | 2008-09-07 11:29:52 +0200 (Sun, 07 Sep 2008) | 3 lines
* fixed writing of UnicodeString properties
* moved some helper routines to unicode headers
........
r11734 | florian | 2008-09-09 22:38:55 +0200 (Tue, 09 Sep 2008) | 1 line
* fixed bootstrapping
........
r11735 | florian | 2008-09-10 11:25:28 +0200 (Wed, 10 Sep 2008) | 2 lines
* first fixes for persisten unicodestrings
........
r11736 | florian | 2008-09-10 14:31:00 +0200 (Wed, 10 Sep 2008) | 3 lines
Initialized merge tracking via "svnmerge" with revisions "1-11663" from
http://svn.freepascal.org/svn/fpc/trunk
........
r11737 | florian | 2008-09-10 21:06:57 +0200 (Wed, 10 Sep 2008) | 3 lines
* fixed unicodestring <-> variant handling
* fixed unicodestring property reading
........
git-svn-id: trunk@11739 -
2008-09-10 20:14:31 +00:00
michael
ca4fa01f8f
* Fixed formaatfloat for negative numbers (Bug ID 11711) objpas/sysutils/sysstr.inc
...
git-svn-id: trunk@11680 -
2008-08-31 22:25:19 +00:00
marco
03fd61b68d
* booltostr overload
...
git-svn-id: trunk@11600 -
2008-08-17 13:26:02 +00:00
marco
24d8341ed6
* (IDE-sysutils) dateutil has now unpacktime/packtime alike to Delphi dt.
...
* newstr and disposestr for pshortstring in sysutils. Avoids import order
problems because of duplicate definitions of pstring between objects
and sysutils
git-svn-id: trunk@11598 -
2008-08-17 12:10:35 +00:00
marco
bcfb545837
* deprecation of tsearchrec.pathonly, under ifndef ver2_2 as per 11579
...
git-svn-id: trunk@11402 -
2008-07-18 20:05:32 +00:00
michael
1ea2129c0d
* Changed var to out parameters for strtoint*
...
git-svn-id: trunk@11314 -
2008-07-02 18:00:07 +00:00
giulio
cc08543f57
Patch from Petr Kristan for AnsiStrComp/AnsiStrIComp to fix comparison
...
when both strings are empty and differ after the null character + test.
git-svn-id: trunk@11277 -
2008-06-25 07:07:54 +00:00
michael
767e3fee62
* Patch from Joao Morais to fix the case where only a time is provided
...
git-svn-id: trunk@11199 -
2008-06-05 07:06:47 +00:00
michael
d419c1078a
* GetRandomBytes calls randomize only once, now thread safe too
...
git-svn-id: trunk@11125 -
2008-05-29 13:31:32 +00:00
michael
fb53b5e9f6
* GetRandomBytes calls random only once
...
git-svn-id: trunk@11123 -
2008-05-29 13:16:07 +00:00
michael
26575472b6
* Added GetUSerDir function (ID 11338)
...
git-svn-id: trunk@11074 -
2008-05-24 11:50:26 +00:00
Jonas Maebe
e60e078eb5
* only allow decimalseparator to be used as decimal separator in
...
texttofloat() and friends, rather than both '.' and decimalseparator
(mantis #9126 )
git-svn-id: trunk@11069 -
2008-05-24 08:49:34 +00:00
marco
e57c36eaba
* patch for #11110 , unc drives and forcedirectories from Bart.
...
git-svn-id: trunk@10855 -
2008-05-01 15:41:36 +00:00
Jonas Maebe
2067da9a62
* patch from Giulio Bernardi to fix the generic AnsiStrIComp,
...
AnsiStrLComp and AnsiStrLIComp (mantis #11235 ):
* fixed wrong equality result in case one of the strings
was shorter than the other but matched the start
* AnsiStrLComp and AnsiStrLIComp should ignore embedded #0
characters
git-svn-id: trunk@10846 -
2008-04-30 19:02:01 +00:00
yury
62e616cae0
* Fixed warnings. rtl is warnings and notes free for wince and win32 again.
...
git-svn-id: trunk@10632 -
2008-04-12 13:34:26 +00:00
joost
1a4ee73146
* Added NoWideStringSupport runtime error
...
git-svn-id: trunk@10618 -
2008-04-08 21:19:52 +00:00
michael
d20636a319
* Fix from Petr Kristan to remofe timereformat (kills AM/PM)
...
git-svn-id: trunk@10616 -
2008-04-08 17:37:05 +00:00
marco
99c4e92735
* fix for 11099
...
git-svn-id: trunk@10605 -
2008-04-06 11:14:06 +00:00
michael
33cb576bba
* Patch for arithmetic overflow from Petr Kristan
...
git-svn-id: trunk@10566 -
2008-03-26 15:33:24 +00:00
marco
c8da24f732
* comment fix #10781
...
git-svn-id: trunk@10435 -
2008-03-03 08:28:26 +00:00
micha
83b7f81f81
+ add no-fpu support to compiler/rtl for powerpc-linux (-Cfnone)
...
git-svn-id: trunk@10422 -
2008-03-02 12:59:02 +00:00
florian
c424f27291
* patch by C Western for #10883
...
git-svn-id: trunk@10385 -
2008-02-24 20:00:08 +00:00
peter
3ffcb2244e
* FileSearch needs to check first the file in the
...
current dir
git-svn-id: trunk@10128 -
2008-02-01 07:03:30 +00:00
peter
e08570573f
* fix and cleanup FileSearch
...
git-svn-id: trunk@10115 -
2008-01-30 11:57:23 +00:00
peter
8c0adc7f3d
* fixed also ExtractFileName
...
git-svn-id: trunk@10108 -
2008-01-29 23:30:30 +00:00
peter
496212d5c4
* fixed ExtractFileExt broken after previous commit
...
git-svn-id: trunk@10107 -
2008-01-29 23:23:25 +00:00
peter
f4f3ae84d0
* AllowDirectorySeparators and AllowDriveSeparators typed constants
...
added to allow customization of path and directory parsing in the rtl
* Use the new sets instead of the hardcoded / and \
git-svn-id: trunk@10105 -
2008-01-29 23:04:56 +00:00
peter
3d319a99b8
* made forcedirectories consistent with other file handling
...
to accept both / and \ as spearators
git-svn-id: trunk@10104 -
2008-01-29 22:14:53 +00:00
marco
d7c9bb88d2
* remove some redundant pbyte definitions.
...
git-svn-id: trunk@10097 -
2008-01-29 19:37:41 +00:00
peter
95d0ce1270
* VendorName function added to allow an extra subdirectory
...
to group multiple products
* OnGetVendorName hook, like OnGetApplicationName
* use COMMON_APPPATH for global config files under windows
git-svn-id: trunk@10072 -
2008-01-27 21:40:55 +00:00
Jonas Maebe
200f1e5643
* fixed webtbs/tw10519.pp for CPUs which don't support extended
...
git-svn-id: trunk@9893 -
2008-01-24 10:33:14 +00:00
mazen
7c19e36595
* Added implementation for Julian date computaton.
...
git-svn-id: trunk@9604 -
2007-12-31 16:34:45 +00:00
michael
8793de3166
* Applied patch from Sergei Gorelkin for ComposeDateTime and IncAMonth
...
git-svn-id: trunk@9600 -
2007-12-30 22:20:11 +00:00
michael
d7f94a8282
* Added GetModuleName
...
git-svn-id: trunk@9596 -
2007-12-30 21:50:40 +00:00
michael
eec321b2f8
* Implemented ExtractShortPathName
...
git-svn-id: trunk@9595 -
2007-12-30 21:45:48 +00:00
Jonas Maebe
997d7b33db
* don't override routines hooked by a real widestring manager before
...
sysutils initialised
git-svn-id: trunk@9392 -
2007-12-05 14:28:11 +00:00
peter
6ed3d91989
* CompareText for shortstrings added
...
* optimize CompareText
* use CompareText for case-insenstive compares in the RTL
patches from Sergei Gorelkin
git-svn-id: trunk@9384 -
2007-12-02 18:36:20 +00:00
peter
544cf539e1
* fix for relativepath, fixes #10224
...
git-svn-id: trunk@9312 -
2007-11-21 21:51:42 +00:00
yury
d568718cb0
* Removed UpperCaseTable and LowerCaseTable variables and TCaseTranslationTable type from interface part. These variables are used only by generic upper/lower case conversion routines. They are not used on Windows targets and it is bad idea to let users use these variables. Users must use AnsiLowerCase and AnsiUpperCase routines.
...
git-svn-id: trunk@9301 -
2007-11-20 10:45:50 +00:00
peter
732abba1f2
* all functions use DirSeparators. This is required to be able to have consistent
...
result values that can be used as input values. A problem with inconsitency was
in ForceDirectories where excludetrailingpathdelimiter did not remove a / under win32
and ExtractFilePath found the / as a separator. With the end result an infinite loop.
git-svn-id: trunk@9290 -
2007-11-18 21:40:17 +00:00
Jonas Maebe
1445ca1198
* fixed GetDirs in case the last character of the passed directory
...
= PathDelim (called like that from the compiler)
git-svn-id: trunk@9274 -
2007-11-17 19:53:33 +00:00
yury
220a37b443
* Do not fill generic upcase and lowcase conversion tables for windows targets, because generic ANSI routines are not used here.
...
git-svn-id: trunk@9049 -
2007-11-01 16:15:29 +00:00
yury
7240f723ef
* Fixed warnings.
...
git-svn-id: trunk@9048 -
2007-11-01 16:05:46 +00:00
peter
398363156b
* cache stdout threadvar in catchunhandledexception
...
* retrieve the address of io exception texts instead of assigning to a string
git-svn-id: trunk@8825 -
2007-10-16 19:13:53 +00:00
marco
54d8f93b25
* fix for 9772
...
git-svn-id: trunk@8677 -
2007-09-29 09:18:15 +00:00
marco
827d380691
* pchar(pointer()) isms that were safe.
...
git-svn-id: trunk@8672 -
2007-09-28 21:57:45 +00:00
joost
f6d66e8cf5
* Changed MinDateTime for FloatToDateTime and VariantToDate to 01/01/0001
...
git-svn-id: trunk@8534 -
2007-09-17 21:25:51 +00:00
Jonas Maebe
a57f9e0672
+ added QWord overloads for IntToHex, hexStr, OctStr, binStr
...
git-svn-id: trunk@8332 -
2007-08-29 12:06:54 +00:00
Jonas Maebe
9238ea2850
* fixed potential range errors
...
git-svn-id: trunk@8321 -
2007-08-28 19:01:49 +00:00
Almindor
1e4dd0685a
* fix bug #9438
...
git-svn-id: trunk@8288 -
2007-08-16 09:58:35 +00:00
Jonas Maebe
49a545aef2
* fixed FormatFloat for non-x86 (mantis 9384)
...
git-svn-id: trunk@8220 -
2007-08-04 17:38:48 +00:00
florian
baafccf372
+ added some constants missed for compatibility, resolves #9182
...
git-svn-id: trunk@8121 -
2007-07-21 20:19:29 +00:00
michael
07fdede9b8
* Defined ExceptionClass and ExceptObjProc for Delphi compatibility (bug 8459)
...
git-svn-id: trunk@7850 -
2007-06-29 20:16:44 +00:00
florian
e1125c3f7f
+ StrNextChar implemented
...
git-svn-id: trunk@7803 -
2007-06-24 20:30:55 +00:00
florian
628452f04d
+ ReplaceDate
...
git-svn-id: trunk@7794 -
2007-06-24 15:15:53 +00:00
yury
5afc9355f8
* use proper runtime error codes for EIntfCastError and ESafecallException exceptions.
...
git-svn-id: trunk@7723 -
2007-06-18 17:38:07 +00:00
michael
79b572ccae
* Fixed bug #8187
...
git-svn-id: trunk@6990 -
2007-03-24 23:36:35 +00:00
michael
74cbe82e3f
* Fixed TimeToStr and DateTimeToStr so they are delphi compatible
...
git-svn-id: trunk@6986 -
2007-03-24 22:43:02 +00:00
Jonas Maebe
6eb320506b
* fixed range error in incmonth()
...
git-svn-id: trunk@6858 -
2007-03-14 19:48:08 +00:00
Jonas Maebe
d3736f563f
* fixed several range errors
...
git-svn-id: trunk@6857 -
2007-03-14 19:47:53 +00:00
Tomas Hajny
5e1a7997ee
+ FileTruncate allows 64-bit parameter
...
git-svn-id: trunk@6727 -
2007-03-05 23:47:10 +00:00
marco
e56abc47b7
* formatfloat patches for #8388 and 8386
...
git-svn-id: trunk@6697 -
2007-03-03 14:02:20 +00:00
Jonas Maebe
ccbee142bc
* added THandle() typecast around feInvalidHandle value (-1)
...
for OS'es where THandle is an unsigned type
git-svn-id: trunk@6322 -
2007-02-03 18:09:00 +00:00
yury
2602ceb7e4
* Fixed StrToTime. TimeAMString and/or TimePMString can be empty on some locales and StrToTime crashed in this case.
...
git-svn-id: trunk@5957 -
2007-01-13 23:00:55 +00:00
Jonas Maebe
241645961d
* converted CP850UCT and CP850LCT into #-notation (mantis #8104 )
...
git-svn-id: trunk@5952 -
2007-01-13 19:12:02 +00:00
Jonas Maebe
18eaee6ea3
* force tryencodetime to perform calculation using the precision of
...
tdatetime
git-svn-id: trunk@5941 -
2007-01-13 14:58:35 +00:00
yury
3b70222574
* fixed again ffExponent format in FloatToStrFIntl.
...
* updated test for FloatToStr.
git-svn-id: trunk@5940 -
2007-01-13 13:52:17 +00:00
michael
14eaf7200e
* Fixed buf 7168
...
git-svn-id: trunk@5932 -
2007-01-12 20:49:54 +00:00
Jonas Maebe
ab79ccf277
* better fix than the one in r5920
...
git-svn-id: trunk@5926 -
2007-01-12 18:31:11 +00:00
Jonas Maebe
d1c351462d
* fixed FloatToStrFIntl for platforms without extended
...
git-svn-id: trunk@5920 -
2007-01-12 16:27:31 +00:00
michael
fcce3195b6
* TFormatSettings implementation, stage 3 (final)
...
git-svn-id: trunk@5899 -
2007-01-11 20:25:18 +00:00
michael
cab9811e02
* TFormatSettings implementation, stage 2
...
git-svn-id: trunk@5897 -
2007-01-11 20:01:33 +00:00
yury
a4a125e561
* fixed FloatToStrF for ffExponent format.
...
* fixed FloatToStrF for non Extended values.
+ added test for FloatToStr.
git-svn-id: trunk@5894 -
2007-01-11 18:33:15 +00:00
yury
df10089076
* currency is handled directly in StrToCurr, CurrToStr, CurrToStrF functions.
...
* improved Delphi compatibility of FloatToStrF.
git-svn-id: trunk@5879 -
2007-01-11 01:50:33 +00:00
michael
bb9d6120ed
* TFormatSettings implementation, stage 1
...
git-svn-id: trunk@5876 -
2007-01-10 22:32:05 +00:00
florian
35fdb22b91
* FileSetDate now working on Win, see #7837
...
* FileSetDate more Delphi compatible
git-svn-id: trunk@5824 -
2007-01-06 10:48:10 +00:00
marco
4264f5d041
* booltostr now D7 compat.
...
git-svn-id: trunk@5744 -
2006-12-29 21:19:46 +00:00
joost
27213c6873
* Fix strtodate for dates between 1 and 100 AD
...
git-svn-id: trunk@5658 -
2006-12-21 01:49:12 +00:00
Jonas Maebe
5133e7161a
+ newer version of FloatToDecimal
...
* use more precision for extended (Delphi compatible)
git-svn-id: trunk@5517 -
2006-12-01 18:18:23 +00:00
Jonas Maebe
fb22cb9efc
* fixed web bug #7756
...
git-svn-id: trunk@5516 -
2006-12-01 17:00:03 +00:00
Vincent Snijders
c4b458b2f0
* fixed RunErrorToExcept for EControlC and EPrivilege
...
git-svn-id: trunk@5499 -
2006-11-26 21:09:31 +00:00
daniel
7953785d50
* Fix stupid typo.
...
git-svn-id: trunk@5472 -
2006-11-25 09:44:58 +00:00
daniel
76cf70bdbd
* Use proper critical sections.
...
- Remove sysutils dependency by turning exception into runerror, which is
converted into exception anyway if user decides to use sysutils.
git-svn-id: trunk@5471 -
2006-11-25 07:32:36 +00:00
yury
21bd30b47c
* Setting of ErrorCode:=217 in CatchUnhandledException is not needed because it set to 217 in System unit.
...
git-svn-id: trunk@5330 -
2006-11-11 13:39:25 +00:00
florian
2659c32078
* repeat inline in the body
...
git-svn-id: trunk@5257 -
2006-11-05 21:47:29 +00:00
micha
0043aff24d
* fix linux/sysutils 64 bit file handling: make off_t 64 bit
...
git-svn-id: trunk@5152 -
2006-11-01 16:32:12 +00:00
Almindor
0c6e1e4c44
* fixes StrToTime() thanks to jesus
...
git-svn-id: trunk@5100 -
2006-10-30 22:52:56 +00:00
marco
2f8f88f801
* Replacetime. Bug #7680
...
git-svn-id: trunk@5033 -
2006-10-27 18:29:00 +00:00
marco
304be38ec1
* datetotime-def functions (but not yet FormatSettings) + ansidequotedstr (turned
...
out to be extractquotestr wrapper).
git-svn-id: trunk@5032 -
2006-10-27 18:20:02 +00:00
Jonas Maebe
5213992110
* fixed mantis tw7637
...
git-svn-id: trunk@4995 -
2006-10-21 17:11:06 +00:00
Jonas Maebe
908c9741d3
+ added some comments explaining the previous commit
...
git-svn-id: trunk@4950 -
2006-10-17 15:04:40 +00:00
Jonas Maebe
961667784a
* fixed tstrreal3, hopefully didn't break anything else
...
git-svn-id: trunk@4949 -
2006-10-17 13:47:54 +00:00