Commit Graph

1096 Commits

Author SHA1 Message Date
mattias
8b8930645a lazutils: comment
git-svn-id: trunk@56097 -
2017-10-17 15:10:40 +00:00
mattias
099b09d88d lazutils: added compwriterpas.pas
git-svn-id: trunk@56093 -
2017-10-17 12:12:46 +00:00
bart
08a73bdac1 Fix TMask.InitMaskString for charsets when CaseSensitive is False. Issue #0032491. Patch by delfion.
git-svn-id: trunk@56029 -
2017-10-11 15:38:36 +00:00
juha
f331aaa8a1 EasyLazFreeType: Allow freeing TFreeTypeFont after EasyLazFreeType finalization. Issue #32371, patch from Andrey Zubarev.
git-svn-id: trunk@55788 -
2017-09-05 10:06:50 +00:00
juha
313c93184b LazUtils: In HTML2TextRenderer use an emoji for list items.
git-svn-id: trunk@55743 -
2017-08-24 22:18:03 +00:00
juha
bbd38e2474 LazUtils: Call the optimized function Utf8StringOfChar from StringOfCodePoint when using UTF-8.
git-svn-id: trunk@55729 -
2017-08-21 09:47:21 +00:00
juha
6169b87086 LazUtils: Add a trivial function StringOfCodePoint to unit LazUnicode.
git-svn-id: trunk@55701 -
2017-08-19 16:03:23 +00:00
mattias
895444b524 lazutils: less hints
git-svn-id: trunk@55679 -
2017-08-19 08:18:44 +00:00
juha
52fc498a76 Formatting and cleanup.
git-svn-id: trunk@55594 -
2017-07-26 10:45:05 +00:00
juha
ec52d9726a LazUtils: In Html2TextRenderer use a diamond glyph belonging to Unicode BMP. All fonts did not support the small diamond.
git-svn-id: trunk@55593 -
2017-07-25 19:38:35 +00:00
ondrej
11c15e3bf0 avglvltree: fix DisposeNode for nil Node. Issue #32189
git-svn-id: trunk@55561 -
2017-07-23 15:10:02 +00:00
ondrej
818462b741 LazUtils: add Laz_AVL_Tree to the package
git-svn-id: trunk@55560 -
2017-07-23 15:02:44 +00:00
maxim
ae97cba986 Translations: Lithuanian translation update by Valdas Jankūnas, bug #32126
git-svn-id: trunk@55502 -
2017-07-13 22:43:07 +00:00
maxim
732c7f90fd Translations: Lithuanian translation update by Valdas Jankūnas, bug #32126
git-svn-id: trunk@55474 -
2017-07-08 12:47:30 +00:00
juha
a06d4212e2 LazUtils: Reset one more variable in THTML2TextRenderer.
git-svn-id: trunk@55338 -
2017-06-12 19:33:31 +00:00
juha
9696a11210 LazUtils: Allow customizing THTML2TextRenderer output by new properties. Issue #31991, patch from AlexeyT.
git-svn-id: trunk@55336 -
2017-06-12 12:19:12 +00:00
juha
9ff73f8e2d LazUtils: Improve THTML2TextRenderer. Add property TitleMark. Don't use Unicode eyes for links, didn't look good.
git-svn-id: trunk@55329 -
2017-06-12 09:37:54 +00:00
juha
1afa4599a9 LazUtils: Improve THTML2TextRenderer class. Add property LineEndMark.
git-svn-id: trunk@55325 -
2017-06-12 07:54:45 +00:00
juha
1b20d91bba Replace function HTMLToCaption with a new THTML2TextRenderer class, placed into LazUtils package. Issue #31991.
git-svn-id: trunk@55319 -
2017-06-11 18:33:28 +00:00
bart
9b0e7b0b35 LazUtils: Fix compilation of utf8process.pp on Darwin with fpc trunk.
git-svn-id: trunk@55241 -
2017-06-05 15:54:24 +00:00
mattias
6e41e1e216 lazutils: fixed UTF8CharacterLengthFast
git-svn-id: trunk@55218 -
2017-06-04 20:18:38 +00:00
juha
e27232d4cc Fix uninitialized variables based on compiler warnings got with dfa (data flow analysis) enabled.
git-svn-id: trunk@55211 -
2017-06-04 15:14:29 +00:00
mattias
e6ce403f3f updates makefiles
git-svn-id: trunk@54969 -
2017-05-18 11:39:53 +00:00
bart
a3a7c54e1e LazUtf8: fix compilation for WinCE. Issue #0031788.
git-svn-id: trunk@54845 -
2017-05-09 19:21:42 +00:00
mattias
2b1fde1cd2 lazutils: fixed lazunicode compile under Delphi
git-svn-id: trunk@54807 -
2017-05-03 11:25:19 +00:00
juha
35f0a84962 LazUtils: Clean LazUnicode.
git-svn-id: trunk@54806 -
2017-05-03 11:19:09 +00:00
mattias
08bd7d6206 IDE: parse project default namespace
git-svn-id: trunk@54767 -
2017-04-28 22:27:06 +00:00
mattias
e87f70b765 lazutils: added MergeWithDelimiter
git-svn-id: trunk@54756 -
2017-04-27 14:33:17 +00:00
mattias
0a891e4ab2 set version to 1.8.0RC1
git-svn-id: trunk@54578 -
2017-04-08 21:53:32 +00:00
mattias
89eaee318a lazutils: TCustomStringMap: disable default node manager by default
git-svn-id: trunk@54557 -
2017-04-07 13:17:22 +00:00
juha
3c525fb548 LazUtils: Add backwards compatibility to TAvgLvlTree. Needed by BGRABitmap and others.
git-svn-id: trunk@54545 -
2017-04-06 17:44:28 +00:00
mattias
5609d691b4 lazutils: avl tree: comment
git-svn-id: trunk@54542 -
2017-04-06 10:42:21 +00:00
mattias
09b6614558 lazutils: avl tree: synced with FPC
git-svn-id: trunk@54541 -
2017-04-06 10:39:27 +00:00
mattias
0c60eb7f18 lazutils: avl tree: disabled debugging
git-svn-id: trunk@54540 -
2017-04-06 10:14:02 +00:00
mattias
9424db5d62 lazutils: fixed TAVLTree using fnodemgr
git-svn-id: trunk@54538 -
2017-04-06 10:08:39 +00:00
mattias
7fa04aed29 lazutils: TAvgLvlTree: made FreeAndDelete virtual safe
git-svn-id: trunk@54537 -
2017-04-06 09:27:12 +00:00
mattias
efd6a6efc5 lazutils: TAvgLvlTree: made FreeAndDelete virtual safe
git-svn-id: trunk@54536 -
2017-04-06 09:23:31 +00:00
mattias
0ddb1e74c5 lazutil: avltree: when using a custom nodeclass do not use the default nodememmanager
git-svn-id: trunk@54534 -
2017-04-06 08:45:56 +00:00
mattias
af03331f08 lazutil: avltree: fixed decreasing freecount and added thread test
git-svn-id: trunk@54533 -
2017-04-06 08:32:05 +00:00
juha
a94885a578 LazUtils: Reveal a bug in AVLTree. TAVLTreeNodeMemManager.FCount goes negative.
git-svn-id: trunk@54532 -
2017-04-05 21:07:46 +00:00
juha
4d07518471 LazUtils: Reintroduce TAvgLvlTree, inherit from TAvlTree. Implement OwnsObjects again.
git-svn-id: trunk@54531 -
2017-04-05 21:07:39 +00:00
juha
e800a738ad Copy AVL_Tree from FPC trunk and replace classes in AvgLvlTree and in CodetoolsStructs with it.
The unit in FPC packages will be used directly later.

