Commit Graph

414 Commits

Author SHA1 Message Date
bart
cba0395125 FileUtil: inline FileOpenUTF8, FileCreateUTF8 and FileCreateUTF8 to their LazFileUtils counterparts.
Next step in moving UTF8 file routines to LazFileUtils.

git-svn-id: trunk@41211 -
2013-05-15 17:14:24 +00:00
bart
f77efa70a9 FileUtil: inline FileIsText to LazFileUtils.FileIsText.
Next step in moving UTF8 file routines to LazFileUtils.

git-svn-id: trunk@41210 -
2013-05-15 17:03:11 +00:00
bart
bf3f2431f6 LazUtils: fix LazFileUtils.FileIsText when filename has unicode characters outside currrent codepage on Windows.
Needs refactoring of LazUtf8Classes (use LazFileUtils instead of FileUtil).
Next step in moving UTF89 file routines to LazFileUil.

git-svn-id: trunk@41209 -
2013-05-15 16:52:42 +00:00
mattias
5878ba9053 lazutils: less warnings
git-svn-id: trunk@41184 -
2013-05-14 09:30:45 +00:00
maxim
20a03cef69 Translations: updated Spanish translation by Lucas Martín, bug #24424
git-svn-id: trunk@41181 -
2013-05-13 21:59:25 +00:00
mattias
8e652015ad lazutils; fixed compilation under unix
git-svn-id: trunk@41160 -
2013-05-12 18:20:15 +00:00
bart
d219baae5f FileUtil: DeleteDirectory: also delete symlinks in a directory on *nix (don't follow them). Issue #0024415.
git-svn-id: trunk@41159 -
2013-05-12 18:15:48 +00:00
juha
bdba8f2a01 One more "inherited Create;" to be sure.
git-svn-id: trunk@41097 -
2013-05-09 15:37:10 +00:00
juha
8ddfe52d9b Add "inherited Create;" to constructors for classes derived from TFileSearcher.
git-svn-id: trunk@41089 -
2013-05-09 11:52:17 +00:00
mattias
4a483b4187 lazutils: fixed compilation under Linux
git-svn-id: trunk@41086 -
2013-05-09 10:39:11 +00:00
bart
0ce3f9f9f0 LazFileUtils: rename ExpandDots() to ResolveDots()
git-svn-id: trunk@41084 -
2013-05-09 07:37:51 +00:00
mattias
ece43d9fc5 lazutils: clean up
git-svn-id: trunk@41066 -
2013-05-08 01:40:31 +00:00
mattias
fd461b8b5b docs: CreateRelativePath does not support D:test for thread safety
git-svn-id: trunk@41065 -
2013-05-08 01:26:06 +00:00
mattias
363854a331 lazutils: restored old CreateRelativePath, added doc
git-svn-id: trunk@41064 -
2013-05-08 01:18:11 +00:00
juha
62668a0d48 LazUtils: Add support for the CapHeight to LazFreeType. Issue #23968, patch from Andrey Zubarev
git-svn-id: trunk@41043 -
2013-05-05 17:56:23 +00:00
bart
a031882b1a FileUtil: inline ExpandFileNameUTF8 as LazFileUtils.ExpandFileNameUTF8,
which has better handling of unicode characters on Windows.
(One step in the moving of UTF8 related filefunctions to LazFileUtils)

git-svn-id: trunk@41038 -
2013-05-05 11:40:45 +00:00
bart
d9e1aa876f Lazfileutils.pas: fix incorrect indentation from r41036 #0baf6d6df0
git-svn-id: trunk@41037 -
2013-05-05 11:28:29 +00:00
bart
0baf6d6df0 CreateRelativePath (FileUtil and LazFileUtils): use SysUtilsExtractRelativePath inernally.
Fixes issue #0022603.

git-svn-id: trunk@41036 -
2013-05-05 11:20:44 +00:00
bart
fb55facdaa ExpandFileNameUtf8: expand current drive if FileName = '\' (Windows)
git-svn-id: trunk@41035 -
2013-05-05 11:04:09 +00:00
bart
0631e9d7d1 TFileSearcher: Implement OnDirectoryEnter event.
git-svn-id: trunk@41032 -
2013-05-04 21:52:55 +00:00
bart
f84bed8662 TFileSearcher: Implement FileAttribute and DirectoryAttribute properties to let user control
what files and directories are searched. Fixes issue #0024369.

git-svn-id: trunk@41031 -
2013-05-04 21:41:00 +00:00
mattias
33e67992e5 lazutils: fixed TListFileSearcher.Create
git-svn-id: trunk@40996 -
2013-05-02 11:23:26 +00:00
bart
5fcdbd6c7d TFileSearcher.Search: use Windows specific file pattern matching on Windows.
Fixes issue #0024306

git-svn-id: trunk@40973 -
2013-05-01 11:03:12 +00:00
bart
fe79a8fdff Masks: implement specific matching for Windows filemasks like foo*.* and other Windows oddities.
git-svn-id: trunk@40970 -
2013-05-01 10:53:23 +00:00
juha
48f88c37ef Revert "Use AllFilesMask everywhere instead of GetAllFilesMask, mask must be fixed in FPC libs"
git-svn-id: trunk@40957 -
2013-04-30 16:35:02 +00:00
bart
d479775c9d TFileSearcher: allow case-sensitive file searching (defaults to false).
git-svn-id: trunk@40902 -
2013-04-27 17:22:51 +00:00
juha
518250f92c LazUtils: Test for '*.*' instead of AllFilesMask in TFileSearcher
git-svn-id: trunk@40877 -
2013-04-22 10:09:43 +00:00
juha
248927b6c5 LazUtils: Improvements for DictionaryStringList demo project by Antônio Galvão. Issue #24290
git-svn-id: trunk@40876 -
2013-04-22 09:05:01 +00:00
juha
cd3b3a4463 delete test
git-svn-id: trunk@40875 -
2013-04-22 08:28:04 +00:00
juha
9ac01bb636 test
git-svn-id: trunk@40874 -
2013-04-22 08:27:14 +00:00
juha
07d79d2536 LazUtils: Make TFileSearcher match all files with *.* on Windows like FindFirst + FindNext do. Issue #24306
git-svn-id: trunk@40873 -
2013-04-22 07:59:02 +00:00
juha
f125213df5 removing test
git-svn-id: trunk@40872 -
2013-04-22 06:15:02 +00:00
juha
692ebb8bff testing Capitals in file name
git-svn-id: trunk@40871 -
2013-04-22 06:14:31 +00:00
juha
cd6f5fecad removing test
git-svn-id: trunk@40870 -
2013-04-22 05:59:13 +00:00
juha
54f906a74d testing commit access
git-svn-id: trunk@40869 -
2013-04-22 05:57:41 +00:00
mattias
55b523ce84 lazutils: added example for TDictionaryStringList
git-svn-id: trunk@40868 -
2013-04-21 21:49:09 +00:00
juha
140ce5d69d LazUtils: move GetAllFilesMask's deprecated note to correct place.
git-svn-id: trunk@40850 -
2013-04-19 08:36:40 +00:00
juha
73fb9ab0e2 Use AllFilesMask everywhere instead of GetAllFilesMask
git-svn-id: trunk@40849 -
2013-04-19 07:08:03 +00:00
juha
bb419695bb LazUtils: Add FollowSymLink property to TFileSearcher. Issue #24291, modified from Mario Bonati's patch
git-svn-id: trunk@40848 -
2013-04-19 07:05:25 +00:00
bart
a53520295e LazUtils: Fix ExpandFileNameUTF8 for directories with Unicode characters outside
current codepage on Windows.
Also do not remove trailing and leading spaces, it is inconsistent with
SysUtils.ExpandFileName.
Start splitting implementation in general, unix and windows specific includefiles.

git-svn-id: trunk@40842 -
2013-04-18 18:23:02 +00:00
juha
378844986e LazUtils: Handle a temporarily non-accessible file in CopyFile function. Issue #24162, patch from Cyrax
git-svn-id: trunk@40828 -
2013-04-16 07:50:07 +00:00
mattias
db550fef45 fileutils: fixed header
git-svn-id: trunk@40800 -
2013-04-12 22:35:39 +00:00
mattias
cf877df3c4 updated lpk makefiles
git-svn-id: trunk@40698 -
2013-04-02 10:37:47 +00:00
mattias
6b9529ec0a lazutf8: faster FindInvalidUTF8Character
git-svn-id: trunk@40673 -
2013-03-31 17:19:46 +00:00
juha
460f108b68 LazUtils: Make FileSize function overload. Issue #24155, patch from ocean
git-svn-id: trunk@40664 -
2013-03-29 17:55:34 +00:00
maxim
7df1120d89 LazFreeType: allow other processes read opened font file too, bug #23887
git-svn-id: trunk@40591 -
2013-03-19 20:55:59 +00:00
juha
c0878f5175 LazUtils: Remove useless code in TDictionaryStringList.Assign. The test "if Source is TStrings" is done in inherited method.
git-svn-id: trunk@40556 -
2013-03-15 16:27:26 +00:00
juha
eb91fbf509 LazUtils, DictionaryStringList: cleanup
git-svn-id: trunk@40547 -
2013-03-14 08:20:08 +00:00
juha
939420b860 Lazautils, DictionaryStringList: add Antonio Galvao as a co-author
git-svn-id: trunk@40544 -
2013-03-13 14:42:43 +00:00
mattias
60d065f8a9 lazutils: less hints
git-svn-id: trunk@40542 -
2013-03-13 13:44:10 +00:00