michael
9b21d9a87e
* Inline some functions, bug ID #30905
...
git-svn-id: trunk@34868 -
2016-11-11 09:33:28 +00:00
pierre
a81d2b58f8
Rectify last accessed char in TBigEndianUnicideEncoding.GetChars, fixes test/units/sysutils/tencodingtest.pp failure with -gc option
...
git-svn-id: trunk@34740 -
2016-10-17 10:48:28 +00:00
michael
9f88f52ddf
* Getters/Setters should be private
...
git-svn-id: trunk@34725 -
2016-10-15 20:59:01 +00:00
svenbarth
63f0c7a2c3
Fix for Mantis #30734 : Implement Delphi-compatible functions StrToUInt64(), StrToUInt64Def and TryStrToUInt64 as inline forwarders to the existing respective QWord functions
...
git-svn-id: trunk@34710 -
2016-10-13 17:49:50 +00:00
michael
5810ff8154
* Patch from Maciej Izak for delphi compatible TLocaleOptions (bug ID 30660)
...
git-svn-id: trunk@34683 -
2016-10-08 22:23:34 +00:00
Jonas Maebe
265923a2ee
* several fixes for TMultiReadExclusiveWriteSynchronizer, based on patch by
...
Derek (mantis #28830 )
o ability for a thread to acquire a readlock when it already holds a
write lock, or vice versa
o detect when thread1 releases a lock while it hadn't acquired one
o correct result of beginwrite (return true only when another thread
held/acquired a write lock before the current thread got it)
o extra compared to Derek's patch: replaced some additional
(mostly pre-existing) interlocked*() hacks with proper memory
barriers, made formatting consistent, fixed compilation on platforms
where tthreadid is not an integer type, improved tthreadid hashing
function for 64 bit platforms, fixed some comments
git-svn-id: trunk@34678 -
2016-10-08 20:45:45 +00:00
michael
f4e3068c8b
* AnsiExtractquotedStr returns original string if unquoted
...
git-svn-id: trunk@34495 -
2016-09-10 18:51:02 +00:00
michael
5917b38706
* AnsiDequotedString needs to return empty if it equals "" (bug ID 30220)
...
git-svn-id: trunk@34494 -
2016-09-10 18:43:59 +00:00
michael
b504cc4131
* Make singletons thread-safe
...
git-svn-id: trunk@34483 -
2016-09-10 16:51:50 +00:00
michael
de7e5d73c0
* Patch from Ondrej Pokorny to add GetAnsiBytes/GetAnsiString
...
git-svn-id: trunk@34474 -
2016-09-10 10:44:30 +00:00
nickysn
c205cb03c8
* in SysUtils.DecodeDate(), cast the result of trunc() to longint (trunc
...
normally returns int64 in FPC), before performing any further calculations -
the result always fits in a longint (the date is range checked against
MaxDateTime and that is well within longint limits). This generates faster
code on non 64-bit targets and also fixes i8086 compilation, which previously
failed on register allocation on this function.
git-svn-id: trunk@33946 -
2016-06-10 19:39:44 +00:00
michael
253589b0b6
* Fix compilation for msdos
...
git-svn-id: trunk@33704 -
2016-05-17 18:41:33 +00:00
michael
a5d38c7ba6
* Added TStringBuilder
...
git-svn-id: trunk@33695 -
2016-05-16 15:23:40 +00:00
michael
3e96806f7e
Renamed DisposeAndNil to FreeMemAndNil
...
git-svn-id: trunk@33378 -
2016-03-29 07:55:58 +00:00
michael
92b8bf97c0
* Added DisposeAndNil (bug ID 28895)
...
git-svn-id: trunk@33377 -
2016-03-29 07:33:28 +00:00
michael
231ec77175
* Delphi compatibility classes (Patch by Silvio Clecio, bug ID #29917 )
...
git-svn-id: trunk@33362 -
2016-03-28 12:57:42 +00:00
michael
f380aeb63d
* Fix from Andrea Mauri to make formatfloat delphi-compatible in case of negative zero (bug ID 26465)
...
git-svn-id: trunk@33344 -
2016-03-27 10:40:09 +00:00
michael
bcdfe055a8
* Fix bug ID #26944 (thousandseparator, patch from wp)
...
git-svn-id: trunk@33343 -
2016-03-27 10:13:16 +00:00
michael
2ec2f1fc16
* Fix bug in WrapText (bug ID 26677)
...
git-svn-id: trunk@33342 -
2016-03-27 09:41:23 +00:00
michael
2b077f6af3
* Revert Integer -> SizeInt change where appropriate, capping result when needed
...
git-svn-id: trunk@33327 -
2016-03-26 07:41:34 +00:00
michael
5085009410
* Added GetDriveIDFromLetter, bug ID #28318
...
git-svn-id: trunk@33300 -
2016-03-20 19:04:49 +00:00
marco
66608fec02
* unicode executeprocess from work during Lazarus convention in IJsselstein
...
git-svn-id: trunk@33290 -
2016-03-19 17:59:42 +00:00
Jonas Maebe
2b210335a1
* fixed pointer arithmetic errors in WideStrAlloc/StrBufSize/StrDispose
...
(patch by Iks, mantis #29710 )
git-svn-id: trunk@33271 -
2016-03-18 13:12:11 +00:00
michael
668f8eec91
* Patch from Silvio Clecio to declare EArgumentNilException (Bug ID 29850)
...
git-svn-id: trunk@33258 -
2016-03-16 19:10:10 +00:00
michael
416151a335
* Adapted string routines so they use sizeint instead of integer (bug ID 29814)
...
git-svn-id: trunk@33246 -
2016-03-13 18:59:21 +00:00
michael
671416959d
* Added SameStr, for symmetry and consistency with SameText (bug ID 29821)
...
git-svn-id: trunk@33238 -
2016-03-13 16:31:41 +00:00
florian
8b81ce7e25
* use PtrUInt instead of Cardinal in GenericAnsiStrLComp and GenericAnsiStrLIComp, resolves #29815
...
git-svn-id: trunk@33218 -
2016-03-11 20:38:48 +00:00
michael
839a0445a4
Fixed bug in split when final word has length 1 (bug ID 29798)
...
git-svn-id: trunk@33209 -
2016-03-09 19:56:57 +00:00
michael
5568ee5513
* Bug ID #29779 , add DWord versions of StrToInt
...
git-svn-id: trunk@33153 -
2016-03-05 13:50:59 +00:00
michael
dd00b26c09
* Implement missing functions (Fraction/Exponent/Mantissa/Sign)
...
git-svn-id: trunk@33060 -
2016-02-06 12:44:23 +00:00
michael
a999f055ef
* Implement missing functions (Fraction/Exponent/Mantissa/Sign)
...
git-svn-id: trunk@33059 -
2016-02-06 12:44:05 +00:00
michael
21920b9cea
* Correct string type
...
git-svn-id: trunk@33058 -
2016-02-06 12:17:41 +00:00
michael
cf530f117e
* Faster stringreplace (bug ID 26864)
...
git-svn-id: trunk@33055 -
2016-02-06 10:19:56 +00:00
michael
6df35742ae
* Fix bug #0029461 , faSymlink is incompatible with Delphi and plain wrong
...
git-svn-id: trunk@32985 -
2016-01-22 21:07:27 +00:00
michael
8544b8a500
* Patch from Anthony Walter to make IsValidIdent more strict in case of dotted identifiers (bug ID 29364)
...
git-svn-id: trunk@32920 -
2016-01-10 22:57:19 +00:00
michael
244be4f4c2
* Added UnicodeStringReplace WideStringReplace (bug ID 28396)
...
git-svn-id: trunk@32815 -
2015-12-31 16:09:05 +00:00
michael
67d0cd1770
* Fix bug #29273 (extra argument for IsValidIdent)
...
git-svn-id: trunk@32791 -
2015-12-29 16:55:00 +00:00
michael
a5eb3777de
* Fix MaxDateTime constant (bug ID 28282)
...
git-svn-id: trunk@32775 -
2015-12-28 14:23:23 +00:00
michael
42804c935f
* Declare TStringSplitOptions with scopedenum (bug ID 29032)
...
git-svn-id: trunk@32730 -
2015-12-26 16:16:02 +00:00
michael
891aaa9732
* Fix bug ID #28737
...
git-svn-id: trunk@32727 -
2015-12-26 15:15:34 +00:00
michael
745c1499df
* Mark forgotten implementations with runerror 219
...
git-svn-id: trunk@32266 -
2015-11-07 12:36:32 +00:00
michael
6955106a13
* Fix TStringSplitOptions
...
git-svn-id: trunk@32265 -
2015-11-07 12:36:10 +00:00
michael
4a32135563
* no type helpers in version 2.6.*
...
git-svn-id: trunk@32263 -
2015-11-07 09:54:43 +00:00
michael
fde42ca8ef
* Type helpers, compatible to Delphi XE 8
...
git-svn-id: trunk@32262 -
2015-11-07 09:40:54 +00:00
yury
7c62aadf65
* Fixed string conversion warnings in RTL.
...
git-svn-id: trunk@31752 -
2015-09-17 17:25:57 +00:00
yury
e1a0b1204a
* Removed unused vars in RTL.
...
git-svn-id: trunk@31750 -
2015-09-17 16:48:53 +00:00
Jonas Maebe
2afd8eb802
- removed FPC_HAS_STR_CURRENCY-related code, FPC 2.6.4 has it
...
git-svn-id: trunk@31692 -
2015-09-15 11:51:48 +00:00
svenbarth
2cf8cdd885
Fix for Mantis #28650 .
...
rtl/objpas/sysutils/sysstrh.inc:
* forward PString to ObjPas.PString to avoid potential type conflicts
+ added test
git-svn-id: trunk@31603 -
2015-09-11 15:38:59 +00:00
michael
0958ff80de
* Fix bug #28364
...
git-svn-id: trunk@31185 -
2015-07-01 19:57:10 +00:00
Jonas Maebe
d57a85a2de
* fixed compilation on non-Windows systems after r31035
...
git-svn-id: trunk@31043 -
2015-06-13 22:05:50 +00:00