git-svn-id: trunk@54524 -
2017-04-05 08:34:48 +00:00
maxim
37f2d73f0a Translations: Ukrainian translation update by Olexandr Pylypchuk, bug #31614
git-svn-id: trunk@54514 -
2017-04-03 23:24:37 +00:00
juha
1e29783c40 More formatting.
git-svn-id: trunk@54377 -
2017-03-08 22:15:56 +00:00
maxim
c74ec53ab7 Translations: Ukrainian translation update by Olexandr Pylypchuk, bug #31463
git-svn-id: trunk@54327 -
2017-03-02 22:17:27 +00:00
maxim
3f057d8f9e Translations: Hungarian translation update by Péter Gábor, bug #31451
git-svn-id: trunk@54315 -
2017-02-28 22:20:15 +00:00
mattias
673bc11392 lcl: gtk2: less hints
git-svn-id: trunk@54270 -
2017-02-25 12:26:50 +00:00
mattias
63b12d5281 lazutf8: under Windows use W function for GetEnvironmentStringUTF8 and GetEnvironmentVariable
git-svn-id: trunk@54269 -
2017-02-25 12:24:25 +00:00
mattias
59445580c3 lazutils: lazutf8: less ifdef cluttering
git-svn-id: trunk@54262 -
2017-02-24 13:13:28 +00:00
maxim
491820a1f4 Translations: French translation update by Gilles Vasseur, bug #31362
git-svn-id: trunk@54119 -
2017-02-07 23:00:04 +00:00
blikblum
bb1a32ecba win32: fix WideChar -> UTF8 conversion in GetLocaleStr with fpc 2.6.4. Issue #31272. Patch by Luca Olivetti
git-svn-id: trunk@54005 -
2017-01-26 01:34:29 +00:00
marcus
d9f917f93e Amiga: ExtractFilenameOnly/ExtractFileRoot for amiga systems
git-svn-id: trunk@53971 -
2017-01-18 19:43:14 +00:00
mattias
6059715450 lazutils: TAvgLvlTree.OwnsObjects
git-svn-id: trunk@53968 -
2017-01-18 11:59:00 +00:00
mattias
9d411abe20 docs: UnicodeToUTF8
git-svn-id: trunk@53964 -
2017-01-17 15:28:04 +00:00
mattias
0d6c0cfb48 lazutils: TAvgLvlTree.Compare inline
git-svn-id: trunk@53924 -
2017-01-11 12:40:38 +00:00
mattias
3df7cd55d3 lazutils: TAvgLvlTree: added const param modifier for proc types
git-svn-id: trunk@53911 -
2017-01-10 16:06:20 +00:00
mattias
d51f16bf41 lazutils: fixed TAvgLvlTree.AddAscendingSequence, when LastAdded gets a right child
git-svn-id: trunk@53910 -
2017-01-10 13:33:05 +00:00
mattias
c0a096e832 lazutils: added TAvgLvlTree.AddAscendingSequence, optimized version of Add
git-svn-id: trunk@53909 -
2017-01-10 12:37:33 +00:00
juha
39fe54c5f6 Make LCL and LazUtils compile for Amiga systems (NoGUI). Issue #31186, patch from Marcus Sackrow.
git-svn-id: trunk@53853 -
2017-01-03 12:01:49 +00:00
maxim
6fa37c1c52 LazUtils: updated Russian translation
git-svn-id: trunk@53754 -
2016-12-21 22:45:41 +00:00
juha
09de77223d LazUtils: Fix the package name in file headers.
git-svn-id: trunk@53753 -
2016-12-21 22:35:14 +00:00
juha
90cf12dacd Move LazLinkedList from LCL to LazUtils.
git-svn-id: trunk@53752 -
2016-12-21 22:35:12 +00:00
juha
d33b9f61a2 Reuse LazLogger.DumpExceptionBackTrace. Cleanup.
git-svn-id: trunk@53742 -
2016-12-20 22:52:02 +00:00
juha
2329f266ed Move Translations unit from LCL to LazUtils.
git-svn-id: trunk@53740 -
2016-12-20 22:32:43 +00:00
juha
3b52a368a2 Move containers from LCL to LazUtils. DynamicArray, DynHashArray, DynQueue, Maps, StringHashList, ExtendedStrings, TextStrings.
git-svn-id: trunk@53737 -
2016-12-20 16:26:27 +00:00
mattias
c458f34d54 IDE: register TProcessUTF8 with LazUtils, not LCL
git-svn-id: trunk@53735 -
2016-12-20 13:25:34 +00:00
bart
545d1bb66f LazUtf8: Fix UnicodeToUtf8 for CodePoint = 0. Issue #0031103.
git-svn-id: trunk@53659 -
2016-12-12 20:55:42 +00:00
mattias
5fe7ed77c1 lazutils: clean up
git-svn-id: trunk@53616 -
2016-12-09 09:14:13 +00:00
mattias
e53ad0a63b lazutils: simplified
git-svn-id: trunk@53403 -
2016-11-21 16:05:02 +00:00
juha
5338a3dfc1 LazUtils: Refactoring for TXMLConfig. Issue #30899, patch from AlexeyT.
git-svn-id: trunk@53385 -
2016-11-18 19:25:05 +00:00
ondrej
37928d1126 LazUtils: lazutf8sysutils: use GetTickCount32 from FPC 3 if available. Issue #30927
git-svn-id: trunk@53364 -
2016-11-14 13:41:54 +00:00
mattias
f96014d35b lazutils: TStringToPointerTree: fixed freeing value on replace
git-svn-id: trunk@53305 -
2016-11-07 11:29:29 +00:00
mattias
eefe2518a1 lazutils: comment
git-svn-id: trunk@53300 -
2016-11-05 14:57:02 +00:00
bart
39750fff57 LazUtf8
- deprecate ValidUTF8String() (confusing name)
- implement Utf8EscapeControlChars()
Resolves Issue #0030821.

