ondrej
77fecff30e
TStrings.SaveToStream(TStream): use FEncoding as the default for IgnoreEncoding=False so that loaded files are correctly resaved
...
git-svn-id: trunk@43948 -
2020-01-14 15:33:53 +00:00
ondrej
461a648f67
TStrings: default options:
...
* remove soWriteBOM for FPC backwards compatibility
* add soPreserveBOM so that a loaded file is correctly resaved
git-svn-id: trunk@43947 -
2020-01-14 15:30:38 +00:00
ondrej
c3f8b7c914
Revert r43942: TStrings: old SaveToFile(string) and SaveToStream(TStream) should ignore Encoding and stay backwards compatible within FPC. Use the other overloads for Encoding-aware SaveTo* methods
...
git-svn-id: trunk@43946 -
2020-01-14 15:17:30 +00:00
ondrej
6ed89d4101
TStrings: add missing SaveToFile overload with IgnoreEncoding parameter
...
git-svn-id: trunk@43945 -
2020-01-14 15:16:04 +00:00
ondrej
7dba9f0294
TStrings: old SaveToFile(string) and SaveToStream(TStream) should ignore Encoding and stay backwards compatible within FPC. Use the other overloads for Encoding-aware SaveTo* methods
...
git-svn-id: trunk@43942 -
2020-01-14 10:47:13 +00:00
ondrej
ee18a7ee9a
classes: add TStringsOption.soPreserveBOM
...
git-svn-id: trunk@43848 -
2020-01-03 10:39:53 +00:00
ondrej
5d58ced92b
classes: add TStrings.Options (Delphi-compatibility)
...
git-svn-id: trunk@43841 -
2020-01-02 18:55:19 +00:00
ondrej
a446032f32
classes: fix TStrings.SaveToStream overloads (Delphi-compatibility + introduce IgnoreEncoding-overload for legacy FPC code like for LoadFromStream)
...
git-svn-id: trunk@43839 -
2020-01-02 18:10:53 +00:00
michael
abeb00cd94
* Fix bug ID #34303 , readability opimizations
...
git-svn-id: trunk@43714 -
2019-12-23 13:15:19 +00:00
michael
23ef6459bd
* Fix bug #36284 : small refactoring
...
git-svn-id: trunk@43454 -
2019-11-12 13:04:07 +00:00
michael
f622f58b04
* Observe doclear
...
git-svn-id: trunk@43416 -
2019-11-08 09:31:45 +00:00
michael
e578477334
* Refactor AddDelimitedText/SetDelimitedText
...
git-svn-id: trunk@43415 -
2019-11-08 09:21:08 +00:00
michael
d3ceede910
* Reduce use of Length(aValue) in setdelimitedtext
...
git-svn-id: trunk@43414 -
2019-11-08 08:36:31 +00:00
michael
3b867da924
* Add AddDelimitedText,AddCommatext by Werner Pamler (bug ID 36249)
...
git-svn-id: trunk@43405 -
2019-11-06 10:51:34 +00:00
michael
faee789507
* Add some functional methods to TStrings
...
git-svn-id: trunk@43365 -
2019-11-02 15:08:27 +00:00
michael
30bc217d55
* Fix bug ID #0036246 , delphi compatibility property
...
git-svn-id: trunk@43353 -
2019-11-02 10:25:42 +00:00
michael
a516b6fd74
* Fix bug ID #0035817
...
git-svn-id: trunk@42351 -
2019-07-11 20:33:39 +00:00
michael
7c36912eb0
* Better fix for 35660: Introduced TMissingNameValueSeparatorAction
...
git-svn-id: trunk@42170 -
2019-06-04 07:00:48 +00:00
michael
833e00bfbd
* Fix bug #35660 , introduce prefervaluestonames
...
git-svn-id: trunk@42153 -
2019-06-01 09:42:27 +00:00
michael
27894ebe68
* Patch from Serge Anvarov to improve TStrings.GetNextLine and TStrings.GetNextLineBreak (bug ID 35331)
...
git-svn-id: trunk@41853 -
2019-04-09 11:35:56 +00:00
michael
08d6b446f0
* Fix bug ID #35345 , allow tstrings.text to exceed 2Gb
...
git-svn-id: trunk@41852 -
2019-04-09 11:16:56 +00:00
michael
cae2c94e90
* Patch from Ondrej Pokorny to let AddStrings call beginupdate/endupdate under all circumstances (bug ID 35341)
...
git-svn-id: trunk@41849 -
2019-04-08 07:51:19 +00:00
nickysn
ff90e7622a
+ added .Sort overloads, that specify an algorithm and use the sortbase defined
...
algorithms for sorting TList, TFPList and TStringList when FPC_TESTGENERICS is
defined as well. Unfortunately, I couldn't test it, because the RTL doesn't
compile with FPC_TESTGENERICS, due to errors, completely unrelated to the
sortbase changes.
git-svn-id: trunk@41248 -
2019-02-07 15:45:13 +00:00
nickysn
d86da19570
* use the sort algorithm from sortbase for TStringList
...
git-svn-id: trunk@41194 -
2019-02-03 17:00:21 +00:00
michael
bf3e437dd6
* Fix bug #33475 , add AddPair for Delphi compatibility, modified patch by Silvio Clecio
...
git-svn-id: trunk@38587 -
2018-03-21 10:30:02 +00:00
michael
cbc50c5fe6
* Restore signature of loadfromstream/loadfromfile, make default delphi compatible
...
git-svn-id: trunk@37965 -
2018-01-14 10:11:56 +00:00
michael
5c1df42fa4
* Fix bug #32871
...
git-svn-id: trunk@37962 -
2018-01-13 18:21:44 +00:00
michael
f0a8355b84
* AlwaysQuote added (bug ID 31126)
...
git-svn-id: trunk@35333 -
2017-01-25 22:37:33 +00:00
michael
32ec90dccf
* Fix wrong index check for insert, border is different
...
git-svn-id: trunk@34834 -
2016-11-07 13:39:56 +00:00
michael
9926d37dda
* Fix bug #30869 , introduce CheckIndex in TStringList
...
git-svn-id: trunk@34817 -
2016-11-06 17:04:37 +00:00
michael
8318ba30d4
* Patch from Ondrej Pokorny to implement specifying encoding when saving/loading from stream
...
git-svn-id: trunk@34475 -
2016-09-10 10:59:48 +00:00
michael
10bbfce412
* Allow Find to work with user-sorted stringlists.
...
git-svn-id: trunk@33328 -
2016-03-26 09:13:27 +00:00
michael
ae3b0eab2a
* Fix stringlist addstrings so virtual method is preserved (bug id 0029630)
...
git-svn-id: trunk@33099 -
2016-02-16 18:59:01 +00:00
michael
db19d73ec0
* Add ClearFirst parameter to AddStrings (bug ID 29630)
...
git-svn-id: trunk@33092 -
2016-02-13 11:03:51 +00:00
michael
4f82d103af
* Added SkipLastLineBreak to TStrings (bug ID 28213)
...
git-svn-id: trunk@32792 -
2015-12-29 18:48:58 +00:00
michael
0042e1d3b8
* Fix bug #29150
...
git-svn-id: trunk@32765 -
2015-12-27 17:07:31 +00:00
marco
5dcf5a95c5
* move beginupdate before try 3x , Mantis #29164
...
git-svn-id: trunk@32630 -
2015-12-10 19:21:16 +00:00
marco
aa33a9509f
* added try..finally to beginupdate/endupdate, mantis #29165
...
git-svn-id: trunk@32629 -
2015-12-10 19:19:25 +00:00
michael
7d2c723a54
* Re-instated initialization of memory when adding item
...
git-svn-id: trunk@32332 -
2015-11-15 18:24:12 +00:00
michael
d00d64021b
* Clear memory correctly when setting capacity (bug id 28928)
...
git-svn-id: trunk@32327 -
2015-11-15 11:15:25 +00:00
michael
aa3a7b7eb8
* Exit find if not sorted (bug id 28774)
...
git-svn-id: trunk@31941 -
2015-10-04 08:07:51 +00:00
yury
e1a0b1204a
* Removed unused vars in RTL.
...
git-svn-id: trunk@31750 -
2015-09-17 16:48:53 +00:00
michael
e5fba07668
* Fix bug #0028486
...
git-svn-id: trunk@31299 -
2015-08-07 12:00:40 +00:00
michael
0304b5f1e9
* Copy LineBreak during TStrings.Assign
...
git-svn-id: trunk@30302 -
2015-03-24 08:47:49 +00:00
michael
063d7f1ce2
* Overloaded version of TStrings.Add that accepts Fmt,Args
...
git-svn-id: trunk@30301 -
2015-03-24 08:47:14 +00:00
michael
e3111faa2e
* Implemented LineBreak property for TStrings
...
git-svn-id: trunk@30300 -
2015-03-24 08:38:52 +00:00
michael
beafc9fe8c
* Fix bug #26717
...
git-svn-id: trunk@28659 -
2014-09-14 15:06:34 +00:00
michael
1d9ac3aa9e
* Fixed bug #26053
...
git-svn-id: trunk@27770 -
2014-05-11 13:28:00 +00:00
michael
098769d1b3
* Added TStringList.CompareStrings (Delphi compatibility), patch by Stephano, bug ID #24981
...
git-svn-id: trunk@25582 -
2013-09-26 18:09:12 +00:00
nickysn
e54c87dab1
* changed a method address typecast to CodePointer instead of Pointer in TStringList.QuickSort for compatibility with the i8086 medium and compact memory models
...
git-svn-id: trunk@25486 -
2013-09-14 13:52:41 +00:00