Commit Graph

747 Commits

Author SHA1 Message Date
Michaël Van Canneyt
21e99a0a1e * TOSVersion for Delphi compatibility 2023-10-26 22:15:36 +02:00
Michaël Van Canneyt
bad90711ef * Do not use comp type, use int64 instead. Fix issue #40469 2023-10-16 10:25:52 +02:00
Michaël Van Canneyt
2854f08daa * Add boolean %b format specifier 2023-10-15 23:06:02 +02:00
Michaël Van Canneyt
2da416c4ea * Some optimizations for FloatToStr (20% gain). Fixes issue #40137 2023-10-14 17:26:05 +02:00
Rika Ichinose
1c4151d82e Remake AdjustLineBreaks.
This version is correct and supposedly better in other ways (except for a bit of clarity maybe).
2023-08-29 20:08:03 +00:00
Michaël Van Canneyt
148bde3f8f * Small improvement 2023-08-29 11:35:44 +02:00
Michaël Van Canneyt
fd39fd96b3 * Add enumerator for TStringBuilder. Fix issue #37088 2023-08-12 14:33:50 +02:00
Michael VAN CANNEYT
ccfa38c68e * Dotted RTL compiles 2023-07-27 19:04:03 +02:00
Michael VAN CANNEYT
ed50a1941b * Unicode resource strings 2023-07-25 16:06:53 +02:00
Pierre Muller
ef5a32ab95 Fix order of parameters of FillChar 2023-07-25 07:22:39 +02:00
Michaël Van Canneyt
813105ea0a * Fix compilation for platforms that do not have unicodestring 2023-07-24 18:08:02 +02:00
Michael VAN CANNEYT
78374bf772 * Synchronize API for AnsiString/Unicode string, keep string where possible. 2023-07-24 15:38:09 +02:00
Michaël Van Canneyt
a3beff94dc * TStringHelper alias. 2023-07-24 08:34:13 +02:00
Michaël Van Canneyt
757d2b4f91 * Move TMarshal to system unit 2023-07-22 15:24:27 +02:00
Rika Ichinose
7f4420495b TMarshal & TMarshaller, strange things from Delphi. 2023-07-22 15:24:27 +02:00
Michaël Van Canneyt
7493e04015 * PChar -> PansiChar 2023-07-15 18:22:41 +02:00
Michael VAN CANNEYT
0c17b8e9c6 * String helpers for all string types 2023-07-15 09:24:35 +02:00
Michael VAN CANNEYT
fae6b2a1f3 * Refer to mainunit for lazarus IDE 2023-07-14 20:28:28 +02:00
Michael VAN CANNEYT
8b84926993 * Refer to mainunit for lazarus IDE 2023-07-14 20:28:03 +02:00
Michael VAN CANNEYT
0d0e66f2f0 * Refer to mainunit for lazarus IDE 2023-07-14 20:26:46 +02:00
Michael VAN CANNEYT
9320118189 * Refer to mainunit for lazarus IDE 2023-07-14 20:26:10 +02:00
Michael VAN CANNEYT
1ee1040bce * Explicit string types, duplicate where needed 2023-07-14 20:16:27 +02:00
Michaël Van Canneyt
15ed1f131e * PAnsiChar version of Strdispose must be public 2023-07-14 17:26:10 +02:00
Michael VAN CANNEYT
4336599c3a * Char -> AnsiChar 2023-07-14 17:26:10 +02:00
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