git-svn-id: trunk@53297 -
2016-11-04 14:23:20 +00:00
mattias
887269a2be lazutils: ExpandFileNameUTF8: fixed HOME with UTF-8
git-svn-id: trunk@53283 -
2016-11-02 11:13:07 +00:00
mattias
88c8a65391 lazutils: ResolveDots: fixed a/../b
git-svn-id: trunk@53275 -
2016-11-01 19:55:25 +00:00
ondrej
c4a4b773bd LazUtils: FindDefaultExecutablePath refactoring. Issue #30816, patch by AlexeyT
git-svn-id: trunk@53257 -
2016-10-29 06:30:41 +00:00
mattias
3bcde4474b lazutils: FindDefaultExecutablePath: on Windows search in BaseDir as well, bug #30802.
git-svn-id: trunk@53236 -
2016-10-27 10:38:59 +00:00
mattias
281d09864a lcl: added TProcessUTF8.ParseCmdLine
git-svn-id: trunk@53142 -
2016-10-17 13:50:13 +00:00
mattias
ad2a1d0c2d lazutils: less warnings
git-svn-id: trunk@53137 -
2016-10-17 13:33:55 +00:00
juha
0973660a48 LazUtils: Unify formatting between FileIsReadable and FileIsWritable + other formatting.
git-svn-id: trunk@53127 -
2016-10-16 20:06:33 +00:00
joost
dd12fca090 * Re-generated fpmake.pp
git-svn-id: trunk@53117 -
2016-10-14 18:37:23 +00:00
juha
8cfa96523a Packager: formatting
git-svn-id: trunk@53083 -
2016-10-09 13:12:08 +00:00
juha
9ca4db530f LazUtils: Add few more IDE directives to suppress notes about unused Sender parameter. Issue #29704.
git-svn-id: trunk@52990 -
2016-09-18 19:42:55 +00:00
mattias
bc57de6bb9 lazutf8: improved UTF8CharacterLength and UTF8CharacterLengthFast
git-svn-id: trunk@52857 -
2016-08-21 21:14:01 +00:00
juha
413f000fc0 LazUtils: Return 1 also for char #0 in UTF8CharacterLengthFast. Matches the logic in UTF8CharacterLength.
git-svn-id: trunk@52856 -
2016-08-21 19:48:01 +00:00
juha
01c9a4b4d7 LazUtils: Add fast versions of UTF8CharacterLength and UTF8Length. Use them in LazUnicode unit.
git-svn-id: trunk@52853 -
2016-08-21 16:37:02 +00:00
mattias
6e88fded34 lazutils: clean up
git-svn-id: trunk@52770 -
2016-08-01 20:06:41 +00:00
martin
65f56da2d8 LazClasses: TRefCountedObject, added debug helpers
git-svn-id: trunk@52757 -
2016-07-31 14:39:58 +00:00
mattias
c13e223026 lazutils: deprecated note
git-svn-id: trunk@52712 -
2016-07-18 17:40:40 +00:00
mattias
872c45d0f4 lazutils: fixed compilation with FPC 2.6.4
git-svn-id: trunk@52686 -
2016-07-14 09:31:37 +00:00
juha
156ab97c17 LazUtils: Improve function names in LazUnicode. Add comments.
git-svn-id: trunk@52676 -
2016-07-12 17:17:21 +00:00
juha
26220ffce3 LazUnicodeTest: Define UseUTF16 so that it affects LazUtils package, too.
git-svn-id: trunk@52673 -
2016-07-12 13:40:24 +00:00
juha
70535df1b1 LazUtils: a new test program for LazUnicode unit.
git-svn-id: trunk@52672 -
2016-07-12 12:20:38 +00:00
juha
6e8338f0f9 LazUtils: add LazUnicode unit to LazUtils package.
git-svn-id: trunk@52671 -
2016-07-12 12:18:22 +00:00
juha
dc90c9173e LazUtils: New unit LazUnicode for encoding agnostic code. Supports Delphi. LazUTF16 is updated.
git-svn-id: trunk@52670 -
2016-07-12 09:55:21 +00:00
bart
cc2b0f718e LazUtils: fix comments in lazutils_defines.inc.
git-svn-id: trunk@52607 -
2016-07-03 15:15:09 +00:00
wp
40a5dc93a0 lazutils: Avoid laz2_xmlcfg changing DefaultFormatSettings.
git-svn-id: trunk@52584 -
2016-06-29 11:48:44 +00:00
juha
f34ea1f4c7 LazUtils: Match character case of unit name LazUTF16 with LazUTF8.
git-svn-id: trunk@52528 -
2016-06-20 06:34:37 +00:00
juha
920c072f0e LazUtils: Add, fix and unify header comments of many units.
git-svn-id: trunk@52518 -
2016-06-18 16:40:04 +00:00
sekelsenmat
d69c951230 Fixes compilation with FPC 2.6
git-svn-id: trunk@52498 -
2016-06-13 09:28:03 +00:00
bart
2a41a0e2f4 Fix spelling errors. Issue #0030258. Patch by Paul Gevers.
git-svn-id: trunk@52489 -
2016-06-12 16:07:57 +00:00
ondrej
4706ec8505 lazutils: fix compilation with DisableUTF8RTL after r52480 #b13ba1b0b9
git-svn-id: trunk@52488 -
2016-06-12 08:57:25 +00:00
ondrej
47df5bbcc5 lazutils: fix comment from r52480 #b13ba1b0b9
git-svn-id: trunk@52486 -
2016-06-12 08:32:47 +00:00
mattias
824e8f1f9d lazutils: fixed compilation on non windows
git-svn-id: trunk@52481 -
2016-06-12 06:55:16 +00:00
ondrej
b08c38cba0 lazutils: fix GetFormatSettingsUTF8, make it public
git-svn-id: trunk@52479 -
2016-06-12 05:57:58 +00:00
maxim
207c318329 Regenerated translations
git-svn-id: trunk@52455 -
2016-06-08 21:59:41 +00:00
juha
ba872ba5b1 LazUtils: Use cwstring always on unix systems. WideCompare* functions require it.
git-svn-id: trunk@52442 -
2016-06-05 08:26:52 +00:00
wp
9077d7ba0e LazFreeType: FontCollection can add folders recursively now.
git-svn-id: trunk@52430 -
2016-06-03 16:23:05 +00:00
wp
ea3a65ae10 LazFreeType: Fix infinite loop if a font with a non-regular style is added to the FontCollection a second time.
git-svn-id: trunk@52429 -
2016-06-03 16:09:28 +00:00
ondrej
5b81517c26 lazutils: add TMethodList enumerators.
git-svn-id: trunk@52398 -
2016-05-27 15:40:19 +00:00
ondrej
6b94a5fca9 lazutils: less hints
git-svn-id: trunk@52342 -
2016-05-22 10:10:48 +00:00
wp
27e59768b3 LazUtils: Extend xml reader to accept encoding name "UTF8" in addition to "UTF-8"
git-svn-id: trunk@52329 -
2016-05-19 20:59:13 +00:00
ondrej
b7d9f09d50 lazfreetype: fix TFreeTypeFont.CharsPosition for unicode text
git-svn-id: trunk@52283 -
2016-05-05 11:05:49 +00:00
ondrej
b58038b72c lazutils: easylazfreetype: return the actual item in TFreeTypeFontCollection.AddFile and not just boolean.
git-svn-id: trunk@52153 -
2016-04-09 18:41:59 +00:00
juha
2c41ccf609 Formatting, comment.
git-svn-id: trunk@52109 -
2016-04-06 10:19:12 +00:00
bart
9ea2b541f4 LazUtils: PasWString: fix infinite recursion in WideCompareText.
git-svn-id: trunk@52076 -
2016-03-28 10:57:53 +00:00
bart
5d6e5012ea LazFileUtils: fix uninitialized result in ChompPathDelim. Issue #0029866.
git-svn-id: trunk@52004 -
2016-03-20 22:08:06 +00:00
mattias
25f7a697e5 updated makefiles
git-svn-id: trunk@52001 -
2016-03-20 11:19:40 +00:00
mattias
f2e4d7db58 lazutils: comments
git-svn-id: trunk@51998 -
2016-03-20 10:55:55 +00:00
bart
7c9fc905a6 LazUtf8: In UTF8CompareStrCollated only call AnsiCompareStr is ACP_RTL is defined, since in all other cases
AnsiCompareStr = widestringmanager.CompareStrAnsiStringProc = UTF8CompareStr.
If ACP_RTL is not defined call Utf8CompareStr, since this is now does proper collation and is faster than
converting to WideString.

