Commit Graph

798 Commits

Author SHA1 Message Date
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