git-svn-id: trunk@51978 -
2016-03-17 12:07:57 +00:00
bart
77e5428b3f LazUtf8: firts attempt to rewrite Utf8CompareStr and Utf8CompareText so that it's results will be more consistent with
AnsiCompareStr/WideCompareStr and AnsiCompareTex/WideCompareText.
(
The old implementation was in effect a copy of CompareStr and, this made the claim about proper collation in
Utf8CompareText (which uses Utf8CompareStr) rather ludicrous.
The new implementaion is slower, mainly becaus of the fact we cannot use CompareMemrange/CompareByte anymore,
and we have to iterate the bytes ourselves. This fact alone contributes much more to the loss in speed than
the fact we use WideCompareStr on the 2 differing codepoints:
- iterating in a for loop: adss a factor of appr. 10 to the time needed
- using the final WideCompareStr adds a factor of about 1.6 to the time meeded.
Because of the slowdown in speed in Utf8CompareStr, Utf8CompareText now calls WideCompareText directly, which is
now appr. the same speed as converting to lowercase and then calling Utf8CompareStr
)

git-svn-id: trunk@51977 -
2016-03-17 11:38:56 +00:00
bart
b192fb9760 LazUtf8: Refactor UTF8FindNearestCharStart. Resolves Issue #0029851.
git-svn-id: trunk@51973 -
2016-03-17 10:42:52 +00:00
bart
34be9ae2d0 LazUtf8: implement Utf8TryFindCodepointStart.
git-svn-id: trunk@51972 -
2016-03-17 10:39:52 +00:00
juha
d93952201f LazUtils: Fix compilation on darwin. Issue #29843, patch from lks.
git-svn-id: trunk@51957 -
2016-03-16 07:05:26 +00:00
bart
23f36140b5 LazUtf8: implement Utf8ReverseString and Utf8RPos. Patch by Bernard Marcelly. Issue #0029817.
git-svn-id: trunk@51927 -
2016-03-12 14:01:03 +00:00
mattias
69de6012ba lazfileutils: added windows function SHGetFolderPathUTF8
git-svn-id: trunk@51881 -
2016-03-09 13:15:53 +00:00
bart
9c050f164e LazUtils: disable the wrapper functions in FileUtil by default. The wrapper functions will be removed later on.
git-svn-id: trunk@51834 -
2016-03-06 13:19:23 +00:00
mattias
febbca6c63 components: less hints
git-svn-id: trunk@51785 -
2016-03-01 15:26:12 +00:00
bart
2683bc53a8 LazUtils: Prevent CopyDirTree copying to a subdirectory of source: handle unicode characters.
git-svn-id: trunk@51692 -
2016-02-24 23:07:19 +00:00
bart
f09c665b2a LazUtf8: fix Utf8LowerCase for #$E2#$B1#$AD (LATIN CAPITAL LETTER ALPHA)
git-svn-id: trunk@51688 -
2016-02-24 22:26:58 +00:00
bart
f7005c6649 LazUtils: Revert r51038 #10e166f60e. Fixes bug in CopyDirTree. Issue #0029695.
git-svn-id: trunk@51675 -
2016-02-22 18:13:29 +00:00
bart
f98b2e0ab7 LazUtils: Remove (obsolete) ansi implementations of File*UTF8 functions (Windows).
Part of removing specific Win9x code.

git-svn-id: trunk@51308 -
2016-01-17 15:38:02 +00:00
juha
5ff026ab94 IDE: Support dotted unit names in FilenameIsPascalSource. Issue #29363.
git-svn-id: trunk@51261 -
2016-01-12 17:00:28 +00:00
joost
c65c09f800 * Added TLazThreadedQueue.PopItemTimeout to be able to specify different timeout then the default
git-svn-id: trunk@51236 -
2016-01-10 15:45:53 +00:00
juha
800d968b77 LazUtils: Suppress some hints when compiling LazUtils. Issue #27961.
git-svn-id: trunk@51053 -
2015-12-27 15:04:41 +00:00
bart
35b30db335 LazUtils: CopyDirTree: better readable Boolean expression.
git-svn-id: trunk@51041 -
2015-12-26 16:43:20 +00:00
bart
b8d42c3a62 LazUtils: Fix r51038 #10e166f60e for Issue #28841.
git-svn-id: trunk@51039 -
2015-12-26 13:50:01 +00:00
bart
10e166f60e LazUtils: Better fix "Prevent CopyDirTree copying to a subdirectory of source." Issue #28841.
git-svn-id: trunk@51038 -
2015-12-26 13:14:11 +00:00
juha
d10faafb1a LazUtils: Use trimmed paths for comparing sub-dir in CopyDirTree. Fix return value. Issue #28841.
git-svn-id: trunk@51034 -
2015-12-25 19:14:04 +00:00
juha
6faa4e893c LazUtils: Prevent CopyDirTree copying to a subdirectory of source. Issue #28841.
git-svn-id: trunk@51033 -
2015-12-25 18:39:32 +00:00
bart
39da734bec LazUtils: fix compilation for WinCE.
git-svn-id: trunk@51026 -
2015-12-24 18:08:42 +00:00
bart
894c125543 LazUtils: Second attempt to implement Utf8Delete() for parameters of type Utf8String.
git-svn-id: trunk@50910 -
2015-12-18 17:59:39 +00:00
mattias
7896da19ae IDE: fixed searching in PATH on Windows
git-svn-id: trunk@50865 -
2015-12-17 14:34:53 +00:00
bart
b3035175ac LazUtils: implement Utf8Delete() and Utf8Insert() for parameters of type Utf8String. (Only needed for these, since they use var parameters).
git-svn-id: trunk@50850 -
2015-12-16 17:07:58 +00:00
bart
eef2f8f590 LazUtils: implement Utf16StringReplace.
git-svn-id: trunk@50849 -
2015-12-16 16:55:05 +00:00
ondrej
3a6697bc77 codetools, lazutils, win32: less hints
git-svn-id: trunk@50822 -
2015-12-15 16:27:39 +00:00
mattias
9a471bcd00 lazutils: fixed compilation under Windows
git-svn-id: trunk@50729 -
2015-12-09 23:35:07 +00:00
mattias
b48a3ea89e lazutils: UTF8ToWinCP for Unix
git-svn-id: trunk@50723 -
2015-12-09 22:58:30 +00:00
juha
67bbb06ba6 LazUtils: Finalize FreeTypeFont instance only when needed. Issue #29151, patch from Andrey Zubarev.
git-svn-id: trunk@50712 -
2015-12-08 19:56:21 +00:00
mattias
eeeb237080 lazutils: fixed TProcessUTF8 ancestor
git-svn-id: trunk@50655 -
2015-12-05 18:51:23 +00:00
mattias
82b946cccb lazutils: fixed dangling pointer
git-svn-id: trunk@50646 -
2015-12-05 14:08:46 +00:00
mattias
55619096fd lazutils: fixed compilation FC 2.6.4
git-svn-id: trunk@50627 -
2015-12-05 00:13:53 +00:00
mattias
9e8df5c8ed lazutils: fixed ConsoleToUTF8 on Windows
git-svn-id: trunk@50624 -
2015-12-04 23:04:44 +00:00
mattias
93a809284f lazutils: TProcessUTF8: using CreateProcessW on MSWindows, using alias otherwise
git-svn-id: trunk@50603 -
2015-12-04 16:06:35 +00:00
mattias
d0dace2bf5 lazutils: TProcessUTF8: experimental on mswindows override Execute using CreateProcessW, other platforms: use alias, bug #28991
git-svn-id: trunk@50595 -
2015-12-04 15:27:16 +00:00
mattias
fff60a4076 lazutils: undo TProcessUTF8 change, not stable
git-svn-id: trunk@50588 -
2015-12-03 15:05:22 +00:00
mattias
eeed3eae79 lazutils: TProcessUTF8: on mswindows override Execute using CreateProcessW, other platforms: use alias, bug #28991
git-svn-id: trunk@50586 -
2015-12-03 14:50:36 +00:00
bart
1f91afe602 LazUtils: fix issue with implicit codepage conversion in ParamStrUtf8. Issue #0028815.
git-svn-id: trunk@50569 -
2015-12-02 13:33:56 +00:00
bart
a121cb2acc LazUtils: Fix implicit codepage ceversion issue for FindFirstUtf8/FindNextUtf8 (Windows). Patch by Michl. Issue #0028406.
git-svn-id: trunk@50567 -
2015-12-02 12:43:29 +00:00
bart
2a47550bba LazUtils: fix crash in ExpandFilenameUtf8 (Issue #0029098).
git-svn-id: trunk@50519 -
2015-11-28 15:48:40 +00:00
bart
efc3ca18be LazUtf8: Fix Utf8ToConsole. Patch by ChrisF, modified by me. Issue #0028371.
git-svn-id: trunk@50514 -
2015-11-27 10:39:35 +00:00
bart
b2fa28caad LazUtils: add lazutils_defines.inc, forgotten in r50498 #0c8df133dd.
git-svn-id: trunk@50499 -
2015-11-24 16:24:54 +00:00
bart
0c8df133dd LazUtils:
- An attempt to unify the defines for the different scenario's in the use of (not) codepage aware ansistrings
  and the use of the "Utf8 in RTL" feature.
  It makes for better separation of code and thus better readability and ease of maintainance (and in a later
  stadium it makes it easier to remove code that deals with non codepage aware ansistrings (fpc < 3.0)).
- Also replace (FPC_FULLVERSION >= xxxx) with FPC_HAS_CPSTRING where appropriate.
- Replace the custom HasCP define with built in FPC_HAS_CPSTRING define.

git-svn-id: trunk@50498 -
2015-11-24 16:23:18 +00:00
bart
0493a91c19 LazUtils: Less hints.
git-svn-id: trunk@50497 -
2015-11-24 14:24:12 +00:00
bart
094b14ce22 LazUtils: remove legacy code for the 2.6.0 compiler.
git-svn-id: trunk@50496 -
2015-11-24 14:06:50 +00:00
bart
984edab996 LazUtils: fix compilation of LazUtf8 for fpc <= 3.0.0 after r50470 #22750460e4.
git-svn-id: trunk@50475 -
2015-11-22 23:32:54 +00:00
bart
22750460e4 LazUtils: fix compilation of LazUtf8 for WinCE. Issue #0029059.
git-svn-id: trunk@50470 -
2015-11-22 12:33:32 +00:00
mattias
da9c319b92 lazutils: LoadFromCSVStream: fixed reading UTF16
git-svn-id: trunk@50319 -
2015-11-12 14:30:42 +00:00
mattias
a1e2f1e248 lazutils: LoadFromCSVStream: fixed reading UTF16
git-svn-id: trunk@50232 -
2015-11-06 12:05:15 +00:00
mattias
fb15809cef lazutils: DirectoryIsWritable: check if directory exists
git-svn-id: trunk@50170 -
2015-10-26 09:26:44 +00:00
mattias
c8e7c3acb5 lazutils: lconvencoding: fixed using tables for lossless conversion back and forth
git-svn-id: trunk@50157 -
2015-10-24 21:46:16 +00:00
mattias
fcafecec98 LCL: LoadFromCSVStream: fixed converting UTF16
git-svn-id: trunk@50146 -
2015-10-22 21:34:53 +00:00
mattias
9eae75a03b LCL: LoadFromCSVStream: fixed reading quote not closed
git-svn-id: trunk@50144 -
2015-10-22 19:37:40 +00:00
juha
5fc7132693 Use the new UTF-8 system by default. Can be disabled by define DisableUTF8RTL. EnableUTF8RTL is removed.
git-svn-id: trunk@50129 -
2015-10-20 17:20:11 +00:00
juha
c831f9ecd9 LazUtils: Less notes from compiler about Asian codepages.
git-svn-id: trunk@50088 -
2015-10-16 21:48:15 +00:00
mattias
2c46e6e468 IDE+lazbuild+makefiles: on darwin use -gw instead of -g
git-svn-id: trunk@49906 -
2015-10-01 18:40:54 +00:00
juha
5642758bf1 LazUtils: Fix TFileSearcher encoding when -dEnableUTF8RTL is not used. Issue #28406, patch from Michl.
git-svn-id: trunk@49888 -
2015-09-28 19:57:52 +00:00
mattias
43bbbdf2d0 lazutils: fixed compialtion EnableUTF8RTL
git-svn-id: trunk@49866 -
2015-09-21 18:18:12 +00:00
mattias
9c680beb48 lazutils: lconvencoding: using system conversion only if available, extened ConvertEncodingFromUTF8 with parameter SetTargetCodePage, default is false for compatibility with code using 1.4 and below, bug #28485
git-svn-id: trunk@49859 -
2015-09-21 10:50:54 +00:00
juha
50bc37338d IDE, AnchorDocking: Support desktops also with docked IDE. Move configuration to environment options. By Ondrej Pokorny.
git-svn-id: trunk@49778 -
2015-09-07 22:01:22 +00:00
jesus
0ca49a5f21 LCL, fix CSV import into StringGrid omits first line, from wp, issue #28582
git-svn-id: trunk@49735 -
2015-09-01 19:20:51 +00:00
bart
da24388dc4 LazUtils: Prevent "Abstract method called" for TXMLObjectWriter / TXMLObjectReader also with FPC 3.0.0. Issue #27817.
git-svn-id: trunk@49712 -
2015-08-26 09:29:52 +00:00
mattias
dcfae18d9a lazutils: comments
git-svn-id: trunk@49664 -
2015-08-13 10:13:05 +00:00
mattias
ccdf8a27f9 lazutils: clean up
git-svn-id: trunk@49648 -
2015-08-11 12:47:25 +00:00
juha
08c9621520 Change order of used units so that "deprecated" warnings are not triggered.
git-svn-id: trunk@49612 -
2015-08-07 17:20:40 +00:00
sekelsenmat
1c98cc10e6 lazutf16: Adds functions to check for valid utf-16
git-svn-id: trunk@49596 -
2015-08-05 14:22:46 +00:00
bart
8f7215b840 LazFileUtils: FileIsReadable on Windows should only return True if the file actually exists.
git-svn-id: trunk@49543 -
2015-07-14 10:25:53 +00:00
juha
af6fb723af LazUtils: Use LookupStringList in LazUtils package. Remove old DictionaryStringList files.
git-svn-id: trunk@49506 -
2015-07-07 12:10:35 +00:00
juha
810d20ce56 LazUtils: Rename DictionaryStringList -> LookupStringList. Add the renamed files as new.
git-svn-id: trunk@49505 -
2015-07-07 12:05:03 +00:00
juha
653b5dd43a Codetools, unit FileProcs: Disable conditionally wrapper functions. For testing define DisableWrapperFunctions and build Lazarus.
git-svn-id: trunk@49504 -
2015-07-07 11:43:38 +00:00
juha
4285b7380f LazUtils: Use SetCodePage() from FPC 3.x for UTF8ToXXX() functions in lconvencoding.
git-svn-id: trunk@49503 -
2015-07-07 11:43:23 +00:00
juha
06ac76f560 LazUtils, unit FileUtil: Disable conditionally LazUtf8 and LazFileUtils wrapper functions. For testing define NoLazUTF8Wrappers and build Lazarus.
git-svn-id: trunk@49494 -
2015-07-04 23:08:00 +00:00
juha
2d401fe45a IDE: Support UTF-8 in editor UpperCase/LowerCase Selection commands. Issue #28361, patch from Ondrej Pokorny.
git-svn-id: trunk@49481 -
2015-07-01 09:22:46 +00:00
juha
6cf8c56cfc LazUtils: Improve UTF8WrapText. Issue #28259, patch from Antônio Galvão.
git-svn-id: trunk@49300 -
2015-06-09 07:56:02 +00:00
bart
5383338553 LazUtils: Don't raise exceptions in CopyFile function by default. Added a parameter to control this behaviour. Issue #0028236.
git-svn-id: trunk@49284 -
2015-06-07 09:21:24 +00:00
juha
9c161101bc LazUtils: Add missing ISO-8859-15 entry to LConvEncoding. Issue #28209, patch from Alexey Torgashin.
git-svn-id: trunk@49232 -
2015-05-31 13:45:25 +00:00
juha
db9994a7e8 LazUtils: Support Arial and Helvetica font families better on all platforms. Issue #28165, patch from Johann.
git-svn-id: trunk@49158 -
2015-05-24 22:05:14 +00:00
juha
1568077381 LazUtils: Clean UTF8WrapText function in LazUTF8.
git-svn-id: trunk@49148 -
2015-05-23 14:13:04 +00:00
juha
f88dc97367 LazUtils: Improve DictionaryStringList and its example project. Issue #28159, patch from Antônio Galvão.
git-svn-id: trunk@49147 -
2015-05-23 14:12:58 +00:00
juha
824f9ac5d9 LazUtils: Call LazFreeType.CheckInstance in GetCharIndex and make it public. Issue #28163, patch from Johann.
git-svn-id: trunk@49146 -
2015-05-23 12:44:54 +00:00
juha
0fe92eae95 LazUtils: Remove ambiguity from font item listeners. Issue #28137, patch from Johann.
git-svn-id: trunk@49136 -
2015-05-22 20:20:39 +00:00
zeljko
42e04b941f lconvencoding: added missing chars in utf8tocp437 for translation from croatian utf8 to cp437.
git-svn-id: trunk@49116 -
2015-05-20 08:40:01 +00:00
mattias
48512f8dc4 lazutils: less notes
git-svn-id: trunk@49111 -
2015-05-19 21:04:15 +00:00
juha
3f8b158c87 LazUtils: Add unit LazFreeTypeFPImageDrawer to the actual package.
git-svn-id: trunk@49107 -
2015-05-19 16:17:11 +00:00
juha
09eff40893 LazUtils, EasyLazFreetype: Drawing symbol fonts and individual glyphs with their index. Issue #28078, patch from Johann.
git-svn-id: trunk@49105 -
2015-05-19 16:13:36 +00:00
juha
7bf388fe91 LazUtils: New LazFreeType drawer for TFPCustomImage. Issue #28020, patch from Johann.
git-svn-id: trunk@49104 -
2015-05-19 16:11:36 +00:00
mattias
2c26f71ea9 lazutils: fixed compilation with stabs
git-svn-id: trunk@49085 -
2015-05-18 19:40:19 +00:00
mattias
3de4e18d3f lazutils: lazlistclasses: sorted unit
git-svn-id: trunk@49083 -
2015-05-18 16:25:44 +00:00
martin
85f0a2993f LazUtils: force dwarf for fpc 2.*
git-svn-id: trunk@49082 -
2015-05-18 12:49:48 +00:00
juha
bdc0dc8fbb LazUtils: Recognise symbol font better. Issue #28020. Patch from Johann.
git-svn-id: trunk@49067 -
2015-05-17 11:41:46 +00:00
juha
749442f5a7 LazUtils: LConvEncoding refactoring, separate UTF-8 specific conversion functions. Issue #28093, patch from Alexey Torgashin.
git-svn-id: trunk@49059 -
2015-05-17 10:43:06 +00:00
martin
29b2f06a1d LazUtils: New List classes
git-svn-id: trunk@49055 -
2015-05-16 19:15:34 +00:00
martin
399add232b LazUtils: New List classes
git-svn-id: trunk@49054 -
2015-05-16 18:53:11 +00:00
juha
ccbbb894f3 LazUtils: FreeType fixes and new features. Issue #28073, patch from Johann.
git-svn-id: trunk@49047 -
2015-05-16 11:09:18 +00:00
juha
ed5a6cac42 LConvEncoding refactoring. Issue #28093, patch from Alexey Torgashin.
git-svn-id: trunk@49045 -
2015-05-16 11:09:15 +00:00
mattias
b56346b8fe lazutils: added a copy of the FreeType license
git-svn-id: trunk@49031 -
2015-05-15 16:23:59 +00:00
mattias
2785411ce8 lazutils: fixe compilation
git-svn-id: trunk@48996 -
2015-05-12 14:24:43 +00:00
mattias
02e2574269 codetools: added FindPathInSearchPath
git-svn-id: trunk@48993 -
2015-05-12 10:22:59 +00:00
joost
b4b8dab3b4 LazUtils: Added unit lazcollections with generic class TLaThreadedQueue<T>, for usage in fpdebug
git-svn-id: trunk@48990 -
2015-05-11 20:15:50 +00:00
juha
37ae3c0f43 LazUtils: New UTF8WrapText function for LazUTF8. Issue #28001, patch from Antônio Galvão.
git-svn-id: trunk@48924 -
2015-05-03 10:02:15 +00:00
juha
414374dbd9 LazUtils: Restore test for HashTableSize>0, needed because HashTableSize is unsigned.
git-svn-id: trunk@48873 -
2015-04-26 21:10:30 +00:00
bart
b727702265 LazUtils: TFileSearcher.Search: do not remove directories that are subdirectories of another directory from ASearchPath,
when ASearchSubDirs is False. Issue #0027965.

git-svn-id: trunk@48858 -
2015-04-25 18:28:43 +00:00
bart
a64855cad9 LazUtils: TFileSearcher.Search: if SearchPath is empty, search current directory.
git-svn-id: trunk@48854 -
2015-04-25 18:02:28 +00:00
maxim
622dfa7549 Translations: Spanish translation update by José Martínez with some help of Jesus Reyes, bug #27803
git-svn-id: trunk@48851 -
2015-04-25 17:49:09 +00:00
juha
fe0840ae84 LazUtils: Fix compilation with FPC trunk. Remove a useless test "if FHashTableSize>0".
git-svn-id: trunk@48845 -
2015-04-25 11:06:37 +00:00
joost
7c10064ae9 LazUtils: Added unit lazfglhash with generic class TLazFPGHashTable<T>, for usage in fpdebug
git-svn-id: trunk@48844 -
2015-04-25 09:51:59 +00:00
jesus
967e0663ad LazUtils: added function for getting normalized filename (darwin)
git-svn-id: trunk@48828 -
2015-04-24 06:28:20 +00:00
jesus
54dee07964 LazUtils, cvsutils: load from file version
git-svn-id: trunk@48825 -
2015-04-24 04:53:00 +00:00
maxim
76cc8230b1 Translations: French translation update by Gilles Vasseur, bugs #27920, #27925
git-svn-id: trunk@48812 -
2015-04-21 21:27:59 +00:00
jesus
a95002e0bf LCL, grids, fix loading CSV data with multiline fields, issue #27443
git-svn-id: trunk@48780 -
2015-04-20 17:50:27 +00:00
juha
25de80ed6c LazUtils: formatting
git-svn-id: trunk@48778 -
2015-04-19 15:31:01 +00:00
juha
8250ced275 LazUtils: Use cwstring always with UTF8 RTL on Unix. Does not work without it.
git-svn-id: trunk@48776 -
2015-04-18 10:21:58 +00:00
juha
143b80ae36 LazUtils: Implement abstract methods for classes TXMLObjectWriter / TXMLObjectReader. Issue #27817, patch from Vojtech Cihak.
git-svn-id: trunk@48689 -
2015-04-09 20:29:10 +00:00
juha
3c30f0d516 LazUtils: Formatting.
git-svn-id: trunk@48483 -
2015-03-24 17:52:43 +00:00
juha
abe573b42d Initialize variables based on compiler warnings around Lazarus and libs. Contains ToDo items.
git-svn-id: trunk@48481 -
2015-03-24 17:52:23 +00:00
mattias
0763ff58d5 lazutils: fixed typo
git-svn-id: trunk@48418 -
2015-03-18 18:52:45 +00:00
mattias
4b7419bb8f lazutils: clean up
git-svn-id: trunk@48355 -
2015-03-15 10:19:37 +00:00
mattias
0769a21e22 lconvencoding: added Macintosh
git-svn-id: trunk@48295 -
2015-03-12 12:29:02 +00:00
bart
750c0cd318 LazFileUtils: fix stupid mistake in DbgSFileAttr() function.
git-svn-id: trunk@48165 -
2015-03-07 17:25:44 +00:00
bart
b83671949f LazFileUtils: implement DbgSFileAttr() function.
git-svn-id: trunk@48154 -
2015-03-06 22:02:59 +00:00
bart
51a48d7494 LazFileUtils: fix error in TryCreateRelativePath (it failed e.g with Dest=C:\ and Source=C:\foo). Issue #0027601.
git-svn-id: trunk@48120 -
2015-03-03 19:51:20 +00:00
mattias
3584c167ee lazutils: clean up
git-svn-id: trunk@48078 -
2015-03-01 13:55:40 +00:00
mattias
61c2952174 lazutils: comment
git-svn-id: trunk@48077 -
2015-03-01 13:13:57 +00:00
mattias
faa8237679 lazutils: comment
git-svn-id: trunk@48076 -
2015-03-01 13:10:48 +00:00
mattias
c249cc6c2b lazutils: TFileStreamUTF8: fixed string type
git-svn-id: trunk@48073 -
2015-03-01 12:48:57 +00:00
mattias
f6788eb5b9 lazutils: TFileStreamUTF8: fixed string type
git-svn-id: trunk@48070 -
2015-03-01 12:43:07 +00:00
mattias
222321addf lazutils: simplify enableutf8rtl by only using lazutf8
git-svn-id: trunk@47915 -
2015-02-20 14:28:49 +00:00
mattias
e1e00306cf lazutf8: GetFormatSettingsUTF8: map common multibyte chars to ASCII
git-svn-id: trunk@47890 -
2015-02-18 19:51:28 +00:00
mattias
2979c97a9a lazutils: fixed compilation on win64
git-svn-id: trunk@47879 -
2015-02-18 16:52:32 +00:00